Greetings all, 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 current if (tmp[x-1] == '#') { tmp[x-1] = '\0'; break; new }if (tmp[x-1] == '*') { tmp[x-1] = '\0'; break; } He applied and recompiled, but no joy. Any ideas why? Danny Nicholas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090427/3c5f1ff5/attachment.htm
Daniel Hazelbaker
2009-Apr-27 17:38 UTC
[asterisk-users] Change Termination of Read Command
On Apr 27, 2009, at 10:29 AM, Danny Nicholas wrote:> Greetings all, > 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 > > current > if (tmp[x-1] == '#') { > tmp[x-1] = '\0'; > break; > > new > }if (tmp[x-1] == '*') { > tmp[x-1] = '\0'; > break; > } > > He applied and recompiled, but no joy. Any ideas why?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. Daniel> > > Danny Nicholas > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090427/c305977b/attachment.htm
On Mon, 27 Apr 2009, Danny Nicholas wrote:> 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 thisAny chance "features" is getting in your way? Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000