[Asterisk-Users] extension.conf dialplan

Jason Williams
2005-03-17T03:51:51Z

On Thu, 17 Mar 2005 02:42:27 -0800 (PST), Kamran Ahmad <p_kami@yahoo.com>
wrote:
> hi
>
> any one tell me how to make a dialplan
>
> my extensions.conf
> exten => _40XXXXXXXXXXXX,1,Dial(OH323/${EXTEN})
>
> i want to dial to 40XXXXXXXXXXXX number.
> XXXXXXXXXXXX could be any number like 923335224005 or
> 92512213248
>
> at the moment when i am trying to dial 40923335224005
>
> asterisk is dialing
>
> Executing Dial("OH323/R11429", "OH323/40923335224005")
>
> but i want him to dial
> Executing Dial("OH323/R11429", "OH323/923335224005")

You need to change your dial comand to this

exten => _40XXXXXXXXXXXX,1,Dial(OH323/${EXTEN:2})

the :2 deletes the first 2 digits and removes the leading 40

Jason