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 [EMAIL PROTECTED]
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="
[EMAIL
PROTECTED],transfer_fallback_extension=${dialed_user}}${sofia_contact(${dialed_domain}/[EMAIL
PROTECTED])}"/<[EMAIL
PROTECTED],transfer_fallback_extension=$%7Bdialed_user%7D%7D$%7Bsofia_contact($%7Bdialed_domain%7D/[EMAIL
PROTECTED])%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
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org