<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">&gt;----- Original Message ----<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">&gt;From: Richard Lyman &lt;pchammer@dynx.net&gt;<br>&gt;To: Asterisk Users Mailing List - Non-Commercial Discussion &lt;asterisk-users@lists.digium.com&gt;<br>&gt;Sent: Thursday, November 1, 2007 8:47:28 AM<br>&gt;Subject: Re: [asterisk-users] AEL2 and Callbacks<br>&gt;<br>
&gt;Douglas Garstang wrote:<br>&gt;&gt; I am originating a command via the AMI with this...<br>&gt;&gt;<br>&gt;&gt; Action: Login<br>&gt;&gt; Username: xxx<br>&gt;&gt; Secret: yyy<br>&gt;&gt;<br>&gt;&gt; ACTION: Originate<br>&gt;&gt; Async: yes<br>&gt;&gt; Timeout: 60000<br>&gt;&gt; Exten: callback<br>&gt;&gt; Channel: Local/6505551212@LegA<br>&gt;&gt; Callerid: 849120<br>&gt;&gt; Context: default<br>&gt;&gt; ActionID: 849120<br>&gt;&gt;<br>&gt;&gt; My LegA context:<br>&gt;&gt; -----------------------<br>&gt;&gt; context LegA {<br>&gt;&gt;&nbsp; &nbsp;  _X. =&gt; {<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;  Dial(SIP/${EXTEN}@Provider); <br>&gt;&gt;&nbsp; &nbsp;  }<br>&gt;&gt;<br>&gt;&gt; }<br>&gt;&gt;<br>&gt;&gt; And my default context:<br>&gt;&gt; ------------------------------<br>&gt;&gt; context default {<br>&gt;&gt;&nbsp; &nbsp;  callback =&gt; {<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;  NoCDR();<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; 
 Wait(1);<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; 
 Dial(${destination},60,oL(${timeout}:${timeout_warning}:${timeout_warning_repeat}));<br>&gt;&gt;&nbsp; &nbsp;  }<br>&gt;&gt;<br>&gt;&gt; }<br>&gt;&gt;<br>&gt;&gt; The A leg is established, and once Asterisk goes to dial the B leg...<br>&gt;&gt;<br>&gt;&gt;&nbsp; &nbsp;  -- Executing [16505551212@LegA:1]
 Dial("Local/16505551212@LegA-f707,2", "SIP/16505551212@Provider") in new stack<br>&gt;&gt;&nbsp; &nbsp;  -- Called 16505551212@Provider<br>&gt;&gt;&nbsp; &nbsp;  -- SIP/Provider-09a8cff8 is making progress passing it to
 Local/16505551212@LegA-f707,2<br>&gt;&gt;<br>&nbsp;&gt; &nbsp;  -- SIP/Provider-09a8cff8 answered Local/16505551212@LegA-f707,2<br>&gt;&gt;&nbsp;  == Starting Local/16505551212@LegA-f707,1 at default,callback,1
 failed so falling back to exten 's'<br>&gt;&gt;&nbsp;  == Starting Local/16505551212@LegA-f707,1 at default,s,1 still
 failed so falling back to context 'default'<br>&gt;&gt; [Oct 31 01:57:07] WARNING[29795]: pbx.c:2450 __ast_pbx_run: Channel
 'Local/16505551212@LegA-f707,1' sent into invalid extension 's' in
 context 'default', &gt;but no invalid handler<br>&gt;&gt;<br>&gt;&gt; Uhm, why? I have a default context with a callback extension. Of
 course I have no explicit priority 1 though... this is AEL2.... <br>&gt;&gt; What's it complaining for?<br>&gt;&gt;<br>&gt;&gt; Doug.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;&nbsp;  <br>&gt;originates have always had an issue where it falls back to an 's' <br>&gt;extension.&nbsp; and since you do not have one, nor an 'i' for invalid <br>&gt;extension... it bombs out.<br><br>Yes... but I DO have a default context and I DO have a callback extension. What's it whining about?<br><br>Doug.<br><br><br><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;  <a href="http://lists.digium.com/mailman/listinfo/asterisk-users"
 target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div><br></div></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>