返回列表 發帖
因为每次reboot,系统都能活一个星期,而有些member因为每天都关机,所以一直没有发现任何问题。现在我再建一个routine,就是每一个凌晨4点,系统都会自动重新启动一次。

RebootTime.sh (放在/persistent/etc)
  1. #!/bin/sh

  2. while [ 1 ]
  3. do
  4.    TIME=`date | cut -c 12-16`
  5.    echo $TIME

  6.    if [ "$TIME" == "04:00" ]
  7.       then
  8.          reboot
  9.    fi

  10.    sleep 55

  11. done
複製代碼
而在/etc/init.d/asterisk里加上面的信息
  1. #!/bin/sh
  2. # Start up file for Asterisk

  3. # NOTE: we set the TZ before starting as otherwise (when starting from
  4. # /etc/rc) this env variable won't be available to the shell that
  5. # starts Asterisk and the time will be messed up.

  6. case $1 in
  7.         start)  export TZ=`cat /etc/TZ`;
  8.                 /bin/sh /etc/gen_checklist.sh >/dev/null 2>/dev/nul      #added by YH Fung April 12, 2010
  9.                 /bin/sh /etc/checkip.sh >/dev/null 2>/dev/nul &          #added by YH Fung April 12, 2010
  10.                 /bin/sh /etc/IsAsteriskAlive.sh >/dev/null 2>/dev/nul &  #added by YH Fung July 19, 2010
  11.                 /bin/sh /etc/RebootTime.sh >/dev/null 2>/dev/nul &  #added by YH Fung July 20, 2010
  12.                 asterisk -f >/dev/null 2>/dev/null & ;;
  13.         stop) killall -9 asterisk;;
  14.         restart) asterisk -r -x "stop now";
  15.                 /etc/init.d/asterisk start;;
  16.         enable) rm -f /persistent/etc/rc.d/S50asterisk;
  17.                 ln -s /persistent/etc/init.d/asterisk /persistent/etc/rc.d/S50asterisk;;
  18.         disable) rm -f /persistent/etc/rc.d/S50asterisk;;
  19.         *) cat <<EOF;;
  20. Syntax: /etc/init.d/asterisk [command]

  21. Available commands:
  22.         start   Start the service
  23.         stop    Stop the service
  24.         restart Restart the service
  25.         enable  Enable service autostart
  26.         disable Disable service autostart
  27. EOF
  28. esac
複製代碼
角色

TOP

回復 30# ckleea

Thank CK for providing info about the verion log of IP01. However, they said that the new firmware does have the IsAsteriskAlive.sh routine. In fact, it does not have. It shows that ATCOM technical staff have not tested the firmware completely.

YH

TOP

1) RebootTime.sh 每一个凌晨4点就system reboot。
2) IsAsteriskAlive.sh,就是检查asterisk process是否存在,如果不存在就system reboot。

有了这两个routines,估计system长期不能工作的机会大大降低,那么系统能长期工作而不需要任何维护。


角色

TOP

回復 32# 角色


    This is the reason I wish to move to other firmware. During my test, my NAND always has an error at one address. I don't know if this is a quality issue as my  usage for IP01 is very low. I only flash twice.

TOP

1) RebootTime.sh 每一个凌晨4点就system reboot。
2) IsAsteriskAlive.sh,就是检查asterisk process是 ...
角色 發表於 2010-7-20 07:17



    理論上 Asterisk 應該可以7x24 不停工作,有 process hangs 就自動 recover

TOP

本帖最後由 bubblestar 於 2010-7-20 11:00 編輯
回復  ckleea

Thank CK for providing info about the verion log of IP01. However, they said that the ...
角色 發表於 2010-7-20 07:14



   
The file IsAsteriskAlive.sh routine is always there properly when I installed the firmware.  I don't know why you said you don't have it after installation.  Maybe there is some problem when updating the firmware.


2010-07-20_105936.png

TOP

我剛剛發現自己在六月底upgrade 的是Firmware version: voiptel_ce_IP01-0.3.7,而剛再去官網看,原來它們7月初出了Firmware version: voiptel_ce_IP01-0.3.8。  你地有問題的是否就是 0.3.8 的版本呢?

TOP

我的是0.3.8 version。

角色

TOP

大家的問題是否因為upgrade之後沒有把系統做factory reset 呢??  正如 Linksys Router 在每次upgrade DD-WRT 之後也要做factory reset 一樣,才能把之前的東西完全剷走。這是廠方的建議啊。

Build: 2010-6-9
    * Add script to detect if asterisk is alive. And start asterisk if it dies, script are only take effect after reset to factory default. If you want stop the asterisk for debug purpose. Please kill the IsAsteriskAlive process otherwise the Asterisk will start within 1 minutes after you stop it.
    * Fix the Ip01 fxo silent issue which introduce in last update.

另外,它們有兩個firmware 版本,正常應該是用 MD5 這一個的,原因如下:

There are two kinds of firmware:

Ext2 file:
the file is requested when upgrade from BAPS base firmware to Astfin2 base firmware. If your IPxx use the BAPS base firmware (old release model) and want to upgrade the Astfin2 base firmware, you use the ext2 file and upgrade via the RS232 port.

md5 file:
if you already use the Astfin2 firmware, you can upgrade the firmware via the GUI. More info about how to upgrade please refer the user manual. How to check if the device is BAPS base or ASTFIN2 base? the BAPS base firmware support ipkg command in the OS and Astfin2 firmware doesn’t support. You can use SSH to access to the firmware and run “ipkg update” to check if the ipkg is supported.

The default firmware shipped by ATCOM is Astfin2 structure firmware.

TOP

Starting from April Build, the default web Password for IPXX is "atcom"

TOP

剛剛再看Manual,UPGRAGE 之後要power off, 幾分鐘之後,它才能重新辨認或註冊,目的是去除CACHE。

TOP

都幾trouble.
另外,如果用serial console upgrade, you may see if there is problem with your NAND. Mine always has a error

TOP

哈哈,其實係大家沒有看RELEASE NOTES 或 UPDRAGE MANUAL,所以有些不知所措。

EXTRACT FROM MANUAL

3: Power off and power on the IP-0X, wait for several minutes. When you see the TEL port LEDs light up, it means the update is finish and you have the latest firmware.



是否係這樣呢?

ip04>nand erase clean
ip04>nand erase

我其實UPGRADE沒有他們的死機問題,但趁大家高興,稍後再UP上去 0.3.8 看看如何。主要大家的問題一定是來自沒有做FACTORY RESET 吧。

TOP

哈哈,其實係大家沒有看RELEASE NOTES 或 UPDRAGE MANUAL,所以有些不知所措。

EXTRACT FROM MANUAL

3: P ...
bubblestar 發表於 2010-7-20 12:51



    如果 upgrade via GUI, no need to issue any command

TOP

本帖最後由 bubblestar 於 2010-7-20 14:49 編輯

剛再UPGRADE至0.3.8,一切順利。IsAsteriskAlive.sh 一樣係度。連RESTORE ALL CONFIG/NETWORK/PERSONAL SETTING 過程二十分鐘左右。

TOP

返回列表