See:<span style="font-weight: bold;"><br>Dec 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 ?<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 <<a href="mailto:cyrille@easynet.be">
cyrille@easynet.be</a>>:</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("SIP/205-0231", "b") in new stack
<br> -- Launched AGI Script /var/lib/asterisk/agi-bin/b<br> -- AGI Script Executing Application: (Dial) Options: (IAX2/24)<br>Dec 3 01:16:52 WARNING[20212]: chan_iax2.c:2747 create_addr: No such host:<br>24<br>Dec 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> == Everyone is busy/congested at this time (1:0/0/1)<br> b: 200 result=0<br> -- AGI Script Executing Application: (Dial) Options: (IAX2/24)<br>
Dec 3 01:16:52 WARNING[20212]: chan_iax2.c:2747 create_addr: No such host:<br>24<br>Dec 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> == Everyone is busy/congested at this time (1:0/0/1)<br> b: 200 result=1<br> -- AGI Script Executing Application: (Dial) Options: (IAX2/24)<br>Dec 3 01:16:52 WARNING[20212]: chan_iax2.c:2747 create_addr: No such host:
<br>24<br>Dec 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> == Everyone is busy/congested at this time (1:0/0/1)<br> b: 510 Invalid or unknown command
<br> -- 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 <<a href="mailto:cyrille@easynet.be">
cyrille@easynet.be</a>>:<br>> Hi,<br>><br>> I've changed that and it's the same problem. I've this problem with all<br>> applications. Results from agi are not correct.<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 12:52<br>> À: Asterisk Users Mailing List - Non-Commercial Discussion<br>> Objet: Re: [Asterisk-Users] AGI Problem
<br>><br>> Try print "EXEC ChanIsAvail IAX2/24\n";<br>><br>> Channel type is IAX2 not IAX<br>><br>> Cheers<br>><br>> 2005/12/2, Cyrille Demaret <<a href="mailto:cyrille@easynet.be">cyrille@easynet.be
</a>>:<br>> > Hi,<br>> ><br>> > I'm running the last CVS asterisk version (I was running an older<br>version<br>> > before with the same problem) and I've a problem with agi scripts.<br>> Commands
<br>> > results are not always correct.<br>> ><br>> > I've made a small agi test script that execute ChanIsAvail on an<br>> inexistent<br>> > extension:<br>> ><br>> > ----------------------------------------------------
<br>> > #!/usr/bin/perl<br>> ><br>> > $|=1;<br>> > while(<STDIN>) {<br>> > chomp;<br>> > last unless length($_);<br>> > if (/^agi_(\w+)\:\s+(.*)$/) {
<br>> > $AGI{$1} = $2;<br>> > }<br>> > }<br>> ><br>> > # Check<br>> > print "EXEC ChanIsAvail IAX/24\n";<br>> > $result = <STDIN>;<br>> > print "VERBOSE \"$result\" 0\n";
<br>> ><br>> > # Check<br>> > print "EXEC ChanIsAvail IAX/24\n";<br>> > $result = <STDIN>;<br>> > print "VERBOSE \"$result\" 0\n";<br>> ><br>> > # Check
<br>> > print "EXEC ChanIsAvail IAX/24\n";<br>> > $result = <STDIN>;<br>> > print "VERBOSE \"$result\" 0\n";<br>> > ----------------------------------------------------
<br>> ><br>> > Result is :<br>> ><br>> > ----------------------------------------------------<br>> > -- Executing DeadAGI("SIP/200-60d2", "b") in new stack<br>> > -- Launched AGI Script /var/lib/asterisk/agi-bin/b
<br>> > -- AGI Script Executing Application: (ChanIsAvail) Options: (IAX/24)<br>> > Dec 2 10:29:37 WARNING[15776]: channel.c:2520 ast_request: No channel<br>> type<br>> > registered for 'IAX'<br>
> > b: 200 result=-1<br>> > -- AGI Script Executing Application: (ChanIsAvail) Options: (IAX/24)<br>> > Dec 2 10:29:37 WARNING[15776]: channel.c:2520 ast_request: No channel<br>> type<br>> > registered for 'IAX'
<br>> > b: 200 result=1<br>> > -- AGI Script Executing Application: (ChanIsAvail) Options: (IAX/24)<br>> > Dec 2 10:29:37 WARNING[15776]: channel.c:2520 ast_request: No channel<br>> type<br>> > registered for 'IAX'
<br>> > b: 510 Invalid or unknown command<br>> > -- AGI Script b completed, returning 0<br>> > ----------------------------------------------------<br>> ><br>> > The first result is ok (-1) but not the second and the third.
<br>> ><br>> > Why do I get different results for the same command?<br>> ><br>> > Thank you,<br>> ><br>> > Regards,<br>> ><br>> > Cyrille<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>> >
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>> ><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>> <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>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br>><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> <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> <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