[Asterisk-Users] dialplan defenition

Moises Silva moises.silva at gmail.com
Thu Jul 28 07:43:53 MST 2005


the problem is that you are using the 's' extension. If you want to
match, as you said, the numbers like 74XX, then you should put
something like this:

[sipextens]
exten => _74XX,1,Dial(SIP/${EXTEN at 193.136.252,30,r)

in this way, all the numbers starting with 74 followed by 2 more
numbers, will be catched by this line, and asterisk it will dial to a
SIP channel with the desired number.

best regards

On 7/28/05, Joao Pereira <joao.pereira at fccn.pt> wrote:
> 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
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"



More information about the asterisk-users mailing list