[Asterisk-Users] How can i convert number with exten

Kevin Walsh
2004-08-30T09:14:19Z

Johannes van Hulst [Han.vanHulst@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@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/