Mixing dynamic (xml_curl) and static (XML) dialplans
Hi, I'm trying to mix static (XML file) and dynamic (mod_xml_curl) dialplan content. My static dialplan looks like: /tmp/test.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="dialplan" description="RE Dial Plan For FreeSwitch"> <context name="public"> <extension name="unloop"> <condition field="${unroll_loops}" expression="^true$"/> <condition field="${sip_looped_call}" expression="^true$"> <action application="deflect" data="${destination_number}"/> </condition> </extension> <extension name="outside_call" continue="true"> <condition> <action application="set" data="outside_call=true"/> </condition> </extension> <extension name="call_debug" continue="true"> <condition field="${call_debug}" expression="^true$" break="never"> <action application="info"/> </condition> </extension> </context> </section> </document> I changed parameter "dialplan" in profile internal.xml: <param name="dialplan" value="XML:/tmp/test.xml,XML"/> But when placing a call I only see that diaplan from static XML is parsed and executed (message "has executed the last dialplan instruction, hanging up."). What's going wrong ? Thanks and cheers Stefan
<param name="dialplan" value="XML:/tmp/test.xml,XML"/>
Not even close. Please read and re-read http://wiki.freeswitch.org/wiki/Mod_xml_curl and specifically look at bindings. -BDF On Wed, Apr 18, 2012 at 9:20 AM, Weigel, Stefan < Stefan.Weigel@allianz-warranty.com> wrote:
Hi,****
** **
I’m trying to mix static (XML file) and dynamic (mod_xml_curl) dialplan content.****
My static dialplan looks like:****
** **
** **
/tmp/test.xml:****
<?xml version="1.0" encoding="UTF-8" standalone="no"?>****
<document type="freeswitch/xml">****
<section name="dialplan" description="RE Dial Plan For FreeSwitch">****
<context name="public">****
** **
<extension name="unloop">****
<condition field="${unroll_loops}" expression="^true$"/>****
<condition field="${sip_looped_call}" expression="^true$">****
<action application="deflect" data="${destination_number}"/>****
</condition>****
</extension>****
** **
<extension name="outside_call" continue="true">****
<condition>****
<action application="set" data="outside_call=true"/>****
</condition>****
</extension>****
** **
<extension name="call_debug" continue="true">****
<condition field="${call_debug}" expression="^true$" break="never">* ***
<action application="info"/>****
</condition>****
</extension>****
** **
</context>****
</section>****
</document>****
** **
I changed parameter “dialplan” in profile internal.xml:****
** **
<param name="dialplan" value="XML:/tmp/test.xml,XML"/>****
** **
But when placing a call I only see that diaplan from static XML is parsed and executed (message “has executed the last dialplan instruction, hanging up.”).****
** **
** **
What’s going wrong ?****
** **
** **
** **
Thanks and cheers****
** **
Stefan****
** **
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Brian D. Foster Endigo Computer LLC Email: bdfoster@endigotech.com Phone: 317-800-7876 Indianapolis, Indiana, USA This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
Hi Brian, I configured xml_curl.conf.xml with the bindings (using fs_curl as dynamic backend). Having this content in the static file.. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="dialplan" description="RE Dial Plan For FreeSwitch"> <context name="public"> <!-- <extension name="outside_call" continue="true"> <condition> <action application="set" data="outside_call=true"/> </condition> </extension> --> </context> </section> </document> ..the dialplan processing continues with xml curl. But as soon as any <action> command Is triggered, the dialplan processing doesn't execute xml curl. Best regards Stefan Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Brian Foster Gesendet: Mittwoch, 18. April 2012 16:35 An: FreeSWITCH Users Help Betreff: Re: [Freeswitch-users] Mixing dynamic (xml_curl) and static (XML) dialplans
<param name="dialplan" value="XML:/tmp/test.xml,XML"/>
Not even close. Please read and re-read http://wiki.freeswitch.org/wiki/Mod_xml_curl and specifically look at bindings. -BDF On Wed, Apr 18, 2012 at 9:20 AM, Weigel, Stefan <Stefan.Weigel@allianz-warranty.com> wrote: Hi, I'm trying to mix static (XML file) and dynamic (mod_xml_curl) dialplan content. My static dialplan looks like: /tmp/test.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="dialplan" description="RE Dial Plan For FreeSwitch"> <context name="public"> <extension name="unloop"> <condition field="${unroll_loops}" expression="^true$"/> <condition field="${sip_looped_call}" expression="^true$"> <action application="deflect" data="${destination_number}"/> </condition> </extension> <extension name="outside_call" continue="true"> <condition> <action application="set" data="outside_call=true"/> </condition> </extension> <extension name="call_debug" continue="true"> <condition field="${call_debug}" expression="^true$" break="never"> <action application="info"/> </condition> </extension> </context> </section> </document> I changed parameter "dialplan" in profile internal.xml: <param name="dialplan" value="XML:/tmp/test.xml,XML"/> But when placing a call I only see that diaplan from static XML is parsed and executed (message "has executed the last dialplan instruction, hanging up."). What's going wrong ? Thanks and cheers Stefan _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 -- Brian D. Foster Endigo Computer LLC Email: bdfoster@endigotech.com Phone: 317-800-7876 Indianapolis, Indiana, USA This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
Did you miss my response? On Wed, Apr 18, 2012 at 10:11 AM, Weigel, Stefan <Stefan.Weigel@allianz-warranty.com> wrote:
Hi Brian,
I configured xml_curl.conf.xml with the bindings (using fs_curl as dynamic backend).
Having this content in the static file..
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="RE Dial Plan For FreeSwitch">
<context name="public">
<!--
<extension name="outside_call" continue="true">
<condition>
<action application="set" data="outside_call=true"/>
</condition>
</extension>
-->
</context>
</section>
</document>
..the dialplan processing continues with xml curl. But as soon as any <action> command Is triggered, the dialplan processing doesn’t execute xml curl.
Best regards
Stefan
Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Brian Foster Gesendet: Mittwoch, 18. April 2012 16:35 An: FreeSWITCH Users Help Betreff: Re: [Freeswitch-users] Mixing dynamic (xml_curl) and static (XML) dialplans
<param name="dialplan" value="XML:/tmp/test.xml,XML"/>
Not even close. Please read and re-read http://wiki.freeswitch.org/wiki/Mod_xml_curl and specifically look at bindings.
-BDF
On Wed, Apr 18, 2012 at 9:20 AM, Weigel, Stefan <Stefan.Weigel@allianz-warranty.com> wrote:
Hi,
I’m trying to mix static (XML file) and dynamic (mod_xml_curl) dialplan content.
My static dialplan looks like:
/tmp/test.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="RE Dial Plan For FreeSwitch">
<context name="public">
<extension name="unloop">
<condition field="${unroll_loops}" expression="^true$"/>
<condition field="${sip_looped_call}" expression="^true$">
<action application="deflect" data="${destination_number}"/>
</condition>
</extension>
<extension name="outside_call" continue="true">
<condition>
<action application="set" data="outside_call=true"/>
</condition>
</extension>
<extension name="call_debug" continue="true">
<condition field="${call_debug}" expression="^true$" break="never">
<action application="info"/>
</condition>
</extension>
</context>
</section>
</document>
I changed parameter “dialplan” in profile internal.xml:
<param name="dialplan" value="XML:/tmp/test.xml,XML"/>
But when placing a call I only see that diaplan from static XML is parsed and executed (message “has executed the last dialplan instruction, hanging up.”).
What’s going wrong ?
Thanks and cheers
Stefan
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Brian D. Foster Endigo Computer LLC Email: bdfoster@endigotech.com Phone: 317-800-7876 Indianapolis, Indiana, USA
This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Hello Anthony, sorry for my late response. Meanwhile I decided to put all extensions into database. It's more straight forward if I need to change some detail cause I want to manage the dialplan within a web ui. Thanks for your reply and best reagards, Stefan ----------------------------------------------- -----Ursprüngliche Nachricht----- Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Freitag, 20. April 2012 02:18 An: FreeSWITCH Users Help Betreff: Re: [Freeswitch-users] Mixing dynamic (xml_curl) and static (XML) dialplans Did you miss my response? On Wed, Apr 18, 2012 at 10:11 AM, Weigel, Stefan <Stefan.Weigel@allianz-warranty.com> wrote:
Hi Brian,
I configured xml_curl.conf.xml with the bindings (using fs_curl as dynamic backend).
Having this content in the static file..
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="RE Dial Plan For FreeSwitch">
<context name="public">
<!--
<extension name="outside_call" continue="true">
<condition>
<action application="set" data="outside_call=true"/>
</condition>
</extension>
-->
</context>
</section>
</document>
..the dialplan processing continues with xml curl. But as soon as any <action> command Is triggered, the dialplan processing doesn't execute xml curl.
Best regards
Stefan
Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Brian Foster Gesendet: Mittwoch, 18. April 2012 16:35 An: FreeSWITCH Users Help Betreff: Re: [Freeswitch-users] Mixing dynamic (xml_curl) and static (XML) dialplans
<param name="dialplan" value="XML:/tmp/test.xml,XML"/>
Not even close. Please read and re-read http://wiki.freeswitch.org/wiki/Mod_xml_curl and specifically look at bindings.
-BDF
On Wed, Apr 18, 2012 at 9:20 AM, Weigel, Stefan <Stefan.Weigel@allianz-warranty.com> wrote:
Hi,
I'm trying to mix static (XML file) and dynamic (mod_xml_curl) dialplan content.
My static dialplan looks like:
/tmp/test.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="RE Dial Plan For FreeSwitch">
<context name="public">
<extension name="unloop">
<condition field="${unroll_loops}" expression="^true$"/>
<condition field="${sip_looped_call}" expression="^true$">
<action application="deflect" data="${destination_number}"/>
</condition>
</extension>
<extension name="outside_call" continue="true">
<condition>
<action application="set" data="outside_call=true"/>
</condition>
</extension>
<extension name="call_debug" continue="true">
<condition field="${call_debug}" expression="^true$" break="never">
<action application="info"/>
</condition>
</extension>
</context>
</section>
</document>
I changed parameter "dialplan" in profile internal.xml:
<param name="dialplan" value="XML:/tmp/test.xml,XML"/>
But when placing a call I only see that diaplan from static XML is parsed and executed (message "has executed the last dialplan instruction, hanging up.").
What's going wrong ?
Thanks and cheers
Stefan
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Brian D. Foster Endigo Computer LLC Email: bdfoster@endigotech.com Phone: 317-800-7876 Indianapolis, Indiana, USA
This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Your static dp probably matched something which means it will not bother to fail over to the other one. If even one regex is matched in your static file you'll not get to do the other one. If you really need it to work as-is, add a catch-all in the end of the static file to transfer to the XML dp. On Wed, Apr 18, 2012 at 9:35 AM, Brian Foster <bdfoster@endigotech.com> wrote:
<param name="dialplan" value="XML:/tmp/test.xml,XML"/>
Not even close. Please read and re-read http://wiki.freeswitch.org/wiki/Mod_xml_curl and specifically look at bindings.
-BDF
On Wed, Apr 18, 2012 at 9:20 AM, Weigel, Stefan <Stefan.Weigel@allianz-warranty.com> wrote:
Hi,
I’m trying to mix static (XML file) and dynamic (mod_xml_curl) dialplan content.
My static dialplan looks like:
/tmp/test.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="RE Dial Plan For FreeSwitch">
<context name="public">
<extension name="unloop">
<condition field="${unroll_loops}" expression="^true$"/>
<condition field="${sip_looped_call}" expression="^true$">
<action application="deflect" data="${destination_number}"/>
</condition>
</extension>
<extension name="outside_call" continue="true">
<condition>
<action application="set" data="outside_call=true"/>
</condition>
</extension>
<extension name="call_debug" continue="true">
<condition field="${call_debug}" expression="^true$" break="never">
<action application="info"/>
</condition>
</extension>
</context>
</section>
</document>
I changed parameter “dialplan” in profile internal.xml:
<param name="dialplan" value="XML:/tmp/test.xml,XML"/>
But when placing a call I only see that diaplan from static XML is parsed and executed (message “has executed the last dialplan instruction, hanging up.”).
What’s going wrong ?
Thanks and cheers
Stefan
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Brian D. Foster Endigo Computer LLC Email: bdfoster@endigotech.com Phone: 317-800-7876 Indianapolis, Indiana, USA
This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
participants (3)
-
Anthony Minessale
-
Brian Foster
-
Weigel, Stefan