From bbcaf28ca02c117971cd5a22c2d1f07aa3fbddc0 Mon Sep 17 00:00:00 2001 From: horse69 Date: Sun, 28 Oct 2012 21:37:11 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/freetel/code@858 01035d8c-6547-0410-b346-abe4f91aad63 --- mini-asterisk-gui2/todo 2012_10.txt | 1 + mini-asterisk-gui2/voiplines.js | 30 +++++++++++++++++++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/mini-asterisk-gui2/todo 2012_10.txt b/mini-asterisk-gui2/todo 2012_10.txt index 886fc1e7..19efefac 100644 --- a/mini-asterisk-gui2/todo 2012_10.txt +++ b/mini-asterisk-gui2/todo 2012_10.txt @@ -69,5 +69,6 @@ Oct 29 2012 IP provider page work sip.conf modified with new keywords install script changed to update sip.conf + Are sip provider entries ok to leav uncommented?...they have dummy hosts Notice ip phone (ekiga from pc) registrations stay on ip04 after phone has disappeared \ No newline at end of file diff --git a/mini-asterisk-gui2/voiplines.js b/mini-asterisk-gui2/voiplines.js index b0dd9fdb..b8c58d74 100644 --- a/mini-asterisk-gui2/voiplines.js +++ b/mini-asterisk-gui2/voiplines.js @@ -69,13 +69,31 @@ function onClickApply() { // You will need to cascade calls to downloadUrl // take provider, username, password and host. - - // 1. Save old sip.conf - // 2. Make new sip.conf with provider uncommented - // 2.1 insert register command - // 2.2 uncomment sip trunk entry - // 2.3 update sip trunk details + var user = ""; + var host = ""; + var passwd = ""; + + // 1. Save sip.conf + + + user = document.getElementById('user').value; + host = document.getElementById('host').value; + passwd = document.getElementById('pass').value + + + // 2. Update sip.conf + // 2.1 insert register command + // ;register => 1234:password@mysipprovider.com becomes register => trev:password@192.168.1.30 + + + + // 2.2 update sip trunk details ... user pw host + // [usersip] becomes [trev] + // username=usersip username=trev + // secret=passwordsip secret=password + // host=hostsip host=192.168.1.30 // 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 -- 2.25.1