[Freeswitch-users] dial plan in mod xml curl
Ian McMaster
ian.mcmaster at gmail.com
Wed May 7 17:56:27 MSD 2014
First, I am not sure if mixing together 'sections' in the response is a
good practice. The xml_curl post parameters will request a "section" (i.e.
configuration, directory or dialplan) and the response can be more tailored
than you have (you are mixing directory and dialplan responses).
Your xml_curl dialplan response has two conditions (unroll_loops and
sip_looped_call) - are both true? If you created the same extension in the
regular public dialplan,and turned off xml_curl would the call be processed?
It would be a good idea to turn on debug (xml_curl debug_on) and make sure
that your xml_curl server is responding when calling 1234->4321.
Not sure what else could be the problem.
Ian.
On Wed, May 7, 2014 at 5:32 AM, raheem <sraheemuddin at cts-in.com> wrote:
> Hi,
> I am trying to use mod xml curl with freeswitch.
>
> I have configured in "xml_curl.conf.xml " gateway url to
>
>
>
>
> where in at server it sends below response
>
> <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></context></section>
> <section name="directory">
> <domain name="123.176.38.68">
> <params>
>
> </params>
> <users>
> <user id="1234" cacheable="true">
> <params>
>
>
> </params>
> </user>
> <user id="4321" cacheable="true">
> <params>
>
> </params>
> </user>
> </users>
> </domain>
> </section>
> </document>
>
> I am unable to make call for below error
> 2014-05-06 12:44:15.313984 [INFO] mod_dialplan_xml.c:558 Processing 1234
> <1234>->4321 in context public
> 2014-05-06 12:44:15.633985 [INFO] switch_core_state_machine.c:192 No Route,
> Aborting
>
> I guess i am missing in dialplan part
>
>
>
>
> --
> View this message in context:
> http://freeswitch-users.2379917.n2.nabble.com/dial-plan-in-mod-xml-curl-tp7596111.html
> Sent from the freeswitch-users mailing list archive at Nabble.com.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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/20140507/ea33165a/attachment-0001.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list