From 5fc61190496e0b3f509fbcd124e3dcc5ffe8de2a Mon Sep 17 00:00:00 2001 From: horse69 Date: Fri, 16 Nov 2012 00:55:26 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/freetel/code@974 01035d8c-6547-0410-b346-abe4f91aad63 --- mini-asterisk-gui2/todo 2012_11.txt | 6 +++++- mini-asterisk-gui2/voiplines.js | 15 +++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/mini-asterisk-gui2/todo 2012_11.txt b/mini-asterisk-gui2/todo 2012_11.txt index ec0450c0..e5f8bacd 100644 --- a/mini-asterisk-gui2/todo 2012_11.txt +++ b/mini-asterisk-gui2/todo 2012_11.txt @@ -21,9 +21,13 @@ voip provider page Test jazmin - do we get a successful registration ? + fails with none dropbox set ... read in current registration + fails with mulit changes...leave voip keyword intact (Done) + - can we make outbound voip calls ? - are inbound voip calls working ? - + +(Maybe add in voip line 2 page... later) ***************************************************************************** diff --git a/mini-asterisk-gui2/voiplines.js b/mini-asterisk-gui2/voiplines.js index db0c4dc6..813189e0 100644 --- a/mini-asterisk-gui2/voiplines.js +++ b/mini-asterisk-gui2/voiplines.js @@ -8,7 +8,7 @@ var update_time = 10; var selection = ""; -var lastselection="voip"; +var lastselection=""; var lasthost=""; var lastuser=""; var lastpasswd=""; @@ -123,10 +123,6 @@ function uncommentregReturn(doc,status) { downloadUrl(url,updateregReturn); - // 3. Modify extensions.conf for new provider - // exten => _1.,1,Dial(SIP/voip/${EXTEN:1}) becomes exten => _1.,1,Dial(SIP/trev/${EXTEN:1}) - // 4. asterisk sip reload ....ORDER? beardy has this at position 4 - // 5. asterisk dialplan reload } @@ -202,13 +198,12 @@ function hostReturn(doc,status) { } ); - // 3.9 exten => _1.,1,Dial(SIP/voip/${EXTEN:1}) becomes exten => _1.,1,Dial(SIP/usersip/${EXTEN:1}) + // 3.9 [usersipnat] becomes [voip] + // or [usersip] + // or [userjazmin] - // Need to recode this=voip to be generic - // Need to keep track of lastselection =selection - // What about betwween sessions ---> we need to read it from extensions.conf - var url = '/cgi-bin/setword.cgi?file=/etc/asterisk/extensions.conf&this='+lastselection+'&that=user' + selection ; + var url = '/cgi-bin/setword.cgi?file=/etc/asterisk/sip.conf&this=user'+selection+'&that=voip'; lastselection = selection; downloadUrl(url,extReturn); } -- 2.25.1