[Asterisk-Users] dialplan defenition

Joao Pereira joao.pereira at fccn.pt
Thu Jul 28 02:30:15 MST 2005


Hello list,
Im writing my dial plan, in witch every SIP phone begins with 74 and has 
more 3 numbers (like 74XXX).
So, I want to route all 74XXX calls to my sip channel. For this I wrote 
this line:
exten => s,1,Dial(SIP/74118 at 193.136.252.5,30,r)

but this way all calls go to 74118 at 193.136.252.5  .....

Then I tried:
exten => s,1,Dial(SIP/${EXTEN}@193.136.252.5,30,r)

but this way, the system tries to dial  <sip:s at 193.136.252.5> and not 
74XXX at 193.136.252.5 like I wanted...

can someone help me with theese? I believe the problem is solved using 
the correct parameters in the "Dial" command, but I couldnt find it 
until now...

Thanks
Joao Pereira









More information about the asterisk-users mailing list