<div dir="ltr">Hi,<br><br>I have installed freeswitch successfully and able to make SIP 2 SIP calls. I want to make registration using mod_curl.<br><br>So i made following changes ..<br><br><b>in xml_curl.conf.xml</b><br>
<br><br><configuration name="xml_curl.conf" description="cURL XML Gateway"><br><br> <binding name="directory fetcher"><br> <param name="gateway-url" value="<a href="http://localhost/directory.php">http://localhost/directory.php</a>" bindings="directory"/><br>
</binding><br></configuration><br><br><br>in sofia.conf.xml <br><br><pre style="font-family: arial,sans-serif;"><font size="2"><b><param name="accept-blind-reg" value="true"/><br>
<br><br>in directory.php<br><br><br></b><?php<br><br>header('Content-Type: text/xml');<br><br>$response = <<< XML<br><?xml version="1.0" encoding="UTF-8" standalone="no"?><br>
<br><document type="freeswitch/xml"><br> <section name="directory" description="example_curl_directory"><br> <domain name="<a href="http://192.168.1.10">192.168.1.10</a>"><br>
<user id="vids"><br> <params><br> <param name="password" value="123456"/><br> </params><br> </user><br> </domain><br>
</section><br></document><br><br>XML;<br><br>die($response);<br><br>?><br><br><b><br><br>No when i am trying to register with user vids pass :123456 <br><br>i am getting the following message: <br><br><br>
</b></font></pre>2008-07-28 20:02:38 [WARNING] sofia_reg.c:1247 sofia_reg_parse_auth() can't find user [<a href="mailto:vids@192.168.1.10">vids@192.168.1.10</a>]<br>You must define a domain called '<a href="http://192.168.1.10">192.168.1.10</a>' in your directory and add a user with the id="vids" attribute<br>
and you must configure your device to use the proper domain in it's authentication credentials.<br><br>my conf/directory/default.xml file contains :<br><br><include><br> <!--the domain or ip (the right hand side of the @ in the addr--><br>
<domain name="$${<a href="http://192.168.1.10">192.168.1.10</a>}"><br> <params><br> <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain},transfer_fallback_extension=${dialed_user}}${sofia_contact(${dialed_domain}/${dialed_user}@${dialed_domain})}"/><br>
</params><br><br> <variables><br> <variable name="record_stereo" value="true"/><br> </variables><br><br> <X-PRE-PROCESS cmd="include" data="default/*.xml"/><br>
</domain><br><br></include><br><br><br><br>Can anyone please help me .. where i am doing wrong ..<br><br><br><br> <br clear="all"><br>-- <br>Thanks and Regards <br><br>Vidhya Sagar Dixit<br>
</div>