Page 1 of 1
UK USA AUS and 3 SIP Provider : SOLVED
Posted:
Tue Jan 13, 2009 7:48 pm
by kolucoms6
This posting is for them who want to use multiple SIP providers.
SAMPLE SIP.conf file
[sip64]
type=peer
username=fiducia_ag
fromuser=fiducia_ag
authuser=fiducia_ag
secret=password
host=64.56.64.00
nat=no
canreinvite=yes
insecure=very
disallow=all
allow=g729
allow=ulaw
context=default
dtmfmode=rfc2833
[sip67]
type=peer
username=fiducia_ag
fromuser=fiducia_ag
authuser=fiducia_ag
secret=password
host=67.56.64.00
nat=no
canreinvite=yes
insecure=very
disallow=all
allow=g729
allow=ulaw
context=default
dtmfmode=rfc2833
Extension.conf :
exten => _9X.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(SIP/${EXTEN:1}@
sip64||tTor)
exten => _9X.,3,Hangup()
exten => _8X.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _8X.,2,Dial(SIP/${EXTEN:1}@
sip67||tTor)
exten => _8X.,3,Hangup()
If Dial Prefix is 8 , it will one SIP and if dial Prefix is 9, it will use another SIP.
Posted:
Thu Jan 15, 2009 7:45 pm
by williamconley
yes, actually i recommend that sort of setup with multiple providers to allow for redundant VOIP providers to resolve any connectivity issues and to allow for troubleshooting between providers.
it allows the manager to determine if a problem is at the provider or on the local system by switching "on the fly" between providers just by changing the dial prefix from "9" to "6" (or some other number, depending on how many providers you have).
very handy if you are having intermittent issues. even more handy if the connection to a VOIP goes down and you can get running again in 30 seconds by changing one number.
Posted:
Tue Jan 20, 2009 7:17 am
by kolucoms6
As you can see I have [sip64] and [sip67]
When I log in to the campaign and try to take calls from dialer , it uses what I define in Dial Prefix and Extension.conf file.
But when I try manual call from directly xlite, which one should it use ? [sip64] or [sip67] ?
[globals]
CONSOLE => Console/dsp
IAXINFO => guest
TRUNK => SIP/sip
TRUNKMSD => 1
Any Help ?
Posted:
Wed Jan 21, 2009 10:18 am
by williamconley
that depends on whether your x-lite user dials 8 or 9 before the number they are trying to reach.
Posted:
Wed Jan 21, 2009 10:22 am
by kolucoms6
If I use a normal 1 and 10 digit number ?
Posted:
Wed Jan 21, 2009 10:34 am
by williamconley
exten => _9X.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(SIP/${EXTEN:1}@sip64||tTor)
exten => _9X.,3,Hangup()
exten => _8X.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _8X.,2,Dial(SIP/${EXTEN:1}@sip67||tTor)
exten => _8X.,3,Hangup()
Neither of these shows _1X. ... so the rest of your dial plan will determine that.
Posted:
Wed Jan 21, 2009 10:36 am
by kolucoms6
How about if I use 44 and then the 10 digit number ?
Do I need to make my extension as
exten => _944X.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _944X.,2,Dial(SIP/${EXTEN:1}@sip67||tTor)
exten => _944X.,3,Hangup()
to make it use sip67 ?
Posted:
Wed Jan 21, 2009 10:46 am
by williamconley
LOL.
the dial plan sample you provided shows what happens when someone dials 9(numbers) or 8(numbers), but it does not show what happens when someone dials 1(numbers) or 44(numbers) or anything else.
If there is something in your dial plan to support those patterns, something will happen. If not, the call will simply fail.
a good test is to enter "show dialplan 9445555551212@default" and find out what the system says will happen if you dial it from within vicidial (as the vicidial dialplan uses the default context).
if you want to specify a 10 digit number, you would use _944XXXXXXXXXX instead of "_944X."
This is actually in the sample extensions.conf with the release of the software with several other sample countries.