<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Apr 27, 2009, at 10:29 AM, Danny Nicholas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div lang="EN-US" link="blue" vlink="purple"><div class="Section1"><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; ">Greetings all,<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; "> This is a “just-for-fun” question. I was reading the support forum and a fellow there wanted Read() to stop on * instead of #. I thought that changing app_read.c would resolve this<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; "><o:p> </o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; ">current<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="postbody"><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">if (tmp[x-1] == '#') {<span class="Apple-converted-space"> </span></span></font></span><br><span class="postbody">tmp[x-1] = '\0';<span class="Apple-converted-space"> </span></span><br><span class="postbody">break;<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="postbody"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="postbody"><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">new<span class="Apple-converted-space"> </span></span></font></span><br><span class="postbody">}if (tmp[x-1] == '*') {<span class="Apple-converted-space"> </span></span><br><span class="postbody">tmp[x-1] = '\0';<span class="Apple-converted-space"> </span></span><br><span class="postbody">break;<span class="Apple-converted-space"> </span></span><br><span class="postbody">}<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="postbody"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="postbody"><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">He applied and recompiled, but no joy. Any ideas why?</span></font></span></div></div></div></span></blockquote><div><br></div>Without knowing where in the file this came from I can't say for sure, but that code looks to me like the code that would run after the digits are received and is stripping off the # character at the end, if it is there. Further up (or somewhere else entirely) there is probably a spot that actually terminates the read command when # is pressed.</div><div><br></div><div>Daniel</div><div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div lang="EN-US" link="blue" vlink="purple"><div class="Section1"><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="postbody"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p></o:p></span></font></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="postbody"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="postbody"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="postbody"><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">Danny Nicholas</span></font></span><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; "><o:p></o:p></span></font></div></div>_______________________________________________<br>-- Bandwidth and Colocation Provided by<span class="Apple-converted-space"> </span><a href="http://www.api-digital.com" style="color: blue; text-decoration: underline; ">http://www.api-digital.com</a><span class="Apple-converted-space"> </span>--<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" style="color: blue; text-decoration: underline; ">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div></span></blockquote></div><br></body></html>