[Freeswitch-users] unexpectedly dial through gateway

Rob Hutton justlikeef at gmail.com
Mon Dec 19 20:03:04 MSK 2011


Without seeing your dialplan, this is just a guess, but, I would bet that your gateway appears before this trunk in the external dialplan and the call matches the regex on the gateway.  So, tighten your regex on the gateway and/or move this entry above the gateway entry.


On Monday 19 December 2011 11:54:12 Zhuravlov Sergey wrote:
> Hi,
> 
> in my dialplan I try to call directly to the asterisk server follows:
> 
> <extension name="ast_NTCOM-711">
>        <condition field="destination_number" expression="^(711)$">
>              <action application="set" data="hangup_after_bridge=true"/>
>              <action application="bridge" data="sofia/external/$1 at ast.er.isk.ip"/>
>              <action application="hangup"/>
>        </condition>
> </extension>
> 
> But it does not work for me! If the profile external has gateways then a call goes
> through a gateway, and receives forbidden.
> 
> If in the profile external NOT have gateways  - all is good and asterisk
> recieve call.
> 
> I do not understand why this is happening? Where to look?
> 
> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111219/e6a6c406/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list