[Freeswitch-users] Reg exp in tutorial
Michael Nielsen
mic.niel84 at gmail.com
Fri Oct 2 21:11:38 MSD 2015
Ok, I found out how to debug in another thread here.
I'm getting this output where it fails to continue with the public dial
plan:
Dialplan: sofia/internal/+44234456321 at dialersipper.com parsing
[public->gateway_inbound] continue=false
Dialplan: sofia/internal/+44234456321 at dialersipper.com Regex (FAIL)
[gateway_inbound] ${target_context}() =~ /^[a-z]/ break=on-false
However, my sip-profile contains this:
...
<param name="register" value="false"/>
<variables>
<variable name="domain" value="my-domain.com" direction="inbound"/>
<variable name="target_context" value="default" direction="inbound"/>
</variables>
</gateway>
and my dial plan this:
<condition field="${target_context}" expression="^[a-z]"/>
<condition field="${domain}" expression="^[a-z]">
On Fri, Oct 2, 2015 at 2:50 PM, Michael Nielsen <mic.niel84 at gmail.com>
wrote:
> Ok, I see. How can I debug to see if my incoming call from my SIP gateway
> hits that and get transferred to the correct context?
>
> I've tried to look at fs_cli and setting /debug 7, but I cannot tell if
> the dialplan gets executed and the call is transferred to the correct
> context.
>
> On Fri, Oct 2, 2015 at 9:02 AM, Ken Rice <krice at freeswitch.org> wrote:
>
>> ^[a-z] just means first character should be an alpha char so it will
>> match any proper fqdn or domain name
>>
>> Sent from my iPhone
>>
>> On Oct 2, 2015, at 1:53 AM, Michael Nielsen <mic.niel84 at gmail.com> wrote:
>>
>> In the doc's, should the 10_gateway_inbound.xml contain:
>> expression="^[a-z\.]"
>> instead of:
>> expression="^[a-z]"
>>
>> So it can catch the domain and context int.example.net.
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20151002/834cc835/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list