Hi List Is there a cron that I con do to replace this, as the fx0 card doesnt hang up properly phonegc:/home/samantha# asterisk -r Asterisk CVS-05/30/03-17:17:07, Copyright (C) 1999-2001 Linux Support Services, Inc. Written by Mark Spencer <markster@linux-support.net> ========================================================================Connected to Asterisk CVS-05 currently running on phonegc (pid = 15938) phonegc*CLI> restart now phonegc*CLI> Disconnected from Asterisk server phonegc:/home/samantha# Thanks Samantha samantha@femtech.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040627/3d67b2fc/attachment.htm
Try asterisk -rx "restart now" Samantha (Femtech) on 2004/6/28 ?? 10:02 wrote:> Hi List > Is there a cron that I con do to replace this, as the fx0 card doesnt > hang up properly > phonegc:/home/samantha# asterisk -r > Asterisk CVS-05/30/03-17:17:07, Copyright (C) 1999-2001 Linux Support > Services, Inc. > Written by Mark Spencer <markster@linux-support.net > <mailto:markster@linux-support.net>> > ========================================================================> Connected to Asterisk CVS-05 currently running on phonegc (pid = 15938) > phonegc*CLI> restart now > phonegc*CLI> > Disconnected from Asterisk server > phonegc:/home/samantha# > Thanks > Samantha > samantha@femtech.com.au >-- Jim Kou Malico Inc. No.5, Ming-Lung Road, Yang-Mei, Tao-Yuang, Taiwan 32643 Tel : 886-3-472-8155#218 Fax : 886-3-472-5979 Site: http://www.malico.com.tw _/ _/ _/ _/ _/_/_/ _/_/_/ _/_/_/ _/_/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/_/ _/_/_/ _/_/_/ _/_/_/
On Mon, 2004-06-28 at 02:02, Samantha (Femtech) wrote:> Is there a cron that I con do to replace this, as the fx0 card doesnt > hang up properlyI had the same problem here, and fixed within zapata.conf by adding these lines: busydetect=1 busycount=5 Try reading this also: http://www.voip-info.org/wiki-Asterisk+Disconnect+Supervision and http://voip-info.org/tiki-index.php?page=Asterisk+config+zapata.conf
Samantha (Femtech) [samantha@femtech.com.au] wrote:> (Article auto-converted from unnecessary HTML to nice plain text.) > > > Is there a cron that I con do to replace this, as the fx0 card doesnt > hang up properly > > phonegc:/home/samantha# asterisk -r > Asterisk CVS-05/30/03-17:17:07, Copyright (C) 1999-2001 Linux Support >You're using an Asterisk server built in 2003, and possibly an old Zaptel driver as well. Perhaps you might have more luck with your hangup problem after an upgrade. As for the cron job, you should be able to use the following: /path/to/your/asterisk -r -x "restart when convenient" -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
Samantha (Femtech) wrote:> Hi List > > Is there a cron that I con do to replace this, as the fx0 card doesnt hang up properly > > phonegc:/home/samantha# asterisk -r > Asterisk CVS-05/30/03-17:17:07, Copyright (C) 1999-2001 Linux Support Services, Inc. > Written by Mark Spencer <markster@linux-support.net> > ========================================================================> Connected to Asterisk CVS-05 currently running on phonegc (pid = 15938) > phonegc*CLI> restart now > phonegc*CLI> > Disconnected from Asterisk server > phonegc:/home/samantha#This should work. It doesn't check to see if asterisk is running and I haven't done any erro checking. #!/usr/bin/expect proc sleep {timeout} { expect } set send_slow { 1 .05 } ;# How fast to exp_send the characters #log_user 1 ;# Keeps the user from seeing the ;# spawned the echo back. if [catch "spawn asterisk -r" reason ] { exit 1 } set id $spawn_id expect "CLI>" { } ;# wait for a DOS prompt exp_send -s -i $id "restart now\r" ;# Write out the table sleep 2 exit 0 # End of code ############### -- Linux Home Automation Neil Cherry ncherry@comcast.net http://home.comcast.net/~ncherry/ (Text only) http://linuxha.sourceforge.net/ (SourceForge) http://hcs.sourceforge.net/ (HCS II)