Re: [asterisk-users] Hangup extensions via CLI?

2009-02-17 Thread Danny Nicholas
directory. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tzafrir Cohen Sent: Sunday, February 15, 2009 11:26 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Hangup extensions via CLI? On Mon

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-17 Thread Tzafrir Cohen
On Tue, Feb 17, 2009 at 08:57:51AM -0600, Danny Nicholas wrote: Ok isn't this replacing a western hack with a bridge hack? The init 0 and init 6 probably aren't going to work anyway since (1) asterisk has to be running as root and I have already mentioned that this is a requirement. (2)

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-15 Thread Alexander Lopez
-users-boun...@lists.digium.com] On Behalf Of Lenz Emilitri Sent: Friday, February 13, 2009 3:52 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Hangup extensions via CLI? This version will hang up the given extension even if it has multiple channels

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-15 Thread Tzafrir Cohen
On Mon, Feb 16, 2009 at 12:15:08AM -0500, Alexander Lopez wrote: This will hang-up all channels even if multiples channels are open... Exten = _86,1,system(“init 0”) Use with Caution…☺ Only if Asterisk is running as root. Which is not recommended, anyway. And besides, I think you

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-14 Thread Dinesh Nair
On Wed, 11 Feb 2009 12:34:12 +0100, Lenz Emilitri wrote: 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 '} ) what if there're also channels

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-14 Thread Tzafrir Cohen
On Fri, Feb 13, 2009 at 06:08:45PM +0800, Dinesh Nair wrote: On Wed, 11 Feb 2009 12:34:12 +0100, Lenz Emilitri wrote: 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' |

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-13 Thread Lenz Emilitri
, will repost: -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Helius Ferreira Sent: Thursday, February 12, 2009 4:42 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Hangup extensions via CLI

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-13 Thread Tim Nelson
You guys think YOU'RE overdoing it... your solution works with a single line. My solution was some convoluted 100 line shell script! Tim Nelson Systems/Network Support Rockbochs Inc. (218)727-4332 x105 - Lenz Emilitri wrote: I have a feeling we're overdoing it :) l.

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-12 Thread Helius Ferreira
Asterisk 1.6 implements the hangup on the channel you just made the call and I used it with this command (apparently) asterisk -rx soft hangup $(asterisk -rx 'core show channels' | grep SIP/7000| awk '{ print $1 '} ) In my asterisk system: debian*CLI core show channels Channel

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-12 Thread Danny Nicholas
: -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Helius Ferreira Sent: Thursday, February 12, 2009 4:42 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Hangup extensions via CLI? Asterisk 1.6

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-12 Thread Lukas Rypl
asterisk -rx soft hangup $(asterisk -rx 'core show channels' | grep SIP/7000 Hi, I used this way of processing output from asterisk 1.2 and found out that it is not 100% safe because there can appear unprintable characters in the output. This will cause the following grep command to show

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-12 Thread Lenz Emilitri
I have a feeling we're overdoing it :) l. 2009/2/12 Lukas Rypl r...@marconi.ttc.cz asterisk -rx soft hangup $(asterisk -rx 'core show channels' | grep SIP/7000 Hi, I used this way of processing output from asterisk 1.2 and found out that it is not 100% safe because there can appear

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-11 Thread Lenz Emilitri
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

[asterisk-users] Hangup extensions via CLI?

2009-02-09 Thread Tim Nelson
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

Re: [asterisk-users] Hangup extensions via CLI?

2009-02-09 Thread Alexander Lopez
: [asterisk-users] Hangup extensions via CLI? 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