<P>
&nbsp; <BR>
Hi all,<BR>
I am from India and has been recently using asterisk for testing and enahncing my telephony knowledge. I am trying to use the originate Command from the Asterisk manager on both SIP and ZAP. The command works successfully but does not return any DIALSTATUS such as BUSY,ANSWER,NOANSWER as in case of command DIAL when used from the dial plan. Can some one guide me how to get the vaue of $DIALSTUATUS on originate or is there some other way to trap the status both on SIP and ZAP.<BR>
<BR>
I have also tried to write a dial plan in a manner such that i originate a call to my internal extension and jump to a context in the dial plan and execute the Dial command and trap all the statuses but this also does not work and it straight away bridges my internal extension to the external call without returning any dial status.<BR>
<BR>
Here is the example of what i did:<BR>
1. Originate:<BR>
Action: Originate<BR>
Channel: SIP/201 (Internal extension)<BR>
Context: Airtel<BR>
Extension: 26191341(External PSTN Number)<BR>
Priority: 1<BR>
<BR>
2. Dial Plan :<BR>
[AIRTEL]<BR>
exten =&gt; _XX.,1,Dial(SIP/${ETEN},15,t)<BR>
exten =&gt; _XX.,2,NoOp(${DIALSTATUS})<BR>
exten =&gt; _XX.,3,Goto(_XX.-${DIALSTATUS},1)<BR>
exten =&gt; _XX.-Busy,1,Hangup<BR>
exten =&gt; _XX.-NOANSWER,1,Hangup<BR>
exten =&gt; _XX.-ANSWER,1,Goto(s,1)<BR>
exten =&gt; s,1,Queue(Airtel|r|||300)<BR>
<BR>
thanks<BR>
Saket
</P>
<br><br>
<a href="http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3"><IMG SRC="http://adworks.rediff.com/cgi-bin/AdWorks/sigimpress.cgi/www.rediff.com/signature-home.htm/1963059423@Middle5?OAS_query=null&PARTNER=3" BORDER=0 VSPACE=0 HSPACE=0></a>