<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">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,">",'/tmp/fs-xml-cdr2.log');<br>print FILEOUT "Test successful..\n";<br>cloe(FILEOUT);</div>
<div># dump into a place for further review<br>open(FILEOUT,">>",'/tmp/fs-xml-cdr.log');</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"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">> 2-- when dialing into conference, getting following from fs_cli<br>> [ERR] mod_xml_cdr.c:365 Got error [502] posting to web server<br>
> [<a href="http://www.xxx.com/PERL/cdr.pl" target="_blank">http://www.xxx.com/PERL/cdr.pl</a>]<br><br>There isn't a lot of info to work on here, but I'd look at your web<br>setup and not FS for the mix-up (particularly true as "HTTP Error 502"<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't been configured correctly, the script isn't executable, or it's not returning some headers. Try visiting the URL in your webbrowser (you <br>
won't be submitting a CDR but you can at least check the script runs without an (unexpected) error.
<div>
<div></div>
<div class="h5"><br><br><br><br><br>
<div class="gmail_quote">On 23 May 2011 07:38, Gabriel Gunderson <span dir="ltr"><<a href="mailto:gabe@gundy.org" target="_blank">gabe@gundy.org</a>></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 <<a href="mailto:ayhkor@gmail.com" target="_blank">ayhkor@gmail.com</a>> wrote:<br>> several questions;<br>> 1-- do I really need to load mod_xml_curl for mod_xml_cdr?<br>
> 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>> 2-- when dialing into conference, getting following from fs_cli<br>> [ERR] mod_xml_cdr.c:365 Got error [502] posting to web server<br>> [<a href="http://www.xxx.com/PERL/cdr.pl" target="_blank">http://www.xxx.com/PERL/cdr.pl</a>]<br>
<br></div>There isn't a lot of info to work on here, but I'd look at your web<br>setup and not FS for the mix-up (particularly true as "HTTP Error 502"<br>means you have a bad gateway).<br>
<div><br><br><br>> 3-- I am not quiete sure if this line is correct in xml_cdr.conf.xml<br>> <param name="url" value="<a href="http://www.xxx.com/PERL/cdr.pl" target="_blank">http://www.xxx.com/PERL/cdr.pl</a>"/><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>> 4-- if I need mod_xml_curl (question 1)<br>> what should this line be like in xml_curl.conf.xml?<br>> <param name="gateway-url" value="<a href="http://www.xxx.com/" target="_blank">http://www.xxx.com:80</a>"<br>
> bindings="dialplan"/><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">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>