Locked channel does not react to 'soft hangup' command.

That's why it is called - LOCKED.


Regards,
Mindaugas Kezys
http://www.kolmisoft.com
VoIP Billing and Routing Solutions


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of J. Oquendo
Sent: 2009 m. kovo 19 d. 18:33
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Script to softly restart Asterisk each
midnight to clean locked channels

On Thu, 19 Mar 2009, Miguel Molina wrote:

> Mindaugas Kezys escribi?:
> >
> > As Asterisk has inner problems and channels very often locks we have 
> > such script to restart Asterisk each midnight.
> >
> <snip>
> 

Why restart Asterisk, free up the channel...

>From cron, you can clear up any calls over say 3 hours:

/usr/sbin/asterisk -rx "show channels concise"|awk -F : '($11 > 10800)
{print "/usr/sbin/asterisk -rx \"soft hangup " $1 "\""}'|sh

You don't necessarily have to keep restarting it at midnight.


=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
J. Oquendo
SGFA, SGFE, C|EH, CNDA, CHFI, OSCP

"Enough research will tend to support your
conclusions." - Arthur Bloch

"A conclusion is the place where you got
tired of thinking" - Arthur Bloch

227C 5D35 7DCB 0893 95AA  4771 1DCE 1FD1 5CCD 6B5E
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x5CCD6B5E


_______________________________________________
-- 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


_______________________________________________
-- 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

Reply via email to