This is returned for a found user. The querystring[] variables are filled from the POST FreeSwitch made in the fetch to curl. PassWordFromDatabase would be a variable filled from your database lookup. If it is posting to your curl http server you are probably set up correctly. If you turn your http server off and call into Freeswitch you should see the POST attempt on the FS console "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\r\n" + "<document type=\"freeswitch/xml\">\r\n" + " <section name=\"directory\" description=\"Directory For FreeSwitch\">\r\n" + " <domain name=\"" + queryString["domain"] + "\">\r\n" + " <user id=\"" + queryString["user"] + "\">\r\n" + " <params>\r\n" + " <param name=\"password\" value=\"" + PasswordFromDatabase + "\"/>\r\n" + " </params>\r\n" + " <variables>\r\n" + " <variable name=\"user_context\" value=\"default\"/>\r\n" + " </variables>\r\n" + " </user>\r\n" + " </domain>\r\n" + " </section>\r\n" + "</document>\r\n" On 9/14/2011 9:37 AM, rendyfrx wrote:
Hi Jack, Thanks for your reply. I think the param did not include the backslashes, probably due to this forum's text display only, so it should not have backslashes when reaches FS.
Would you mind sharing with me one sample static directory xml return for any particular user? I can try it out the format. Also is there any special config that I might missed?
Your help is much appreciated. Thanks.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/mod-xml-curl-Only-accept-if-Re... Sent from the freeswitch-users mailing list archive at Nabble.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