[Freeswitch-users] mod_xml_curl
Ítalo Rossi
italo at freeswitch.org
Fri Feb 5 21:51:11 MSK 2016
Londre,
{domain} should be ${domain}
If mod_xml_curl is not respecting your configuration file then we have a
bug, can you please file a JIRA with your configs and log files?
On Thu, Feb 4, 2016 at 5:29 PM, Londre <dre at imerchantsystems.com> wrote:
> Hi,
>
>
>
> I have read the wiki several times and followed all the steps to the best
> of my knowledge. I have gotten mod_xml_curl build and making requests. I
> set xml_curl debug_on and I can see the request that freeswitch sends and I
> can take a look at the file it generates in the /tmp/ directory. However
> the file doesn’t seem to be writing anything. I have my web service set up
> to hand a POST request but it looks like freeswitch is sending GET requests
> even though I set the method to POST in xml_curl.xml. Any ideal would could
> be going wrong?
>
>
>
> System Info:
>
> Debian Jessie
>
> Freeswitch 1.7 built from source.
>
>
>
> Xml_curl.xml:
>
>
>
> 1 <configuration name="xml_curl.conf" description="cURL XML Gateway">
>
> 2 <bindings>
>
> 3 <binding name="directory">
>
> 4 <param name="gateway-url" value="http://{domain}/api/directory"
> bindings="directory|dialplan"/>
>
> 5 <param name="method" value="POST"/>
>
> 6 <param name"gateway-credentials" value"user:pass"/>
>
> 7 </binding>
>
> 8 </bindings>
>
> 9 </configuration>
>
>
>
> It also doesn’t seem to be sending the variables for the
> gateway-credentials. Its seems weird that its sending a GET request when
> the default should be a POST. Also it is a little confusing on the wiki
> some things show a query string and other show header variables. I’d prefer
> to use POST.
>
>
>
> Please offer some insight into what could be going wrong.
>
>
>
> *Londre Blocker*
>
> Developer
>
> iMerchant Systems Inc.
>
> T: 844.727.1998
>
>
>
> _________________________________________________________________________
> 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
>
--
Ítalo Rossi
italo at freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160205/869ba051/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list