1.0.6 is ancient. Get on the latest git - it is more stable and has more features and fewer bugs than 1.0.6.<div>-MC<br><br><div class="gmail_quote">On Thu, May 26, 2011 at 4:50 PM, deniro <span dir="ltr"><<a href="mailto:ayhkor@gmail.com">ayhkor@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>tried it and looks like that XML line is gone.</div>
<div>but now I am unable to join to conference by making suggested change. </div>
<div>played around it, no luck to join conference....</div>
<div>it doesnt get DTMF as I check from fs_cli</div>
<div> <strong>switch_cpp.cpp:1177 Got dtmf: -- ..</strong></div>
<div><strong> </strong></div>
<div>I also checked usage and it seems with 8 parameters.</div>
<div>I can't remember how I got it with 9 parameters before.</div>
<div>Anyway, It works(joins conference) with 9 parametes only.<br>I am using freeswitch 1.0.6 with ubuntu 10.04</div>
<div>can that usage be different from version to version?</div>
<div>thx</div><div><div></div><div class="h5">
<div><br> </div>
<div class="gmail_quote">On Thu, May 26, 2011 at 2:34 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><b>$PIN_temp=$session->playAndGetDigits(1, 5, 1, 8000, "#", "conference/conf-pin.wav", "ivr/ivr-that_was_an_invalid_entry.wav", "", '^[7]\d{4}\$');<br><br>
</b></div>It looks like this usage is wrong. You're giving 9 parameters but the Wiki seems to say it's only 8. It looks like it's using the 9th as a channel variable name to store the result in.<br><br>Try this:
<div><br><b>$PIN_temp=$session->playAndGetDigits(1, 5, 1, 8000, "#", "conference/conf-pin.wav", "ivr/ivr-that_was_an_invalid_entry.wav", '^[7]\d{4}\$');</b><br><br></div>
-Steve
<div>
<div></div>
<div><br><br><br><br>
<div class="gmail_quote">On 26 May 2011 06:22, 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>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/" target="_blank">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/" target="_blank">cdr.pl</a>.</div>
<div>Probably something else in our <a href="http://cdr.pl/" target="_blank">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> <b> <^[7]\d{4}\$>77555</^[7]\d{4}\$> <br></b></div>
<div>and looks like this coming from </div>
<div><b>$PIN_temp=$session->playAndGetDigits(1, 5, 1, 8000, "#", "conference/conf-pin.wav", "ivr/ivr-that_was_an_invalid_entry.wav", "", '^[7]\d{4}\$');</b></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> </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" target="_blank">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><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" 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><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 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>
</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></div>