Our voip provider have limits for outgoing calls per sip account (1 sip account = 1 outgoing call in the same time).
We have voip (sip) provider that offer 5 sip accs per agent.
Now we have 8 working agents and use Matt solution:
- 10 sip accs are in use
- if dialing number ends at '0' then use first acc
- if dialing number ends at '1' then use second acc, etc..:
- Code: Select all
exten => _0048XXXXXXXX0,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _0048XXXXXXXX0,2,Dial(SIP/${EXTEN}@SIPAcc,55,To)
exten => _0048XXXXXXXX0,3,Hangup
exten => _0048XXXXXXXX1,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _0048XXXXXXXX1,2,Dial(SIP/${EXTEN}@SIPAcc1,55,To)
exten => _0048XXXXXXXX1,3,Hangup
exten => _0048XXXXXXXX2,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _0048XXXXXXXX2,2,Dial(SIP/${EXTEN}@SIPAcc2,55,To)
exten => _0048XXXXXXXX2,3,Hangup
exten => _0048XXXXXXXX3,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _0048XXXXXXXX3,2,Dial(SIP/${EXTEN}@SIPAcc3,55,To)
exten => _0048XXXXXXXX3,3,Hangup
...
We would like to make that each Agent must have pool of own sip accs. This solution should also provide a better control for agents (we will see sip accs billing / agent).