VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
ctalle at voiceway.ca Guest
|
Posted: Wed Sep 17, 2008 4:00 pm Post subject: [Freeswitch-users] Example xml_curl configuration for user d |
|
|
Hi Carl,
I am experiencing a similar problem, have you found any solution so far?
Thank you,
Cristian Talle
Quote: | I wonder if anybody could provide a complete set of configuration files for
a working xml_curl user directory lookup.
I have been trying using the default set of configuration files, added the
xml_curl module loading and modified the configuration like this:
<configuration name="xml_curl.conf" description="cURL XML Gateway">
<bindings>
<binding name="dialplan fetcher">
<param name="gateway-url" value="
http://172.16.26.10/apache2-default/dialplan.php" <http://172.16.26.10/apache2-default/dialplan.php%22> bindings="dialplan"/>
</binding>
<binding name="directory fetcher">
<param name="gateway-url" value="
http://172.16.26.10/apache2-default/directory.php" <http://172.16.26.10/apache2-default/directory.php%22> bindings="directory"/>
</binding>
</bindings>
</configuration>
Both scripts just dump the expected XML result:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="example_curl_dialplan">
<context name="default">
<extension name="curl_test">
<condition field="destination_number" expression="^999999999$">
<action application="answer"/>
<action application="send_display" data="Echo Test"/>
<action application="echo"/>
</condition>
</extension>
</context>
</section>
</document>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="directory" description="example_curl_directory">
<domain name="172.26.16.10">
<user id="carl">
<params>
<param name="password" value="1234"/>
</params>
</user>
</domain>
</section>
</document>
The sofia-sip parameter "accept-blind-reg" is set to false.
When using one of the default users (1000), I can register and the xml_curl
dialplan lookup works like expected. However, when trying to register as
user carl,
I can see that the XML is received by the xml_curl interface, but sofia-sip
complains that it cannot find the user. Here is a part of the console
output:
mod_xml_curl.c:194 xml_url_fetch() XML response is in
/tmp/6053a796-2bdb-11dd-9449-17a3c8baef50.tmp.xml
sofia_reg.c:1061 sofia_reg_parse_auth() can't find user [carl at 172.16.26.10 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>]
When using the xml_locate cli command, I get a similar result:
Quote: | / xml_locate directory domain name 172.16.26.10
| /mod_xml_curl.c:194 xml_url_fetch() XML response is in
/tmp/93d6019a-2bdb-11dd-9449-17a3c8baef50.tmp.xml
API CALL [xml_locate(directory domain name 172.16.26.10)] output:
<domain name="172.16.26.10">
### contents of local XML file (users 1000 and up)
</domain>
It fetches the XML from the webserver and dumps the contents of the local
XML files. Disabling the "directory" section in the default freeswitch.xml
file does not help,
as I initially thought it might be caused by the duplicate domain names.
I hope someone could help out here.
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
tntknight at gmail.com Guest
|
Posted: Wed Sep 17, 2008 4:23 pm Post subject: [Freeswitch-users] Example xml_curl configuration for user d |
|
|
Did you notice -
in your xml you have <domain name="172.26.16.10">
but you're looking for
carl at 172.16.26.10
the 16 and 26 are reversed in your xml. I think this causes your problem!
Tony
On Wed, Sep 17, 2008 at 4:58 PM, Cristian Talle <ctalle@voiceway.ca> wrote:
Quote: | Hi Carl,
I am experiencing a similar problem, have you found any solution so far?
Thank you,
Cristian Talle
Quote: | I wonder if anybody could provide a complete set of configuration files for
a working xml_curl user directory lookup.
I have been trying using the default set of configuration files, added the
xml_curl module loading and modified the configuration like this:
<configuration name="xml_curl.conf" description="cURL XML Gateway">
<bindings>
<binding name="dialplan fetcher">
<param name="gateway-url" value="
http://172.16.26.10/apache2-default/dialplan.php" <http://172.16.26.10/apache2-default/dialplan.php%22> bindings="dialplan"/>
</binding>
<binding name="directory fetcher">
<param name="gateway-url" value="
http://172.16.26.10/apache2-default/directory.php" <http://172.16.26.10/apache2-default/directory.php%22> bindings="directory"/>
</binding>
</bindings>
</configuration>
Both scripts just dump the expected XML result:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="example_curl_dialplan">
<context name="default">
<extension name="curl_test">
<condition field="destination_number" expression="^999999999$">
<action application="answer"/>
<action application="send_display" data="Echo Test"/>
<action application="echo"/>
</condition>
</extension>
</context>
</section>
</document>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="directory" description="example_curl_directory">
<domain name="172.26.16.10">
<user id="carl">
<params>
<param name="password" value="1234"/>
</params>
</user>
</domain>
</section>
</document>
The sofia-sip parameter "accept-blind-reg" is set to false.
When using one of the default users (1000), I can register and the xml_curl
dialplan lookup works like expected. However, when trying to register as
user carl,
I can see that the XML is received by the xml_curl interface, but sofia-sip
complains that it cannot find the user. Here is a part of the console
output:
mod_xml_curl.c:194 xml_url_fetch() XML response is in
/tmp/6053a796-2bdb-11dd-9449-17a3c8baef50.tmp.xml
sofia_reg.c:1061 sofia_reg_parse_auth() can't find user [carl at 172.16.26.10 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>]
When using the xml_locate cli command, I get a similar result:
Quote: | / xml_locate directory domain name 172.16.26.10
| /mod_xml_curl.c:194 xml_url_fetch() XML response is in
/tmp/93d6019a-2bdb-11dd-9449-17a3c8baef50.tmp.xml
API CALL [xml_locate(directory domain name 172.16.26.10)] output:
<domain name="172.16.26.10">
### contents of local XML file (users 1000 and up)
</domain>
It fetches the XML from the webserver and dumps the contents of the local
XML files. Disabling the "directory" section in the default freeswitch.xml
file does not help,
as I initially thought it might be caused by the duplicate domain names.
I hope someone could help out here.
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|