[Asterisk-Users] Echo after running for several days?

Matt mhoppes at gmail.com
Tue Aug 23 11:54:56 MST 2005


I found the script for anyone interested....


#!/bin/sh

# This script tell asterisk to stop when there are no active calls, 
# waits for it to actually stop, then reloads the wctdm module
# and restarts asterisk.

/usr/sbin/asterisk -rx "stop when convenient"
while /bin/ps ax | /bin/grep '[s]afe_asterisk' >/dev/null; do sleep 5; done
/sbin/rmmod wctdm
/sbin/modprobe wctdm
/usr/sbin/safe_asterisk 

On 8/23/05, Matt <mhoppes at gmail.com> wrote:
> I'd rather unload and reload.... but what you are saying then is that
> I need to unload the driver and reload the driver?    Is that really
> neccessary?  I've always been able to fix it just restarting
> asterisk... so this is a known (unknown) bug?
> 
> On 8/23/05, Colin Anderson <ColinA at landmarkmasterbuilder.com> wrote:
> > You and a whole bunch of other guys, including me:
> >
> > http://www.google.ca/search?hl=en&q=tdm+restart+site%3Alists.digium.com&meta
> > =
> >
> > Cron a reboot every morning at 4 in the morning. There's a script floating
> > around also to shutdown Asterisk when convenient, unload the driver & reload
> > it & restart Asterisk. But reboot works fine.
> >
> > -----Original Message-----
> > From: Matt [mailto:mhoppes at gmail.com]
> > Sent: Tuesday, August 23, 2005 7:12 AM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: [Asterisk-Users] Echo after running for several days?
> >
> >
> > I have asterisk connected to a PSTN line with FXO interface cards from
> > Digium.
> > When I first start Asterisk it sounds fine.... after a few days of
> > running I begin to hear alot of echo on calls... restart asterisk and
> > it is fine again.
> >
> > Any thoughts what this might be?
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>



More information about the asterisk-users mailing list