On 8/3/07, <b class="gmail_sendername">Julian Lyndon-Smith</b> &lt;<a href="mailto:asterisk@dotr.com">asterisk@dotr.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
why if I call the Busy or Congestion extensions, the DIALSTATUS and<br>HANGUPCAUSE variables are not set ?<br><br>If I call (say) extension 1234 all things are set ok.</blockquote><div><br>I think you&#39;ve answered your own question there.&nbsp; The only asterisk application that sets DIALSTATUS is Dial().&nbsp; If you grep the source, you&#39;ll see that the value is retrieved by some other modules (chan_sip, chan_iax, etc.), but only Dial() sets the value of the variable.
<br><br>I assume when you say &quot;when I call the Busy extension&quot; you mean something like a SIP user whose context is &quot;outgoing&quot; doing an INVITE to &quot;Busy@yourasterisk&quot;.&nbsp; If so, you&#39;re bridging a SIP call leg to an asterisk application, so Dial() isn&#39;t invoked and DIALSTATUS isn&#39;t set.
<br><br>It might work if you did an invite to an extension that used Dial() to call a Local channel (e.g. Local/Busy@outgoing), but I&#39;m not sure how DIALSTATUS would interact with the /n option on the local channel.<br>
<br></div></div>-- <br>j.