[Freeswitch-users] POST additional channel variable in xml_curl - fs_curl

Kashyap Dhamecha kd.dhamecha at gmail.com
Fri Jun 23 10:54:36 UTC 2017


Hello All,

I have configured mod_xml_curl and did binding of the directory and
configuration. To generate XML file I am using fs_curl and everything is
working fine.

Recently I was testing mod_directory module and found xml_curl will be used
to lookup for names. When lookup event is called it is passing some
predefined elements which can be accessed to generate XML file. Along with
this predefined elements is there any way to pass any channel variable in
this lookup and that variable can be used to add some logic in generating
XML file.

Initially I found "enable-post-var" param in xm_curl.conf.xml will do it.
But it did not work. So is it possible to send any channel variable to
access in this lookup?

Currently, I am able to access following elements in fs_curl.

    [hostname] => Backend
    [section] => directory
    [tag_name] => domain
    [key_name] => name
    [key_value] => 192.168.3.47
    [Event-Name] => REQUEST_PARAMS
    [Core-UUID] => a6470f48-ea06-409e-a4cb-1678e0c9a0d6
    [FreeSWITCH-Hostname] => Backend
    [FreeSWITCH-Switchname] => Backend
    [FreeSWITCH-IPv4] => 192.168.3.47
    [FreeSWITCH-IPv6] => ::1
    [Event-Date-Local] => 2017-06-23 15:39:43
    [Event-Date-GMT] => Fri, 23 Jun 2017 10:09:43 GMT
    [Event-Date-Timestamp] => 1498212583180796
    [Event-Calling-File] => mod_directory.c
    [Event-Calling-Function] => populate_database
    [Event-Calling-Line-Number] => 633
    [Event-Sequence] => 132072

Thank you very much in advance.

-- 
With kind regards....
Kashyap Dhamecha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170623/ea360701/attachment.html>


More information about the FreeSWITCH-users mailing list