VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
gregt at cgicommunicat... Guest
|
Posted: Thu Aug 27, 2009 4:20 pm Post subject: [Freeswitch-users] Mixing mod_curl_xml dynamic dialplans and |
|
|
I have mod_curl_xml working, but I also have several static dialplans in dialplan/public/ and I can't seem to get it to search those if my php generated xml page does not return a result.
I know in the static public.xml there is this
<extension name="unloop">
<condition field="${unroll_loops}" expression="^true$"/>
<condition field="${sip_looped_call}" expression="^true$">
<action application="deflect" data="${destination_number}"/>
</condition>
</extension>
Do I need my php page to generate something like that so it will continue looking in the static pages if it does not find a match in the xml_curl dynamic dialplan?
I don't know if I have given enough data for someone to point me in the right direction...
This is in the console when I have mod_xml_curl enabled:
2009-08-27 16:39:52 [INFO] mod_dialplan_xml.c:252 dialplan_hunt() Processing ->15854199896 in context public
Dialplan: sofia/internal/585xxxxxxx@208.34.86.39 ([email]sofia/internal/585xxxxxxx@208.34.86.39[/email]) parsing [public->curl_test] continue=false
Dialplan: sofia/internal/585xxxxxxx@208.34.86.39 ([email]sofia/internal/585xxxxxxx@208.34.86.39[/email]) Regex (FAIL) [curl_test] destination_number(15854199896) =~ /^(18775844111)$/ break=on-false
2009-08-27 16:39:52 [INFO] switch_core_state_machine.c:136 switch_core_standard_on_routing() No Route, Aborting
--
Greg |
|
Back to top |
|
|
krice at freeswitch.org Guest
|
Posted: Thu Aug 27, 2009 4:38 pm Post subject: [Freeswitch-users] Mixing mod_curl_xml dynamic dialplans and |
|
|
Your php should return a not found, also you can stack static and non-static XML dialplans on your technology profile settings For example, on your internal.xml (in the default sip profiles) the dialplan setting can be set to “XML,XML:/path/to/some/static.xml” . Once it processes thru the xml_curl responses it will hit the static.xml From: Greg Thoen <gregt@cgicommunications.com> Reply-To: <freeswitch-users@lists.freeswitch.org> Date: Thu, 27 Aug 2009 17:13:42 -0400 To: <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] Mixing mod_curl_xml dynamic dialplans and static ones I have mod_curl_xml working, but I also have several static dialplans in dialplan/public/ and I can't seem to get it to search those if my php generated xml page does not return a result. I know in the static public.xml there is this <extension name="unloop"> <condition field="${unroll_loops}" expression="^true$"/> <condition field="${sip_looped_call}" expression="^true$"> <action application="deflect" data="${destination_number}"/> </condition> </extension> Do I need my php page to generate something like that so it will continue looking in the static pages if it does not find a match in the xml_curl dynamic dialplan? I don't know if I have given enough data for someone to point me in the right direction... This is in the console when I have mod_xml_curl enabled: 2009-08-27 16:39:52 [INFO] mod_dialplan_xml.c:252 dialplan_hunt() Processing ->15854199896 in context public Dialplan: sofia/internal/585xxxxxxx@208.34.86.39 parsing [public->curl_test] continue=false Dialplan: sofia/internal/585xxxxxxx@208.34.86.39 Regex (FAIL) [curl_test] destination_number(15854199896) =~ /^(18775844111)$/ break=on-false 2009-08-27 16:39:52 [INFO] switch_core_state_machine.c:136 switch_core_standard_on_routing() No Route, Aborting -- Greg _______________________________________________ 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 |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Thu Aug 27, 2009 4:55 pm Post subject: [Freeswitch-users] Mixing mod_curl_xml dynamic dialplans and |
|
|
On Thu, Aug 27, 2009 at 2:32 PM, Ken Rice <krice@freeswitch.org (krice@freeswitch.org)> wrote:
Quote: | Your php should return a not found, also you can stack static and non-static XML dialplans on your technology profile settings
For example, on your internal.xml (in the default sip profiles) the dialplan setting can be set to “XML,XML:/path/to/some/static.xml” . Once it processes thru the xml_curl responses it will hit the static.xml
|
Ken,
That's a very cool feature. I wasn't aware of it. I will see about adding this knowledge to the wiki if it isn't there already.
-MC |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|