Dialplan Sweden and Spain
Added by Fralla Fredriksson over 10 years ago
Hi,
I'm trying to create a dialplan that allows calling any number using manual mode and auto dial. I read that something like this should work:
exten => _X.,1,AGI
exten => _X.,2,Dial(SIP/${EXTEN:3}@PROVIDER,,tTo)
exten => _X.,3,Hangup
_X. should allow all numbers with at least one digit, right? When I use this dialplan I cannot choose the carrier to be used by any campaign. The carrier does not show up in the list. When the default dialplan is used I can choose the carrier.
/Fralla
Replies (1)
RE: Dialplan Sweden and Spain
-
Added by Demian Biscocho over 10 years ago
That dialplan is a catch-all dialplan. Using that in production might cause problems. It might interfere with some of Vicidial's default dialplans. The recommended way is putting a prefix. Below are some examples:
exten => _987.,1,AGI(agi://127.0.0.1:4577/call_log) exten => _987.,2,Dial(SIP/${EXTEN:3}@PROVIDER,,tTo) exten => _987.,3,Hangup
exten => _9.,1,AGI(agi://127.0.0.1:4577/call_log) exten => _9.,2,Dial(SIP/${EXTEN:1}@PROVIDER,,tTo) exten => _9.,3,Hangup
exten => _88.,1,AGI(agi://127.0.0.1:4577/call_log) exten => _88.,2,Dial(SIP/${EXTEN:2}@PROVIDER,,tTo) exten => _88.,3,Hangup