Changing 011 to 022

Vitelity reqiures us to use the 022 prefix for international calls in order for them to be guaranteed. How can I make a script to change 011 to 022 when users dial it? It will take my clients some time to get used to 022, and most of them won’t even like the idea.

Thanks

Use something like this in the context for outbound calls:

exten=>_011.,1,Dial(022${EXTEN:3})

Cheers.

Marco Bruni

My outbound route looks like this but I am getting a busy signal
Let me know what I am doing wrong
Just so you know I am using freepbx, and I placed this script in the extensions_custop.conf file
Thank you

[outrt-003-International]
;include => outrt-003-International-custom
;exten => _011.,1,Macro(user-callerid,SKIPTTL,)
;exten => _011.,n,Set(_NODEST=)
;exten => _011.,n,Macro(record-enable,${AMPUSER},OUT,)
;exten => _011.,n,Macro(dialout-trunk,3,${EXTEN},)
;exten => _011.,n,Macro(dialout-trunk,4,${EXTEN},)
;exten => _011.,n,Macro(outisbusy,)
exten=> _011.,1,Dial(022${EXTEN:3})
exten => _022.,1,Macro(user-callerid,SKIPTTL,)
exten => _022.,n,Set(_NODEST=)
exten => _022.,n,Macro(record-enable,${AMPUSER},OUT,)
exten => _022.,n,Macro(dialout-trunk,3,${EXTEN},)
exten => _022.,n,Macro(dialout-trunk,4,${EXTEN},)
exten => _022.,n,Macro(outisbusy,)

; end of [outrt-003-International]

Try

exten => _011.,n,Macro(dialout-trunk,3,022${EXTEN:3},,)

instead of

exten=>_011.,1,Dial(022${EXTEN:3})

Please check the value of the second parameter (“3”) of the macro dialout-trunk and also try ask in the freepbx forum.

Cheers.

Marco Bruni