[Asterisk-Users] mangle + to 00

Scott Nelson sbn at thermeon.com
Thu Apr 7 06:56:45 MST 2005


On Apr 7, 2005, at 8:39 AM, marek cervenka wrote:

> i want change prefix from "+XXX." to "00XXX.
>
> but this doesnt work
>
> [incoming]
>
> exten => _+.,1,SetCIDnum(00${CALLERID:1})
> exten => _+.,2,goto(incoming,${EXTEN},1)
>
> exten => _X.,1,Noop(CALLERID: ${CALLERID})
> exten => _X.,2,goto(route,${EXTEN},1)

You are not changing the extension.  try

exten => _+.,2,goto(incoming,00${EXTEN:1},1)




More information about the asterisk-users mailing list