See:<span style="font-weight: bold;"><br>Dec&nbsp;&nbsp;3 01:16:52 WARNING[20212]: chan_iax2.c:2747 create_addr: No such host:</span><br style="font-weight: bold;"><span style="font-weight: bold;">24<br><br><span style="font-weight: bold;">
</span></span>Are u sure exists 24 iax device&nbsp; ?<span style="font-weight: bold;"><span style="font-weight: bold;"></span><br><span style="font-weight: bold;"><span style="font-weight: bold;"><br></span></span></span>Try with ip 
<br><br><br><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"></span><br></span></span><br><div><span class="gmail_quote">2005/12/3, Cyrille Demaret &lt;<a href="mailto:cyrille@easynet.be">
cyrille@easynet.be</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>Same result with dial:<br><br>-- Executing DeadAGI(&quot;SIP/205-0231&quot;, &quot;b&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp;&nbsp;-- Launched AGI Script /var/lib/asterisk/agi-bin/b<br>&nbsp;&nbsp;&nbsp;&nbsp;-- AGI Script Executing Application: (Dial) Options: (IAX2/24)<br>Dec&nbsp;&nbsp;3 01:16:52 WARNING[20212]: chan_iax2.c:2747 create_addr: No such host:<br>24<br>Dec&nbsp;&nbsp;3 01:16:52 NOTICE[20212]: app_dial.c:1011 dial_exec_full: Unable to
<br>create channel of type 'IAX2' (cause 3 - No route to destination)<br>&nbsp;&nbsp;== Everyone is busy/congested at this time (1:0/0/1)<br>&nbsp;&nbsp;b: 200 result=0<br>&nbsp;&nbsp;&nbsp;&nbsp;-- AGI Script Executing Application: (Dial) Options: (IAX2/24)<br>
Dec&nbsp;&nbsp;3 01:16:52 WARNING[20212]: chan_iax2.c:2747 create_addr: No such host:<br>24<br>Dec&nbsp;&nbsp;3 01:16:52 NOTICE[20212]: app_dial.c:1011 dial_exec_full: Unable to<br>create channel of type 'IAX2' (cause 3 - No route to destination)
<br>&nbsp;&nbsp;== Everyone is busy/congested at this time (1:0/0/1)<br>&nbsp;&nbsp;b: 200 result=1<br>&nbsp;&nbsp;&nbsp;&nbsp;-- AGI Script Executing Application: (Dial) Options: (IAX2/24)<br>Dec&nbsp;&nbsp;3 01:16:52 WARNING[20212]: chan_iax2.c:2747 create_addr: No such host:
<br>24<br>Dec&nbsp;&nbsp;3 01:16:52 NOTICE[20212]: app_dial.c:1011 dial_exec_full: Unable to<br>create channel of type 'IAX2' (cause 3 - No route to destination)<br>&nbsp;&nbsp;== Everyone is busy/congested at this time (1:0/0/1)<br>&nbsp;&nbsp;b: 510 Invalid or unknown command
<br>&nbsp;&nbsp;&nbsp;&nbsp;-- AGI Script b completed, returning 0<br><br>3 different results...<br><br>Regards,<br><br>Cyrille<br><br>-----Message d'origine-----<br>De: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com
</a><br>[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] De la part de Giovanni<br>Miano<br>Envoyé: vendredi 2 décembre 2005 16:18<br>À: Asterisk Users Mailing List - Non-Commercial Discussion
<br>Objet: Re: [Asterisk-Users] AGI Problem<br><br>I thing u cant use ChanIsAvail with exec command<br><br>... as use EXEC DIAL(SIP/40) .. it isnt work<br><br>2005/12/2, Cyrille Demaret &lt;<a href="mailto:cyrille@easynet.be">
cyrille@easynet.be</a>&gt;:<br>&gt; Hi,<br>&gt;<br>&gt; I've changed that and it's the same problem. I've this problem with all<br>&gt; applications. Results from agi are not correct.<br>&gt;<br>&gt; Regards,<br>&gt;<br>&gt; Cyrille
<br>&gt;<br>&gt; -----Message d'origine-----<br>&gt; De: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>&gt; [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">
asterisk-users-bounces@lists.digium.com</a>] De la part de Giovanni<br>&gt; Miano<br>&gt; Envoyé: vendredi 2 décembre 2005 12:52<br>&gt; À: Asterisk Users Mailing List - Non-Commercial Discussion<br>&gt; Objet: Re: [Asterisk-Users] AGI Problem
<br>&gt;<br>&gt; Try print &quot;EXEC ChanIsAvail IAX2/24\n&quot;;<br>&gt;<br>&gt; Channel type is IAX2 not IAX<br>&gt;<br>&gt; Cheers<br>&gt;<br>&gt; 2005/12/2, Cyrille Demaret &lt;<a href="mailto:cyrille@easynet.be">cyrille@easynet.be
</a>&gt;:<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; I'm running the last CVS asterisk version (I was running an older<br>version<br>&gt; &gt; before with the same problem) and I've a problem with agi scripts.<br>&gt; Commands
<br>&gt; &gt; results are not always correct.<br>&gt; &gt;<br>&gt; &gt; I've made a small agi test script that execute ChanIsAvail on an<br>&gt; inexistent<br>&gt; &gt; extension:<br>&gt; &gt;<br>&gt; &gt; ----------------------------------------------------
<br>&gt; &gt; #!/usr/bin/perl<br>&gt; &gt;<br>&gt; &gt; $|=1;<br>&gt; &gt; while(&lt;STDIN&gt;) {<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chomp;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; last unless length($_);<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (/^agi_(\w+)\:\s+(.*)$/) {
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $AGI{$1} = $2;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt; # Check<br>&gt; &gt; print &quot;EXEC ChanIsAvail IAX/24\n&quot;;<br>&gt; &gt; $result = &lt;STDIN&gt;;<br>&gt; &gt; print &quot;VERBOSE \&quot;$result\&quot; 0\n&quot;;
<br>&gt; &gt;<br>&gt; &gt; # Check<br>&gt; &gt; print &quot;EXEC ChanIsAvail IAX/24\n&quot;;<br>&gt; &gt; $result = &lt;STDIN&gt;;<br>&gt; &gt; print &quot;VERBOSE \&quot;$result\&quot; 0\n&quot;;<br>&gt; &gt;<br>&gt; &gt; # Check
<br>&gt; &gt; print &quot;EXEC ChanIsAvail IAX/24\n&quot;;<br>&gt; &gt; $result = &lt;STDIN&gt;;<br>&gt; &gt; print &quot;VERBOSE \&quot;$result\&quot; 0\n&quot;;<br>&gt; &gt; ----------------------------------------------------
<br>&gt; &gt;<br>&gt; &gt; Result is :<br>&gt; &gt;<br>&gt; &gt; ----------------------------------------------------<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;-- Executing DeadAGI(&quot;SIP/200-60d2&quot;, &quot;b&quot;) in new stack<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; -- Launched AGI Script /var/lib/asterisk/agi-bin/b
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; -- AGI Script Executing Application: (ChanIsAvail) Options: (IAX/24)<br>&gt; &gt; Dec&nbsp;&nbsp;2 10:29:37 WARNING[15776]: channel.c:2520 ast_request: No channel<br>&gt; type<br>&gt; &gt; registered for 'IAX'<br>
&gt; &gt;&nbsp;&nbsp; b: 200 result=-1<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; -- AGI Script Executing Application: (ChanIsAvail) Options: (IAX/24)<br>&gt; &gt; Dec&nbsp;&nbsp;2 10:29:37 WARNING[15776]: channel.c:2520 ast_request: No channel<br>&gt; type<br>&gt; &gt; registered for 'IAX'
<br>&gt; &gt;&nbsp;&nbsp; b: 200 result=1<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; -- AGI Script Executing Application: (ChanIsAvail) Options: (IAX/24)<br>&gt; &gt; Dec&nbsp;&nbsp;2 10:29:37 WARNING[15776]: channel.c:2520 ast_request: No channel<br>&gt; type<br>&gt; &gt; registered for 'IAX'
<br>&gt; &gt;&nbsp;&nbsp; b: 510 Invalid or unknown command<br>&gt; &gt; -- AGI Script b completed, returning 0<br>&gt; &gt; ----------------------------------------------------<br>&gt; &gt;<br>&gt; &gt; The first result is ok (-1) but not the second and the third.
<br>&gt; &gt;<br>&gt; &gt; Why do I get different results for the same command?<br>&gt; &gt;<br>&gt; &gt; Thank you,<br>&gt; &gt;<br>&gt; &gt; Regards,<br>&gt; &gt;<br>&gt; &gt; Cyrille<br>&gt; &gt;<br>&gt; &gt; _______________________________________________
<br>&gt; &gt; --Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br>&gt; &gt;<br>&gt; &gt; Asterisk-Users mailing list<br>&gt; &gt; To UNSUBSCRIBE or update options visit:<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Giovanni Miano<br>&gt; _______________________________________________
<br>&gt; --Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br>&gt;<br>&gt; Asterisk-Users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt;<br>&gt; _______________________________________________<br>&gt; --Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br>
&gt;<br>&gt; Asterisk-Users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br>&gt;<br><br><br>--<br>Giovanni Miano<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Users mailing list
<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br>_______________________________________________
<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Giovanni Miano