<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
When I check my database and I have no matching entry I return this
to FS from curl<br>
<br>
"<?xml version=\"1.0\" encoding=\"UTF-8\"
standalone=\"no\"?>\r\n" +<br>
"<document
type=\"freeswitch/xml\">\r\n" +<br>
" <section
name=\"directory\">\r\n" +<br>
" <result status=\"not
found\"/>\r\n" +<br>
" </section>\r\n" +<br>
"</document>\r\n"<br>
if it is found I return all information that would be in the static
directory xml for that user.<br>
You should also be returning the password, FreeSwitch checks it
against what is sent from your client to authenticate. <br>
This is probably why it works when use a blank password.<br>
<br>
this scenario works like a charm for me. <br>
Jack<br>
<br>
On 9/14/2011 2:02 AM, rendyfrx wrote:
<blockquote cite="mid:1315990960205-6791769.post@n2.nabble.com"
type="cite">
<pre wrap="">Hi,
I'm trying to setup freeswitch to authenticate SIP client login (SIP
register) to my backend database via php, example: username=65972932222,
pwd=1234
As I couldn't really find sample return that suit my need, so I tried with
below xml return. Problem is if the password is blank, then it will
accepted, but if I change to simple password 1234 as xml return below, I
will get SIP/2.0 403 Forbidden.
xml return :
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="directory" description="User Directory">
<domain name="10.1.1.47">
<user id="6597293279">
<params>
<font color="#ff6666"><big> <b><param name=\"password\" value="1234"/></b></big></font>
</params>
</user>
</domain>
</section>
I tried add in groups, but it doesn't have any impact.
The bindings' auth-scheme value is "basic", mod_xml_curl will call another
server (LAN) and it will validate and return the xml above.
Anybody can advise what I might be missing here?
Thanks in advance
--
View this message in context: <a class="moz-txt-link-freetext" href="http://freeswitch-users.2379917.n2.nabble.com/mod-xml-curl-Only-accept-if-Return-Password-is-blank-tp6791769p6791769.html">http://freeswitch-users.2379917.n2.nabble.com/mod-xml-curl-Only-accept-if-Return-Password-is-blank-tp6791769p6791769.html</a>
Sent from the freeswitch-users mailing list archive at Nabble.com.
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
</body>
</html>