[Freeswitch-users] SIP Registrations ..mod_curl
vidhya sagar dixit
vids.cs at gmail.com
Mon Jul 28 07:57:18 PDT 2008
Hi,
First of all sorry to post again as i didn't see my mail in list ..
I have installed freeswitch successfully and able to make SIP 2 SIP calls. I
want to make registration using mod_curl.
So i made following changes ..
in xml_curl.conf.xml
<configuration name="xml_curl.conf" description="cURL XML Gateway">
<binding name="directory fetcher">
<param name="gateway-url" value="http://localhost/directory.php"
bindings="directory"/>
</binding>
</configuration>
in sofia.conf.xml
<param name="accept-blind-reg" value="true"/>
in directory.php<?phpheader('Content-Type: text/xml');$response = <<<
XML<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml"> <section name="directory"
description="example_curl_directory"> <domain name="192.168.1.10">
<user id="vids"> <params> <param name="password"
value="123456"/> </params> </user> </domain>
</section></document>XML;die($response);?>No when i am trying to register
with user vids pass :123456 i am getting the following message:
2008-07-28 20:02:38 [WARNING] sofia_reg.c:1247 sofia_reg_parse_auth() can't
find user [vids at 192.168.1.10]
You must define a domain called '192.168.1.10' in your directory and add a
user with the id="vids" attribute
and you must configure your device to use the proper domain in it's
authentication credentials.
my conf/directory/default.xml file contains :
<include>
<!--the domain or ip (the right hand side of the @ in the addr-->
<domain name="$${192.168.1.10}">
<params>
<param name="dial-string" value="
{presence_id=${dialed_user}@${dialed_domain},transfer_fallback_extension=${dialed_user}}${sofia_contact(${dialed_domain}/${dialed_user}@${dialed_domain})}"/<%7Bpresence_id=$%7Bdialed_user%7D@$%7Bdialed_domain%7D,transfer_fallback_extension=$%7Bdialed_user%7D%7D$%7Bsofia_contact($%7Bdialed_domain%7D/$%7Bdialed_user%7D@$%7Bdialed_domain%7D)%7D%22/>
>
</params>
<variables>
<variable name="record_stereo" value="true"/>
</variables>
<X-PRE-PROCESS cmd="include" data="default/*.xml"/>
</domain>
</include>
Can anyone please help me .. where i am doing wrong ..
--
Thanks and Regards
Vidhya Sagar Dixit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080728/99c3a92d/attachment-0002.html
More information about the FreeSWITCH-users
mailing list