<a href="http://search.cpan.org/~markstos/CGI.pm-3.54/lib/CGI/Fast.pm">http://search.cpan.org/~markstos/CGI.pm-3.54/lib/CGI/Fast.pm</a><div><br></div><div>That module looks like it is built on top of FCGI and gives you a CGI-like interface.</div>
<div><br></div><div>-MC<br><br><div class="gmail_quote">On Tue, May 24, 2011 at 10:12 PM, deniro <span dir="ltr">&lt;<a href="mailto:ayhkor@gmail.com">ayhkor@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div> </div>
<div>Thanks for the replies</div>
<div>I made some research and run series of tests.</div>
<div>I am using  perl+FCGI (fastcgi)  and my http server is  working fine as tested with multiple perl scripts.</div>
<div>
<div>I think the problem is handling the CGI within the <a href="http://cdr.pl" target="_blank">cdr.pl</a> file(obtained from freeswitch wiki)</div>
<div> </div></div>
<div>
<div>so, how can I change below script to use with FCGI instead of CGI::Simple</div></div>
<div> </div>
<div>use XML::Simple; # Get from CPAN<br>use CGI::Simple; # Get from CPAN<br>use Data::Dumper;</div>
<div># dump into a place for further review<br>open(FILEOUT,&quot;&gt;&quot;,&#39;/tmp/fs-xml-cdr2.log&#39;);<br>print FILEOUT &quot;Test successful..\n&quot;;<br>cloe(FILEOUT);</div>
<div># dump into a place for further review<br>open(FILEOUT,&quot;&gt;&gt;&quot;,&#39;/tmp/fs-xml-cdr.log&#39;);</div>
<div># $cgi object has handy methods<br>my $cgi = new CGI::Simple;</div>
<div> </div>
<div> </div>
<div>Thx</div>
<div>deniro</div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Mon, May 23, 2011 at 3:50 AM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">
<div>
<blockquote style="border-left:rgb(204,204,204) 1px solid;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex" class="gmail_quote">&gt; 2-- when dialing into conference, getting following from fs_cli<br>&gt; [ERR] mod_xml_cdr.c:365 Got error [502] posting to web server<br>

&gt; [<a href="http://www.xxx.com/PERL/cdr.pl" target="_blank">http://www.xxx.com/PERL/cdr.pl</a>]<br><br>There isn&#39;t a lot of info to work on here, but I&#39;d look at your web<br>setup and not FS for the mix-up (particularly true as &quot;HTTP Error 502&quot;<br>

means you have a bad gateway).<br></blockquote><br></div>Check your web server logs - there may be some useful message. It sounds like the cgi-bin/perl handler hasn&#39;t been configured correctly, the script isn&#39;t executable, or it&#39;s not returning some headers. Try visiting the URL in your webbrowser (you <br>

won&#39;t be submitting a CDR but you can at least check the script runs without an (unexpected) error. 
<div>
<div></div>
<div><br><br><br><br><br>
<div class="gmail_quote">On 23 May 2011 07:38, Gabriel Gunderson <span dir="ltr">&lt;<a href="mailto:gabe@gundy.org" target="_blank">gabe@gundy.org</a>&gt;</span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">
<div>On Sun, May 22, 2011 at 6:27 PM, deniro &lt;<a href="mailto:ayhkor@gmail.com" target="_blank">ayhkor@gmail.com</a>&gt; wrote:<br>&gt; several questions;<br>&gt; 1-- do I really need to  load mod_xml_curl for mod_xml_cdr?<br>

&gt; trying to figure out if my problem is with cdr or with curl<br><br></div>No, they are not functionally related... easy to get mixed up because<br>they both use HTTP and XML. One does not depend on the other. However,<br>

you *can* configure mod_xml_cdr (or any other module) with<br>mod_xml_curl.<br>
<div><br><br><br>&gt; 2-- when dialing into conference, getting following from fs_cli<br>&gt; [ERR] mod_xml_cdr.c:365 Got error [502] posting to web server<br>&gt; [<a href="http://www.xxx.com/PERL/cdr.pl" target="_blank">http://www.xxx.com/PERL/cdr.pl</a>]<br>

<br></div>There isn&#39;t a lot of info to work on here, but I&#39;d look at your web<br>setup and not FS for the mix-up (particularly true as &quot;HTTP Error 502&quot;<br>means you have a bad gateway).<br>
<div><br><br><br>&gt; 3-- I am not quiete sure if this line is correct in xml_cdr.conf.xml<br>&gt;  &lt;param name=&quot;url&quot; value=&quot;<a href="http://www.xxx.com/PERL/cdr.pl" target="_blank">http://www.xxx.com/PERL/cdr.pl</a>&quot;/&gt;<br>

<br></div>Looks good to me, but check it with the wiki:<br><a href="http://wiki.freeswitch.org/wiki/Mod_xml_cdr#Sample_Configuration" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_cdr#Sample_Configuration</a><br>


<div><br><br><br>&gt; 4-- if I need mod_xml_curl (question 1)<br>&gt; what should this line be like in xml_curl.conf.xml?<br>&gt; &lt;param name=&quot;gateway-url&quot; value=&quot;<a href="http://www.xxx.com/" target="_blank">http://www.xxx.com:80</a>&quot;<br>

&gt; bindings=&quot;dialplan&quot;/&gt;<br><br></div>This one is a little tricker to get right.  Again, the wiki is might<br>be the best place to reference:<br><a href="http://wiki.freeswitch.org/wiki/Mod_xml_curl#Configuring" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_curl#Configuring</a><br>

<br><br><br>Good luck,<br>Gabe<br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br>
<div style="text-align:left;padding-bottom:0px;line-height:130%;margin-top:0px;padding-left:0px;padding-right:0px;word-wrap:break-word;color:black;margin-left:0px;font-size:10px;overflow:hidden;padding-top:0px">
</div></div></div><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>_______________________________________________<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></div>