[Asterisk-Users] How can i convert number with exten
Kevin Walsh
kevin at cursor.biz
Mon Aug 30 09:14:19 MST 2004
Johannes van Hulst [Han.vanHulst at Terra.com.br] wrote:
> I am looking for a way to convert numbers so that I can use one standard
> for all the providers.
>
> For example
> I would like to dail 00 31 20 1234567
> And that convert to 0011 31 20 1234567 so that my VS provider understands
> it.
>
> How can I remove the 00 and replace it with 0011.
>
You could use "0011${EXTEN:2}", which would strip the first two digits
("00", in this case) and add "0011" to the start.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the asterisk-users
mailing list