<div dir="ltr">Thank you very much for the prompt response.<div><br></div><div>I also tried this i.e in beginning i used Noop(${CHANNEL}) to get channel name but it display some thing like ("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"><<a href="mailto:sherwood.mcgowan@gmail.com">sherwood.mcgowan@gmail.com</a>></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>
<<a href="mailto:shakeel.abbas.qau@gmail.com">shakeel.abbas.qau@gmail.com</a>> wrote:<br>
> Hello all,<br>
> I am trying to end a call after a specific time period for that reason i<br>
> have tried various options like using S, L in the dial command. But in vain.<br>
> Now i am thinking to end the call using the AMI... but i am unable to get<br>
> the current active channel.<br>
> . i.e SIP/NT000 when i ask for getchannel it return some thing like<br>
> this Channel=Local/99449070380109@default-f08b,2<br>
> As i have to use this channel name for hangup... Could some one let me know<br>
> how to get channel name.... or any other way to end call..<br>
> Thanks in advance<br>
><br>
> --<br>
> Best Regards<br>
> Shakeel Abbas<br>
><br>
><br>
</div></div>> --<br>
> _____________________________________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><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">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>Shakeel Abbas<br><br>
</div></div>