Page 1 of 1

2 SIP providers for 1 Vicidial

PostPosted: Tue Sep 08, 2009 11:23 am
by chill_master
Is it possible to have two sip providers for one vicidial server? Like if I have 20 agents doing blended calling, 10 of them pass thru SIP A and then the other 10 pass thru SIP B.

This way, I can minimize my VOIP charges.

PostPosted: Tue Sep 08, 2009 5:32 pm
by mflorell
There are ways of doing this, but you need to do some customizations to make that possible.

How exactly would just using two SIP providers lower your VOIP costs?

PostPosted: Tue Sep 08, 2009 6:59 pm
by chill_master
Each account in my VOIP provider had max mins of 5100, where I don't need to pay extra charges aside from what I paid for the account setup every time I exceed the max. But on average I get 10,000 mins. So If I have two accounts, I don't have to pay for extra charges. Right now I'm paying $100 on average per month for extra charges.

PostPosted: Wed Sep 09, 2009 9:26 pm
by mflorell
The easiest way is actually to send all of the bottom ending numbers[0-4] to one account and the top half ending numbers[5-9] to the other account. You can do this through some pretty simple dialplan logic:

; put this in the first carriers dialplan entry
exten => _91NXXNXXXXX[0-4],1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXX[0-4],2,Dial(${TESTSIPTRUNKX}/${EXTEN:2},,tTor)
exten => _91NXXNXXXXX[0-4],3,Hangup

; put this in the second carriers dialplan entry
exten => _91NXXNXXXXX[5-9],1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXX[5-9],2,Dial(${TESTSIPTRUNKY}/${EXTEN:2},,tTor)
exten => _91NXXNXXXXX[5-9],3,Hangup

PostPosted: Thu Sep 10, 2009 9:51 am
by chill_master
Gee, I've never thought of that.

This was so easy than I've thought it will be.

Thanks Matt.