電訊茶室's Archiver

角色 發表於 2010-7-12 17:04

【ATCOM IP01 + FXO】更新了最新固件后,你的系统稳定吗?

因为经常久不久就发现死机!linux部分没有问题,而是Asterisk系统不见了,我刚才更新了IP01-0.3.8-100706.md5固件,看看是否有改进。

如果你发现有什么问题,请大家汇报一下,有问题也好,没有问题也好。

so far,我没有发现问题。

角色

角色 發表於 2010-7-12 18:02

现在的firmware主要有一个watchdog program,如果发现Asterisk不见了,它会自动再起一个Asterisk program出来,那么系统就可以继续运作。不过这样的补救方式不太好,最好的方式是找出根源。

角色

角色 發表於 2010-7-13 08:00

换了新的firmware,已经超过16个小时都没有太大的问题。

Uptime : 07:58:54 up 16:50, load average: 0.02, 0.05, 0.00

继续跟踪。


角色

角色 發表於 2010-7-14 08:02

今天我的IP01依然正常工作:

Uptime : 07:36:18 up 1 day, 16:27, load average: 0.14, 0.04, 0.01

角色

lttliang 發表於 2010-7-14 09:33

尋晚1點幾時  我部機 又死左

角色 發表於 2010-7-14 12:47

先记下,我的还没有发现问题。

角色

角色 發表於 2010-7-14 13:22

[quote]尋晚1點幾時  我部機 又死左
[size=2][color=#999999]lttliang 發表於 2010-7-14 09:33[/color] [url=http://www.telecom-cafe.com/redirect.php?goto=findpost&pid=5869&ptid=2469][img]http://www.telecom-cafe.com/images/common/back.gif[/img][/url][/size][/quote]

怎样死,能否进入console(用putty),里面的Asterisk不在,而Linux依然运行。


角色

lttliang 發表於 2010-7-14 13:31

[b]回復 [url=http://www.telecom-cafe.com/redirect.php?goto=findpost&pid=5876&ptid=2469]7#[/url] [i]角色[/i] [/b]


    未試,因為我有兩條寬帶,當時又要訓了,就冇將電腦的網線接到比IP01專用的寬帶上測試

角色 發表於 2010-7-14 15:25

下载再死的话,可以考虑alang的方案,先停一下logger,看看效果是否有改善。

角色

lttliang 發表於 2010-7-14 16:23

角色你睇一下你的/etc/下面有冇IsAsteriskAlive.sh  這個文件?

角色 發表於 2010-7-14 18:41

根据你给我的信息,可以说明ATCOM的firmware还没有做好。

角色

lttliang 發表於 2010-7-15 11:58

[b]回復 [url=http://www.telecom-cafe.com/redirect.php?goto=findpost&pid=5901&ptid=2469]11#[/url] [i]角色[/i] [/b]


    又 出問題,依家是  可以打內部分機  同FXO口外線    無法打trunk口的外線

角色 發表於 2010-7-15 16:47

reboot后又怎样呢?

角色

電腦超人 發表於 2010-7-15 17:16

我的剛剛也更新了...
看看會不會穩定一些...

角色 發表於 2010-7-15 20:25

我的运行了3天都没有太大的问题。

Uptime : 20:24:34 up 3 days, 5:15, load average: 0.30, 0.06, 0.03


角色

角色 發表於 2010-7-16 10:55

今天的IP01的status为

Uptime : 10:54:23 up 3 days, 19:45, load average: 0.07, 0.05, 0.00

还没有出现Asterisk server program突然消失。

角色

lttliang 發表於 2010-7-17 00:51

[b]回復 [url=http://www.telecom-cafe.com/redirect.php?goto=findpost&pid=6049&ptid=2469]16#[/url] [i]角色[/i] [/b]


    今日出現左6-7次唔可以用的情況,問佢地要返舊的固件,更新左

角色 發表於 2010-7-17 06:41

你downgrade你的firmware?是否你的setting出了问题呢?或者你的硬件有问题呢?

角色

角色 發表於 2010-7-17 06:56

今天我的IP01依然没有死

System Status
Uptime : 06:55:29 up 4 days, 15:46, load average: 0.00, 0.04, 0.01

角色

角色 發表於 2010-7-17 07:02

为什么那么多astrisk的subprocesses出现呢?在大型Asterisk server里应该只有一个Process

角色[code]root:~> ps
  PID  Uid        VSZ Stat Command
    1 root        568 S   /sbin/init
    2 root            SW< [kthreadd]
    3 root            SWN [ksoftirqd/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
    6 root            SW< [kblockd/0]
    7 root            SW  [pdflush]
    8 root            SW  [pdflush]
    9 root            SW< [kswapd0]
   10 root            SW< [aio/0]
   11 root            SW< [mtdblockd]
   75 root            SW< [spi_mmc]
  108 root       1060 S   /bin/sh /bin/keepalive 192.168.2.1 60
  123 root        812 S   ntpd -4 -c /etc/ntp.conf -g -n
  128 root        484 S   /bin/cron
  266 root       1060 S   /bin/sh /etc/checkip.sh
  267 root      12940 S   asterisk -f
  269 root        484 S   inetd
  275 root      12940 S   asterisk -f
  278 root      12940 S   asterisk -f
  280 root      12940 S   asterisk -f
  281 root      12940 S   asterisk -f
  282 root      12940 S   asterisk -f
  283 root      12940 S   asterisk -f
  288 root       1068 S   -/bin/sh
  289 root        476 S   /bin/watchdogd -f -s
  290 root        968 S   /sbin/syslogd -n
  291 root        976 S   /sbin/klogd -n
  292 root      12940 S   asterisk -f
  293 root      12940 S   asterisk -f
  294 root      12940 S   asterisk -f
  295 root      12940 S   asterisk -f
  296 root      12940 S   asterisk -f
  297 root      12940 S   asterisk -f
  298 root      12940 S   asterisk -f
  299 root      12940 S   asterisk -f
  300 root      12940 S   asterisk -f
  301 root      12940 S   asterisk -f
  302 root      12940 S   asterisk -f
  303 root      12940 S   asterisk -f
  304 root      12940 S   asterisk -f
  305 root      12940 S   asterisk -f
  308 root      12940 S   asterisk -f
  330 root      12940 S   asterisk -f
  351 root      12940 S   asterisk -f
31756 root        968 S   sleep 180
31767 root        968 S   sleep 60
31772 root        884 S   /bin/dropbear -i 2 > /dev/null
31776 root       1068 S   -sh
31782 root      12940 S   asterisk -f
31783 root        972 R   ps
[/code]

角色 發表於 2010-7-17 07:16

而我的NAS里的Asteerisk,只有一个asterisk process在行走。所以非常稳定。[code][~] # pidof asterisk
3043
[~] # ps -aux | grep asterisk
3043 admin     31180 R   asterisk -vvvvc
32201 admin       548 S   grep asterisk
[~] #
[/code]

角色 發表於 2010-7-17 07:26

过了大约15分钟,再读IP01是:[code]root:/etc> ps
  PID  Uid        VSZ Stat Command
    1 root        568 S   /sbin/init
    2 root            SW< [kthreadd]
    3 root            SWN [ksoftirqd/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
    6 root            SW< [kblockd/0]
    7 root            SW  [pdflush]
    8 root            SW  [pdflush]
    9 root            SW< [kswapd0]
   10 root            SW< [aio/0]
   11 root            SW< [mtdblockd]
   75 root            SW< [spi_mmc]
  108 root       1060 S   /bin/sh /bin/keepalive 192.168.2.1 60
  123 root        812 S   ntpd -4 -c /etc/ntp.conf -g -n
  128 root        484 S   /bin/cron
  266 root       1060 S   /bin/sh /etc/checkip.sh
  267 root      12940 S   asterisk -f
  269 root        484 S   inetd
  275 root      12940 S   asterisk -f
  278 root      12940 S   asterisk -f
  280 root      12940 S   asterisk -f
  281 root      12940 S   asterisk -f
  282 root      12940 S   asterisk -f
  283 root      12940 S   asterisk -f
  288 root       1068 S   -/bin/sh
  289 root        476 S   /bin/watchdogd -f -s
  290 root        968 S   /sbin/syslogd -n
  291 root        976 S   /sbin/klogd -n
  292 root      12940 S   asterisk -f
  293 root      12940 S   asterisk -f
  294 root      12940 S   asterisk -f
  295 root      12940 S   asterisk -f
  296 root      12940 S   asterisk -f
  297 root      12940 S   asterisk -f
  298 root      12940 S   asterisk -f
  299 root      12940 S   asterisk -f
  300 root      12992 S   asterisk -f
  301 root      12940 S   asterisk -f
  302 root      12940 S   asterisk -f
  303 root      12940 S   asterisk -f
  304 root      12940 S   asterisk -f
  305 root      12940 S   asterisk -f
  308 root      12940 S   asterisk -f
  330 root      12940 S   asterisk -f
  351 root      12940 S   asterisk -f
4775 root        968 S   sleep 180
4800 root        968 S   sleep 60
4809 root      12940 S   asterisk -f
4814 root        972 R   ps
31772 root        884 S   /bin/dropbear -i 2 > /dev/null
31776 root       1076 S   -sh
[/code]

角色 發表於 2010-7-18 18:05

今天是第6天,我的IP01依然能工作正常。

System Status
Uptime : 18:04:59 up 6 days, 2:56, load average: 0.77, 0.71, 0.56


角色

角色 發表於 2010-7-19 06:52

今天我的IP01的asterisk server终于死掉了,都不知道什么原因会死掉,但是Linux部分没有问题。

login as: root
[email]root@192.168.2.100[/email]'s password:


BusyBox v1.4.1 (2010-06-30 03:45:14 EDT) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

root:~> ps
  PID  Uid        VSZ Stat Command
    1 root        568 S   /sbin/init
    2 root            SW< [kthreadd]
    3 root            SWN [ksoftirqd/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
    6 root            SW< [kblockd/0]
    7 root            SW  [pdflush]
    8 root            SW  [pdflush]
    9 root            SW< [kswapd0]
   10 root            SW< [aio/0]
   11 root            SW< [mtdblockd]
   75 root            SW< [spi_mmc]
  108 root       1060 S   /bin/sh /bin/keepalive 192.168.2.1 60
  123 root        812 S   ntpd -4 -c /etc/ntp.conf -g -n
  128 root        484 S   /bin/cron
  266 root       1060 S   /bin/sh /etc/checkip.sh
  269 root        484 S   inetd
  288 root       1068 S   -/bin/sh
  289 root        476 S   /bin/watchdogd -f -s
  290 root        968 S   /sbin/syslogd -n
  291 root        976 S   /sbin/klogd -n
28449 root        884 S   /bin/dropbear -i 2 > /dev/null
28539 root        968 S   sleep 180
28542 root        968 S   sleep 60
28543 root       1068 S   -sh
28544 root        972 R   ps
root:~>

看看如果重启Asterisk server,效果是否好转,再不行,应该reboot。

角色

角色 發表於 2010-7-19 06:55

我用下面的指令去重启我的Asterisk

/etc/init.d/asterisk start

角色

角色 發表於 2010-7-19 15:35

15:14分,我的IP01,又死掉。

root:~> ps
  PID  Uid        VSZ Stat Command
    1 root        568 S   /sbin/init
    2 root            SW< [kthreadd]
    3 root            SWN [ksoftirqd/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
    6 root            SW< [kblockd/0]
    7 root            SW  [pdflush]
    8 root            SW  [pdflush]
    9 root            SW< [kswapd0]
   10 root            SW< [aio/0]
   11 root            SW< [mtdblockd]
   75 root            SW< [spi_mmc]
  108 root       1060 S   /bin/sh /bin/keepalive 192.168.2.1 60
  123 root        812 S   ntpd -4 -c /etc/ntp.conf -g -n
  128 root        484 S   /bin/cron
  266 root       1060 S   /bin/sh /etc/checkip.sh
  269 root        484 S   inetd
  288 root       1068 S   -/bin/sh
  289 root        476 S   /bin/watchdogd -f -s
  290 root        968 S   /sbin/syslogd -n
  291 root        976 S   /sbin/klogd -n
30419 root        968 S   sleep 180
30425 root        968 S   sleep 60
30426 root        884 R   /bin/dropbear -i 2 > /dev/null
30427 root       1068 S   -sh
30428 root        972 R   ps


再用
/etc/init.d/asterisk start

重启


角色

角色 發表於 2010-7-19 19:15

19:13分又死一次!

一天内死三次。

这次不再asterisk start了,而是reboot。


角色

角色 發表於 2010-7-19 19:40

[i=s] 本帖最後由 角色 於 2010-7-20 07:06 編輯 [/i]

现在根据lttliang的IsAsteriskAlive.sh (放在/persistent/etc),我改良一下[code]#!/bin/sh
while [ 1 ]
do
IsAlive=`pidof asterisk`
if [[ -z "$IsAlive" ]] ; then
echo "Asterisk die at `date`" >> perisistent/tmp/dielog
   reboot
fi
sleep 60
done
[/code]放在/etc/init.d/asterisk[code]#!/bin/sh
# Start up file for Asterisk

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

case $1 in
        start)  export TZ=`cat /etc/TZ`;
                /bin/sh /etc/gen_checklist.sh >/dev/null 2>/dev/nul     #added b
                /bin/sh /etc/checkip.sh >/dev/null 2>/dev/nul &         #added b
                /bin/sh /etc/IsAsteriskAlive.sh >/dev/null 2>/dev/nul & #added b
                asterisk -f >/dev/null 2>/dev/null & ;;
        stop) killall -9 asterisk;;
        restart) asterisk -r -x "stop now";
                /etc/init.d/asterisk start;;
        enable) rm -f /persistent/etc/rc.d/S50asterisk;
                ln -s /persistent/etc/init.d/asterisk /persistent/etc/rc.d/S50as
        disable) rm -f /persistent/etc/rc.d/S50asterisk;;
        *) cat <<EOF;;
Syntax: /etc/init.d/asterisk [command]


Available commands:
        start   Start the service
        stop    Stop the service
        restart Restart the service
        enable  Enable service autostart
        disable Disable service autostart
EOF
esac
[/code]角色

lttliang 發表於 2010-7-19 22:39

[quote]19:13分又死一次!

一天内死三次。

这次不再asterisk start了,而是reboot。


角色 ...
[size=2][color=#999999]角色 發表於 2010-7-19 19:15[/color] [url=http://www.telecom-cafe.com/redirect.php?goto=findpost&pid=6318&ptid=2469][img]http://www.telecom-cafe.com/images/common/back.gif[/img][/url][/size][/quote]


    我都話左啦  升級 左固件之後  死機次數多左好多

ckleea 發表於 2010-7-20 06:41

New firmware released on 5 July

Build 2010-6-29
    * Add fix for ssmtp to support gmail.  Instruction for how to use it: [url]http://www.openippbx.org/index.php?title=Voicemail_to_Email#SSMTP_server_configure_sample_for_Gmail[/url]

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.


Build: 2010-4-26
    * Add fall back ip 172.31.255.254/30. if the IP-PBX linux is running, you should able to access it via this ip even it has another
      IP 192.168.1.100. To access via its fallback IP, you need to set your computer ip to 172.31.255.253 and the netmask to 255.255.255.252   
    * Set srvlookup = no bydefaut
    * Unlock macro-stdexten
    * Fix CALLER ID bug between voip trunk
    * Change web Password to "atcom"
    * Add various patch from Digium to fix hung issue.

Beta:20091231
    * Fix first digit tone dial issue in the IP01
    * Activate the LAN port of IP02 and IP08

Beta: 20091226
    * Add NFS support. Now user can mount to network hard disk for big storage requirement.  Refer:
      [url]http://www.openippbx.org/index.php?title=Storage[/url]

Beta:  20091224
    * Add mixmonitor for call record.
    * Add USB port support (for IP08 V1.3).

Build 20091222
    * Add new feature: reset factory default but keep current network setting. It is useful for remote reset.

Build 20091221
    * Add Page function. Refer: [url]http://www.openippbx.org/index.php?title=Page[/url]
    * Delete "thank you for calling" voice in default context.

Build 20091028
    * Now the change the opermode in the GUI will work. Not test, the file change are: editzap.sh, /init.d/zaptel, guipreference.conf, opermode

Build 20091014
    * IP-BRIM firmware version is available now.

Build 20090927
    * Add busydetect in the default setting.

Build 20090923
    * Integrate with voipswitch tunnel.  Detail please consult:
      [url]http://www.openippbx.org/index.php?title=ATM[/url](Asterisk_Tunnel_Module)


Build 20090913
    * Fix the problem on archive the CDR and control the messages to become not so big.


Build 20090907
    * Reset button is now functional. Detail for this function can be found at
      [url]http://www.openippbx.org/index.php?title=Reset_Button[/url]

Build 20090819   (ssh password has been changed to 12xerXes06)
Merge Voiptel-CE 0.3.3 with our firmware and release the new firmware Voiptel-CE 0.3.4
Due to config changes (features.conf, musiconhold.conf and logger.conf) it is recommended that you select the option to Reset Configs when updating and do not restore any backups made prior to updating to this version.
    * SD/MMC device should now work properly with most cards, and during boot-up will automatically detect if a card is inserted, and format and prepare it if needed
    * Call Pickup feature is now enabled by default - put users in the same Pickup Group, and dial *8 to pick up any phone in the group
    * Fixed startup of ztdummy (needed for conferencing)
    * Fixed issue preventing Asterisk Logs page from working
    * Corrected directory definition of default context in musiconhold.conf
    * Cleaned out hidden symbols in /persistent/etc/config/crontab
    * GUI updated to 2.0.2-ce:
          o Changed a few defaults on the Call Queues page
          o The Asterisk Logs page will now attempt to read logs from SD/MMC, and if none are found it will try the onboard storage
          o Added link to Administrator Manual (the ?-button to the left of Logout in the upper right corner

Build 20090813
* fix loopstart setting issue for analog trunk

Build 20090810
* add enhance pick up. not tested: [url]http://www.thorsten-knabe.de/linux/asterisk/pickup.jsp[/url]

Build 20090806
    * now press #*11# in your normal phone will hear the IP of IP04.

Build 20090805
    * change default user range start from 6000 to 6001, the 6000 is used for the voice test.
    * remove the _7XXX extension from demo in extensions.conf so the voice menu extensions work.
    * change the default voicemail extension from 6050 to 6750, make sure it won't conflict with user extensions.
    * change the default meetme extension from 6060 to 6760, make sure it won't conflict with user extensions.

Build 20090804
    * fix network driver compatible issue with some old router/switch.

Build 20090802
    * comment the demo context in IAX.conf file so it won't connect to 216.207.245.47
    * change useragent in sip.conf to IP0X

Build 20090801 add bug fix from Voiptel-CE
    * modify the tooltips for the incoming rules.
    * add incoming call example


Build 20090703
    * improve the network compatible.

Build 20090603
    * modify the zapscan so it detect the fxo/fxs in the first time running the ip04. note, when you update the firmware from an version<20090603 you may need to "update settings" in the configure hardware page.

Build 20090524
    * add SMTP Authentication in the GUI

Build 20090515
    * enable factory reset
    * remove mutiply language support.

Build 20090512
    * fix the multiply channel define issue in the /etc/zaptel

Build 20090508
    * fix bug for busypattern
    * fix the bug when modify the timezone
    * add version control

Build 20090320
    * fix a config bug in DHCP. this bug will led to the eth0 down if the ethernet cable is unplug in the booting process.

頁: [1] 2 3

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.