This is a bit of trickery, but could not resist :) This will kill a channel that is connected to SIP/201
asterisk -rx "soft hangup $(asterisk -rx 'show channels' | grep SIP/201 | awk '{ print $1 '} )" It basically calls *, gets the list of channels, filters them out to get the channel name and hangs it up. OK, using AMI and a real programming language and hadling multiple lines would be better. Thanks l. 2009/2/9 Tim Nelson <tnel...@rockbochs.com> > Greetings list- > > I'd like the ability to hangup all calls for a particular extension from > the system CLI. I understand this can probably be scripted using the AMI but > I'm not familiar on how to do it. Help! > > Tim Nelson > Systems/Network Support > Rockbochs Inc. > (218)727-4332 x105 > > -- Loway - home of QueueMetrics - http://queuemetrics.com
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users