<html><body bgcolor="#FFFFFF"><div>Well, if you are using local channels, that's what you'd get. You would only get a SIP channel name if it was a sip channel&nbsp;<br><br>Sent from my iPhone</div><div><br>On Jan 23, 2011, at 1:19 PM, ABBAS SHAKEEL &lt;<a href="mailto:shakeel.abbas.qau@gmail.com">shakeel.abbas.qau@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><div dir="ltr">Thank you very much for the prompt response.<div><br></div><div>I &nbsp;also tried this i.e in beginning i used Noop(${CHANNEL}) to get channel name but it display some thing like&nbsp;("Local/99449051010033@default-8307,2"</div>
<div><br></div><div>But i was expecting some thing like SIP/NT000</div><div><br></div><div>I spend alot of time on it but still in vain<br><br><div class="gmail_quote">On Sun, Jan 23, 2011 at 10:14 PM, Sherwood McGowan <span dir="ltr">&lt;<a href="mailto:sherwood.mcgowan@gmail.com"><a href="mailto:sherwood.mcgowan@gmail.com">sherwood.mcgowan@gmail.com</a></a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Sun, Jan 23, 2011 at 1:04 PM, ABBAS SHAKEEL<br>
&lt;<a href="mailto:shakeel.abbas.qau@gmail.com"><a href="mailto:shakeel.abbas.qau@gmail.com">shakeel.abbas.qau@gmail.com</a></a>&gt; wrote:<br>
&gt; Hello all,<br>
&gt; I am trying to end a call after a specific time period for that reason i<br>
&gt; have tried various options like using S, L in the dial command. But in vain.<br>
&gt; Now i am thinking to end the call using the AMI... but i am unable to get<br>
&gt; the current active channel.<br>
&gt; . i.e SIP/NT000 when i ask for getchannel it return some thing like<br>
&gt; this&nbsp;Channel=Local/99449070380109@default-f08b,2<br>
&gt; As i have to use this channel name for hangup... Could some one let me know<br>
&gt; how to get channel name.... or any other way to end call..<br>
&gt; Thanks in advance<br>
&gt;<br>
&gt; --<br>
&gt; Best Regards<br>
&gt; Shakeel Abbas<br>
&gt;<br>
&gt;<br>
</div></div>&gt; --<br>
&gt; _____________________________________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"><a href="http://www.api-digital.com">http://www.api-digital.com</a></a> --<br>
&gt; New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.asterisk.org/hello" target="_blank"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a><br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt; &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a><br>
&gt;<br>
<br>
<br>
Easy solution is to store the channel name in a variable for later<br>
use, use ${CHANNEL} to get the channel name<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"><a href="http://www.api-digital.com">http://www.api-digital.com</a></a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.asterisk.org/hello" target="_blank"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></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"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>Shakeel Abbas<br><br>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>--</span><br><span>_____________________________________________________________________</span><br><span>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --</span><br><span>New to Asterisk? Join us for a live introductory webinar every Thurs:</span><br><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.asterisk.org/hello"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a></span><br><span></span><br><span>asterisk-users mailing list</span><br><span>To UNSUBSCRIBE or update options visit:</span><br><span> &nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></span></div></blockquote></body></html>