Did the console show any errors or warnings when using the mod_perl method? Were you able to confirm that the directory.pl script actually was run?
-MC
Hi,
I tried to to authenticate users from external source with mod_perl or mod_xml_curl. Configuration and code looks like:
mod_perl:
<configuration name="perl.conf">
<settings>
<param name="xml-handler-script" value="/var/lib/freeswitch/scripts/directory.pl"/>
<param name="xml-handler-bindings" value="directory"/>
</settings>
</configuration>
$XML_STRING = '
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="directory">
<domain name="$${local_address}">
<params>
<param name="dial-string" value="${sofia_contact(${dialed_user}@${dialed_domain})}"/>
</params>
<groups>
<group name="local">
<users>
<user id="123"><params><param name="password" value="123"/></params></user>
</users>
</group>
</groups>
</domain>
</section>
</document>
';
mod_xml_curl:
<configuration name="xml_curl.conf">
<bindings>
<binding name="directory">
<param name="gateway-url" value="http://localhost:5000" bindings="directory"/>
</binding>
</bindings>
</configuration>
use Mojolicious::Lite;
post '/' => 'index';
app->start;
__DATA__
@@ index.html.ep
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="directory">
<domain name="$${local_address}">
<params>
<param name="dial-string" value="${sofia_contact(${dialed_user}@${dialed_domain})}"/>
</params>
<groups>
<group name="local">
<users>
<user id="123"><params><param name="password" value="123"/></params></user>
</users>
</group>
</groups>
</domain>
</section>
</document>
Authentication via mod_xml_curl was succeeded, authentication via mod_perl was failed. What is wring with it?
--
Regards,
Eugene Prokopiev
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
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