<div>Thanks a lot. The link was a good help.</div>
<div>we tested with sample code in the link and no more 502 errors with the sample code in the link.</div>
<div> </div>
<div>We tried to make changes in our <a href="http://cdr.pl">cdr.pl</a> perl (using mod_xml_cdr) program accordingly</div>
<div>we made good progres in generatng xml file, however we are still getting 502 errors from <a href="http://cdr.pl">cdr.pl</a>.</div>
<div>Probably something else in our <a href="http://cdr.pl">cdr.pl</a> giving us that, we are still trying to figure out what piece is that.</div>
<div> </div>
<div>In the mean time, in generated xml we see a line like this</div>
<div> <strong> <^[7]\d{4}\$>77555</^[7]\d{4}\$></strong></div>
<div>and looks like this coming from </div>
<div><strong>$PIN_temp=$session->playAndGetDigits(1, 5, 1, 8000, "#", "conference/conf-pin.wav", "ivr/ivr-that_was_an_invalid_entry.wav", "", '^[7]\d{4}\$');</strong></div>
<div>and because of above xml line I am unable to parse xml.</div>
<div>(above tested with changes and changes reflect on xml line)</div>
<div> </div>
<div>why do you think </div>
<div>above $session->playAndGetDigits is producing xml line like </div>
<div>"<^[7]\d{4}\$>77555</^[7]\d{4}\$>"</div>
<div> </div>
<div>any ideas appreciated. </div>
<div>why and how to fix it.</div>
<div> </div>
<div>thx again</div>
<div>deniro--</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, May 25, 2011 at 5:33 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><a href="http://search.cpan.org/~markstos/CGI.pm-3.54/lib/CGI/Fast.pm" target="_blank">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><font color="#888888">-MC</font>
<div>
<div></div>
<div class="h5"><br><br>
<div class="gmail_quote">On Tue, May 24, 2011 at 10:12 PM, deniro <span dir="ltr"><<a href="mailto:ayhkor@gmail.com" target="_blank">ayhkor@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> </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,">",'/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" target="_blank">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>
<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><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" 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" 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></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>