[Freeswitch-users] Routing with $1 variable

Brian West brian at freeswitch.org
Fri Oct 3 16:20:22 PDT 2008


Show us the entire dialplan ;)

/b

On Oct 3, 2008, at 6:13 PM, Peter P GMX wrote:

> Today I had a strange behaviour:
> I am routing calls to an Asterisk PBX. It has a very sophisticated
> dynamic least cost router built in - so I use it to terminate mobile  
> and
> international calls.
>
> For a first test I created a dialplan which checks for ^231$ in the
> dialled number and then routes the call to $1/asterisk.pbx.
> It didn't work. Grepping the SIP traffic I could see that Freeswitch
> makes an invite $1 at asterisk.pbx. Yes it's $1 in the SIP message.
>
> Second I checked for the mobile number using ^(01[6-7]\d{4,13})$ in  
> the
> dialled number and then route the call to $1/asterisk.pbx.
> This works.
>
> I am confused as in the second case $1 is translated to the dialled
> number and in the frist case not.
>
> Anybody has a clue?
>
> Best regards
> Peter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081003/0e647d83/attachment-0002.html 


More information about the FreeSWITCH-users mailing list