Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] How to soft hangup all channels at a time .


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
abalashov at evaristes...
Guest





PostPosted: Wed Feb 13, 2008 12:24 am    Post subject: [asterisk-users] How to soft hangup all channels at a time . Reply with quote

Mohammad Salaque wrote:

Quote:
Dear all,

Anyone can point me how to soft hangup all channels using single
command ? I am using Asterisk 1.4.15.

Such a command does not exist.

You could run a simple script to do this, except for the annoying fact
that 'show channels' truncates the full channel name in its output.

Otherwise, you could do something like:

asterisk -r -x 'show channels' | perl -n -e 'chomp;
if(/^SIP\/([a-zA-Z0-9\.\-]+)/) { print "SIP/$1\n"; }' | while read CHAN;
do
asterisk -r -x "soft hangup $CHAN"
done

(Yes, you can issue a system() call from inside Perl, I was just trying
to maintain a sense of humour.)
--
Alex Balashov
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599
Back to top
pdhales at optusnet.co...
Guest





PostPosted: Wed Feb 13, 2008 12:44 am    Post subject: [asterisk-users] How to soft hangup all channels at a time . Reply with quote

asterisk -rx 'restart now'

PaulH

On Wed, 2008-02-13 at 13:49 +1100, Mohammad Salaque wrote:
Quote:
Dear all,

Anyone can point me how to soft hangup all channels using single
command ? I am using Asterisk 1.4.15.


thanks
Salaque

_______________________________________________
-- 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
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Wed Feb 13, 2008 3:33 am    Post subject: [asterisk-users] How to soft hangup all channels at a time . Reply with quote

On Wed, Feb 13, 2008 at 01:49:38PM +1100, Mohammad Salaque wrote:
Quote:
Dear all,

Anyone can point me how to soft hangup all channels using single
command ? I am using Asterisk 1.4.15.

restart now

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services