[asterisk-users] end a call after a specific time period

Sherwood McGowan sherwood.mcgowan at gmail.com
Sun Jan 23 13:14:06 CST 2011


On Sun, Jan 23, 2011 at 1:04 PM, ABBAS SHAKEEL
<shakeel.abbas.qau at gmail.com> wrote:
> Hello all,
> I am trying to end a call after a specific time period for that reason i
> have tried various options like using S, L in the dial command. But in vain.
> Now i am thinking to end the call using the AMI... but i am unable to get
> the current active channel.
> . i.e SIP/NT000 when i ask for getchannel it return some thing like
> this Channel=Local/99449070380109 at default-f08b,2
> As i have to use this channel name for hangup... Could some one let me know
> how to get channel name.... or any other way to end call..
> Thanks in advance
>
> --
> Best Regards
> Shakeel Abbas
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>


Easy solution is to store the channel name in a variable for later
use, use ${CHANNEL} to get the channel name



More information about the asterisk-users mailing list