Multiple SIP Trunks - Failover setup
Posted: Thu Dec 03, 2009 1:38 am
I know this has been discussed several times on this forum but maybe I can get a little detailed help on this one. I've done the search but still confused.
I have 5 different sip trunks, each with its own user and password logins. Only one call at a time on each trunk allowed by the carrier. I have 5 agents and I want the campaign to use all trunks available, in a failover fashion when dialing out. So if trunk 1 is busy, it will try trunk 2, and if thats busy it will go on till it hits the last one.
Ive seen mflorell show a FAILOVER dailplan such as the following:
exten => _91NXXNXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXXXX,n,Dial(SIP/${EXTEN1}@sbc.provider_1.com)
exten => _91NXXNXXXXXXXX,n,Dial(SIP/${EXTEN1}@sbc.provider_2.com)
exten => _91NXXNXXXXXXXX,n,Dial(SIP/${EXTEN1}@sbc.provider_3.com)
exten => _91NXXNXXXXXXXX,n,Dial(SIP/${EXTEN1}@sbc.provider_4.com)
exten => _91NXXNXXXXXXXX,n,Dial(SIP/${EXTEN1}@sbc.provider_5.com)
exten => _91NXXNXXXXXXXX,n,Hangup
Is this correct for a failover type system? If so, I just dont understand where the @sbc.provider_1.com is defined. Is it in the sip.conf?
Can you show me the correct way to add SIP trunks in the [globals] section in the extension.conf?
Also, can you tell me how to properly input the trunks in the SIP.CONF so it will work correctly with the EXTENSION.CONF??
I have 5 different sip trunks, each with its own user and password logins. Only one call at a time on each trunk allowed by the carrier. I have 5 agents and I want the campaign to use all trunks available, in a failover fashion when dialing out. So if trunk 1 is busy, it will try trunk 2, and if thats busy it will go on till it hits the last one.
Ive seen mflorell show a FAILOVER dailplan such as the following:
exten => _91NXXNXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXXXX,n,Dial(SIP/${EXTEN1}@sbc.provider_1.com)
exten => _91NXXNXXXXXXXX,n,Dial(SIP/${EXTEN1}@sbc.provider_2.com)
exten => _91NXXNXXXXXXXX,n,Dial(SIP/${EXTEN1}@sbc.provider_3.com)
exten => _91NXXNXXXXXXXX,n,Dial(SIP/${EXTEN1}@sbc.provider_4.com)
exten => _91NXXNXXXXXXXX,n,Dial(SIP/${EXTEN1}@sbc.provider_5.com)
exten => _91NXXNXXXXXXXX,n,Hangup
Is this correct for a failover type system? If so, I just dont understand where the @sbc.provider_1.com is defined. Is it in the sip.conf?
Can you show me the correct way to add SIP trunks in the [globals] section in the extension.conf?
Also, can you tell me how to properly input the trunks in the SIP.CONF so it will work correctly with the EXTENSION.CONF??