Did the console show any errors or warnings when using the mod_perl method? Were you able to confirm that the <a href="http://directory.pl">directory.pl</a> script actually was run?<br>-MC<br><br><div class="gmail_quote">On Thu, Nov 22, 2012 at 2:59 AM, Eugene Prokopiev <span dir="ltr"><<a href="mailto:enp@itx.ru" target="_blank">enp@itx.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>I tried to to <span lang="en"><span>authenticate</span></span> users from external source with mod_perl or mod_xml_curl. Configuration and code looks like:<br>
<br>mod_perl:<br><br><configuration name="perl.conf"><br>
<settings><br> <param name="xml-handler-script" value="/var/lib/freeswitch/scripts/<a href="http://directory.pl" target="_blank">directory.pl</a>"/><br> <param name="xml-handler-bindings" value="directory"/><br>
</settings><br></configuration><br><br>$XML_STRING = '<br><?xml version="1.0" encoding="UTF-8" standalone="no"?><br><document type="freeswitch/xml"><br>
<section name="directory"><br> <domain name="$${local_address}"><br> <params><br> <param name="dial-string" value="${sofia_contact(${dialed_user}@${dialed_domain})}"/><br>
</params><br> <groups><br> <group name="local"><br> <users><br> <user id="123"><params><param name="password" value="123"/></params></user><br>
</users><br> </group><br> </groups><br> </domain><br> </section><br></document><br>';<br><br>mod_xml_curl:<br><br><configuration name="xml_curl.conf"><br>
<bindings><br> <binding name="directory"><br> <param name="gateway-url" value="<a href="http://localhost:5000" target="_blank">http://localhost:5000</a>" bindings="directory"/><br>
</binding><br> </bindings><br></configuration><br><br>use Mojolicious::Lite;<br>post '/' => 'index';<br>app->start;<br>__DATA__<br>@@ index.html.ep<br><?xml version="1.0" encoding="UTF-8" standalone="no"?><br>
<document type="freeswitch/xml"><br>
<section name="directory"><br>
<domain name="$${local_address}"><br>
<params><br>
<param name="dial-string" value="${sofia_contact(${dialed_user}@${dialed_domain})}"/><br>
</params><br>
<groups><br>
<group name="local"><br>
<users><br>
<user id="123"><params><param name="password" value="123"/></params></user><br>
</users><br>
</group><br>
</groups><br>
</domain><br>
</section><br>
</document><br><br><span lang="en"><span>Authentication</span></span> via mod_xml_curl was <span lang="en"><span>succeeded, </span></span><span lang="en"><span>authentication</span></span> via mod_perl was failed. What is wring with it?<br>
<br>--<br>Regards,<br>Eugene Prokopiev<br>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>