<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;">below is the lua script that is running when the caller dials in. As mentioned before, swaping the streamFile and sleep make the problem go away. <br><br>I am experiencing different issues all related to DTMF tones, again, I don't think FS is the problem. But I'm wondering how to find the culprit.<br><br>Issues:<br>1. for 4-5 hours the other day I could not detect the 1,2,3 tones, but 4-0 worked fine. <br>2. Using some cellphones (iphone) the digits take 1-2 seconds each to be received by FS, no matter how fast the digits were typed on the phone's keypad.<br><br>I believe the isuse with #2 is somewhere in the iphone/ATT as I can call other IVR systems and sometimes get the same problem. (Etnering a 10 digit phone number will take 15 seconds to be recognized, because the digits seem to be spaced 1-2 seconds apart)<br><br>Issue #1 is the more problematic one. It occurs intermittently, and for hours at a time, and then everything goes back to normal. <br><br>Thanks for your help<br>-pete<br><br>------- BEGIN SCRIPT -------<br><br>function cbPIN(ses, type, data, arg)<br> if (type == "dtmf") then<br> freeswitch.consoleLog("info", "DIGIT: " .. data.digit)<br> local d = ses:getVariable("private_digits")<br> if ((d == nil) or (d == "")) then d = data.digit<br> else d = d .. data.digit end<br> ses:setVariable("private_digits", d)<br> if (d == "1234") then return "break" end<br> end<br>end<br><br>function inboundToHotline(isUser)<br> if (isUser == true) then<br> session:setInputCallback("cbPIN")<br> session:streamFile(soundDir .. "thank-you-for-calling")<br> --session:sleep(20000)<br> if (session:getVariable("private_digits") == "1234") then<br> session:transfer("privateMenu", "XML", "public")<br> else<br> session:hangup()<br> end<br> else<br> session:streamFile(soundDir .. "thank-you-for-calling")<br> session:hangup()<br> end<br>end<br><br><br><br>if (session:ready()) then<br> session:answer()<br> session:sleep(500)<br> inboundToHotline(true)<br>end<br><br>
<blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size: 10pt; color: black; font-family: verdana;">
<div >
-------- Original Message --------<br>
Subject: Re: [Freeswitch-users] Issues detecting DTMF tones<br>
From: Brian West <brian@freeswitch.org><br>
Date: Thu, April 16, 2009 2:27 pm<br>
To: freeswitch-users@lists.freeswitch.org<br>
<br>
What are you doing exactly? Can you provide us an example.<div><br></div><div>/b</div><div><br><div><div>On Apr 16, 2009, at 3:49 PM, Pete Mueller wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px;"><font class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" color="#000000" face="Helvetica"></font><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri,sans-serif;"><font class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" color="#000000" face="Helvetica">Hey guys. Has anyone else experienced the inability to detect/receive DTMF tones? Just yesterday I had about 4-5 hours where One of my IVR scripts would not detect 1, 2 or 3, but detected the other digits perfectly. If I removed the sound file that was playing, and substituted silence it worked, add the sound file in, and it broke. I have a strong feeling that this is not an issue with FS, but with an upstream system. But wanted to know if anyone has seen this before, and how they went about identifying the culprit and/or fixing it.<o:p></o:p></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri,sans-serif;"><o:p><font class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" color="#000000" face="Helvetica"> </font></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri,sans-serif;"><font class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" color="#000000" face="Helvetica">Some background:<o:p></o:p></font></div><div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri,sans-serif; text-indent: -18pt;"><font class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" color="#000000" face="Helvetica">-<font style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Times New Roman"> <font class="Apple-converted-space"> </font></font></font>Using FS trunk<o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri,sans-serif; text-indent: -18pt;">-<font style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Times New Roman"> <font class="Apple-converted-space"> </font></font>Both legs of the call were via SIP gateway.<o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri,sans-serif; text-indent: -18pt;">-<font style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Times New Roman"> <font class="Apple-converted-space"> </font></font>Setting loglevel to 9 (console and sofia) showed that the RTP packets were not received by FS for 1/2/3 but were received for other digits<o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri,sans-serif; text-indent: -18pt;">-<font style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Times New Roman"> <font class="Apple-converted-space"> </font></font>Both legs of calls were to/from ATT cell phones<o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri,sans-serif; text-indent: -18pt;">-<font style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Times New Roman"> <font class="Apple-converted-space"> </font></font> Was using session:setInputCallback() to receive tones, did not test with playAndGetDigits()<o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri,sans-serif;"><o:p> </o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri,sans-serif;">Thanks for any help.<o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri,sans-serif;">-pete</div></blockquote></div><br><div apple-content-edited="true"> <font class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" color="#000000" face="Helvetica"><div style=""><font class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" color="#000000" face="Helvetica"><div style=""><font class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" color="#000000" face="Helvetica"><div style=""><div>Brian West</div><div><a onclick="return true;if(window.location==top.location){Popup.composeWindow('pcompose.php?sendto=brian%40freeswitch.org');}else{top.Popup.composeWindow('pcompose.php?sendto=brian%40freeswitch.org');}; return false;" href="mailto:brian@freeswitch.org" target="_blank" mce_href="mailto:brian@freeswitch.org">brian@freeswitch.org</a></div><div><br></div></div></font>-- Meet us at ClueCon! <a href="http://www.cluecon.com/" target="_blank" mce_href="http://www.cluecon.com/">http://www.cluecon.com</a><br><div><br></div></div></font><br class="Apple-interchange-newline"></div></font><br class="Apple-interchange-newline"> </div><br></div><hr>_______________________________________________<br>
Freeswitch-users mailing list<br>
Freeswitch-users@lists.freeswitch.org<br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" mce_href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" mce_href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank" mce_href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
</div>
</blockquote></span></body></html>