<div dir="ltr"><div><div><div><div><div> </div>Hello All,<br><br></div>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.<br><br>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.<br><br></div>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?<br><br></div>Currently, I am able to access following elements in fs_curl.<br><br> [hostname] => Backend<br> [section] => directory<br> [tag_name] => domain<br> [key_name] => name<br> [key_value] => 192.168.3.47<br> [Event-Name] => REQUEST_PARAMS<br> [Core-UUID] => a6470f48-ea06-409e-a4cb-1678e0c9a0d6<br> [FreeSWITCH-Hostname] => Backend<br> [FreeSWITCH-Switchname] => Backend<br> [FreeSWITCH-IPv4] => 192.168.3.47<br> [FreeSWITCH-IPv6] => ::1<br> [Event-Date-Local] => 2017-06-23 15:39:43<br> [Event-Date-GMT] => Fri, 23 Jun 2017 10:09:43 GMT<br> [Event-Date-Timestamp] => 1498212583180796<br> [Event-Calling-File] => mod_directory.c<br> [Event-Calling-Function] => populate_database<br> [Event-Calling-Line-Number] => 633<br> [Event-Sequence] => 132072<br><br></div>Thank you very much in advance.<br clear="all"><div><div><div><div><div><div><br>-- <br><div class="gmail_signature">With kind regards....<br>Kashyap Dhamecha<br></div>
</div></div></div></div></div></div></div>