[asterisk-users] "+" dialplan

adamk at 3a.hu adamk at 3a.hu
Mon Jun 10 16:34:14 CDT 2013


Hi,

On 06/10/2013 22:26, Jonson Player wrote:
> Some users of main use + instead of 00 for international dial. Is there
> any solution for this problem?

swap the + sign to double zeros if your provider can't handle it

; normal 00 prefix
exten => _00ZZXXXXXXX.,1,Macro(beforealldials)
exten => _00ZZXXXXXXX.,n,Dial(SIP/${EXTEN}@${OUTGOING_LINE})
exten => _00ZZXXXXXXX.,n,Hangup()

; swap + prefix to 00
exten => _+ZZXXXXXXX.,1,Macro(beforealldials)
exten => _+ZZXXXXXXX.,n,Dial(SIP/00${EXTEN:1}@${OUTGOING_LINE})
exten => _+ZZXXXXXXX.,n,Hangup()

regards
adam





More information about the asterisk-users mailing list