[Freeswitch-users] mod_perl vs mod_xml_curl

Michael Collins msc at freeswitch.org
Mon Nov 26 20:00:28 MSK 2012


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

On Thu, Nov 22, 2012 at 2:59 AM, Eugene Prokopiev <enp at itx.ru> wrote:

> 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121126/0b4a363b/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list