<div dir="ltr"><div class="gmail_quote">Hi,<br><div dir="ltr"><br>I'm busy developing and AGI application which was working well under 1.4 . I've just upgraded to Asterisk 1.6 and am having two issues which I can'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, "EXEC Read wc-ivr|$file|$max_digits\n");<br>fflush(STDOUT);<br>fwrite(STDOUT, "GET VARIABLE wc-ivr\n");<br>
fflush(STDOUT);<br>//handle reply here....<br><br>That worked fine, but now, this command seems to just hang. I'm not too sure what to do. I'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 'DIAL SIP/<phone_number>" . 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 : "DIAL SIP/27312048090@cyb-voicetrading-a|30|L(6000000:61000:30000)", 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> == 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 'SIP' (cause 3 - No route to destination)<br> == 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>"He attacked everything in life with a mix of extraordinary genius and naive incompetence, and it was often difficult to tell which was which."<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>