[Freeswitch-users] [mod_xml_curl] Only accept if Return Password is blank

Jack jack at livecall.com
Wed Sep 14 20:56:10 MSD 2011


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-Return-Password-is-blank-tp6791769p6793355.html
> Sent from the freeswitch-users mailing list archive at Nabble.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
>
>



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list