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.
^[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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@dialersipper.com parsing [public->gateway_inbound] continue=false Dialplan: sofia/internal/+44234456321@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@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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Ken Rice
-
Michael Nielsen