<div dir="ltr"><div class="gmail_quote">Hi,<br><div dir="ltr"><br>I&#39;m busy developing and AGI application which was working well under 1.4 . I&#39;ve just upgraded to Asterisk 1.6 and am having two issues which I can&#39;t seem to sort out.<br>
<br><b>1. Reading DTMF tones<br>
</b><br>I used to use the following code to play an ivr file and read in dtmf:<br><br>#php<br>fwrite(STDOUT, &quot;EXEC Read wc-ivr|$file|$max_digits\n&quot;);<br>fflush(STDOUT);<br>fwrite(STDOUT, &quot;GET VARIABLE wc-ivr\n&quot;);<br>


fflush(STDOUT);<br>//handle reply here....<br><br>That worked fine, but now, this command seems to just hang. I&#39;m not too sure what to do. I&#39;ve tried using the GET DATA command, but that tells me that it is playing the ivr file, but it does not actually play anything, it simply moves on to the next statement without letting the user enter in any digits.<br>

<br><br><b>2. Executing the Dial command</b><br><br>I can get the AGI to dial a number by using the command &#39;DIAL SIP/&lt;phone_number&gt;&quot; . But as soon as I try and pass any additional options, it tells me there is no route to the host. I used to be able to run this command : &quot;DIAL SIP/27312048090@cyb-voicetrading-a|30|L(6000000:61000:30000)&quot;, but that gives me the following output :<br>

<br>AGI Script Executing Application: (DIAL) Options: (SIP/27312048090@cyb-voicetrading-a|30|L(6000000:61000:30000))<br>&nbsp; == Using SIP RTP CoS mark 5<br>[Aug 13 14:31:13] WARNING[18947]: chan_sip.c:4089 create_addr: No such host: cyb-voicetrading-a|30|L(6000000<br>

[Aug 13 14:31:13] WARNING[18947]: app_dial.c:1444 dial_exec_full: Unable to create channel of type &#39;SIP&#39; (cause 3 - No route to destination)<br>&nbsp; == Everyone is busy/congested at this time (1:0/0/1)<br><br><br>Any suggestions or comments would be greatly appreciated.<br>

<br>Ralfe<br><br clear="all">--<br>&quot;He attacked everything in life with a mix of extraordinary genius and naive incompetence, and it was often difficult to tell which was which.&quot;<br>- Douglas Adams<br>==================================<br>

<br> R a l f e P o i s s o n <br> <a href="mailto:ralfepoisson@gmail.com" target="_blank">ralfepoisson@gmail.com</a><br><br>==================================<br>
</div>
</div><br></div>