title: asterisk 11.9 issue with read() function and dtmf
body: <p>I have two asterisk servers one with PBX inflash and other only just Asterisk installed on CentOS . I need to migrate the stuff from PBXINFLASH to Asterisk 11.9.0 . The PbX in flash is running Asterisk 10.12.1. 
  I have a dialplan which works perfectly fine on the Asterisk 10.12.1 but on my new box with Asterisk 11.9.0 the DTMF or user key input is not working one one part of the dialplan. I have tried to do debug for dtmf both the servers are same no difference in debug resul, also strange this is my dialplan on one machine works fine and other works partially. The dial plan is call screen where caller presses 1 to proceed and recipient gets call and system ask to press 1 to accept call or hangup now one Asterisk 11.9.0 caller press 1 input is working fine but second user/recipient press 1 does not do any thing at all. </p>
  
  <p>I am using sip account to test my dtmf.  I have swapped my sip accounts and sip softphones to test still the same issue. Following are two parts of same macro half working and second half not taking user input</p>
  
  <p>First Half that works and takes user input.</p>
  
  <pre><code>exten =&gt; _X.,n,GotoIf($[${GROUP_COUNT(${CallerNum})} &gt; 1]?Exceeded) ;Exceeded?
  exten =&gt; _X.,n,Set(HngupCount=1);Hangup
  exten =&gt; _X.,n,Flite(Please press 1 to speak with ${destUID})
  exten =&gt; _X.,n,Read(yesno,sip-silence,1,,2,5)
  exten =&gt; _X.,n,GotoIf($[${yesno} = 1]?continue:hangup)
  </code></pre>
  
  <p>Second half which not working or taking user's input :-</p>
  
  <pre><code>[macro-Dial2]
  exten =&gt; s,1,Wait(1);ResetCDR
  exten =&gt; s,n,Set(_StartTime=${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
  exten =&gt; s,n,ResetCDR
  exten =&gt; s,n,Set(_RCount=1)
  exten =&gt; s,n(Repeat),Flite(Hi there)
  exten =&gt; s,n,Flite(${ARG1} wants to speak to you. Please press 1 to accept the call. 2 to forward the call to voicemail or 3 to reject the call.)
  exten =&gt; s,n,Flite(we are connecting you)
  exten =&gt; s,n,Read(ACCEPT,sip-silence,1,,1,5)
  exten =&gt; s,n,Set(_RCount=$[${RCount} + 1])
  exten =&gt; s,n,NoOp(Counter is ${RCount} -- the user selected: ${ACCEPT});
  exten =&gt; s,n,Gotoif($[${ACCEPT} = 1]?accept:vm) ;Accept the call
  exten =&gt; s,n(vm),Gotoif($[${ACCEPT} = 2]?voicemail:rej) ;forward the call to dummy voicemail (Actually just record the callers message)
  exten =&gt; s,n(rej),Gotoif($[${ACCEPT} = 3]?reject) ;Reject the call and hangup
  exten =&gt; s,n,Gotoif($[${RCount} &gt; 2]?reject:Repeat) ; If no key pressed, just hangup the call and inform the User.
  exten =&gt; s,n(accept),set(SecLeg=${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
  </code></pre>
  
  <p>In second half it works fine till the following lines :</p>
  
  <pre><code>exten =&gt; s,n,Flite(${ARG1} wants to speak to you. Please press 1 to accept the call. 2 to forward the call to voicemail or 3 to reject the call.)
  exten =&gt; s,n,Flite(we are connecting you)
  </code></pre>