Summary: | ASTERISK-07375: Asterisk will stop sending any packets for serveral seconds | ||
Reporter: | shawn (welles) | Labels: | |
Date Opened: | 2006-07-21 03:48:22 | Date Closed: | 2006-07-27 08:36:13 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | asterisk version : 1.2.1 1.2.7.1 1.2.9.1 when serveral iax clients communicate with other through asterisk server, after several minutes, all iax clients will not hear any voice, this will lasts about 7~10 seconds and then become ok. this will always accur in every 10 minutes or so. according the packets we get from the server , it seems that server has received frames but not send any frames. BTW, all iax client are under Symetric NAT. | ||
Comments: | By: Serge Vecher (serge-v) 2006-07-21 08:49:27 1. 'block' is for when Asterisk deadlocks completely. 2. Anything reported on the console? 3. Is this an issue in 1.2.10? By: shawn (welles) 2006-07-21 19:29:16 didn't test in 1.2.10. when this occur ,consol will stop for several seconds reporting anything.(there are about 300 users register on * ,so it should have many register info ,but it seems to stop.) By: Tilghman Lesher (tilghman) 2006-07-22 11:23:39 Are you running Asterisk with realtime priority (-p)? Are you running anything else on this box? By: shawn (welles) 2006-07-23 19:06:52 no, i start my box with 'asterisk -vvvgc' or 'safe_asterisk'. i disable some modules . the following is content of modules.conf /*****************/ [modules] autoload=yes noload => pbx_gtkconsole.so noload => pbx_kdeconsole.so noload => pbx_wilcalu.so noload => pbx_dundi.so noload => app_intercom.so noload => app_qcall.so noload => app_zapras.so noload => app_meetme.so noload => chan_modem.so noload => chan_modem_aopen.so noload => chan_modem_bestdata.so noload => chan_modem_i4l.so noload => chan_skinny.so noload => chan_mgcp.so noload => chan_zap.so load => res_musiconhold.so noload => chan_alsa.so [global] /*****************/ By: Tilghman Lesher (tilghman) 2006-07-23 19:15:49 I suspect there is another process running on this box which is occasionally hogging the CPU. By: shawn (welles) 2006-07-23 19:33:37 when this occurs, CPU loading is very light. Running Asterisk with realtime priority (-p) is useful for this issue? By: shawn (welles) 2006-07-23 22:01:13 following are all processes running in my box: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 4748 512 ? S 2005 0:18 init [3] root 2 0.0 0.0 0 0 ? SN 2005 0:00 [ksoftirqd/0] root 3 0.0 0.0 0 0 ? S< 2005 0:00 [events/0] root 4 0.0 0.0 0 0 ? S< 2005 0:00 [khelper] root 5 0.0 0.0 0 0 ? S< 2005 0:00 [kacpid] root 27 0.0 0.0 0 0 ? S< 2005 0:00 [kblockd/0] root 28 0.0 0.0 0 0 ? S 2005 0:00 [khubd] root 39 0.0 0.0 0 0 ? S 2005 0:00 [pdflush] root 42 0.0 0.0 0 0 ? S< 2005 0:00 [aio/0] root 41 0.0 0.0 0 0 ? S 2005 0:05 [kswapd0] root 115 0.0 0.0 0 0 ? S 2005 0:00 [kseriod] root 180 0.0 0.0 0 0 ? S< 2005 0:00 [ata/0] root 182 0.0 0.0 0 0 ? S 2005 0:00 [scsi_eh_0] root 183 0.0 0.0 0 0 ? S 2005 0:00 [scsi_eh_1] root 195 0.0 0.0 0 0 ? S 2005 4:19 [kjournald] root 1312 0.0 0.0 0 0 ? S< 2005 0:00 [kauditd] root 1348 0.0 0.0 0 0 ? S< 2005 0:00 [kmirrord] root 1349 0.0 0.0 0 0 ? S< 2005 0:00 [kmir_mon] root 1376 0.0 0.0 0 0 ? S 2005 0:00 [kjournald] root 2112 0.0 0.0 3624 616 ? Ss 2005 1:24 syslogd -m 0 root 2116 0.0 0.0 2532 484 ? Ss 2005 0:00 klogd -x root 2226 0.0 0.0 2536 588 ? Ss 2005 0:00 /usr/sbin/acpid root 2504 0.0 0.0 8940 808 ? Ss 2005 0:00 /usr/sbin/atd root 2579 0.0 0.0 2516 452 tty3 Ss+ 2005 0:00 /sbin/mingetty tty3 root 2580 0.0 0.0 2516 452 tty4 Ss+ 2005 0:00 /sbin/mingetty tty4 root 8709 0.0 0.0 0 0 ? S 2005 0:04 [pdflush] root 6919 0.0 0.0 2516 404 tty1 Ss+ 2005 0:00 /sbin/mingetty tty1 root 24136 0.0 0.0 2516 404 tty2 Ss+ 2005 0:00 /sbin/mingetty tty2 root 8338 0.0 0.1 21960 2076 ? Ss Apr20 0:07 /usr/sbin/sshd root 19964 0.0 0.0 3604 492 ? S<s Apr20 0:00 udevd root 407 0.0 0.0 57104 1212 ? Ss Jun20 0:00 crond root 20200 0.0 0.0 71288 1312 ? S Jul22 0:00 su root root 20208 0.0 0.0 53976 1620 ? S Jul22 0:00 bash root 12687 0.2 1.0 193368 21964 ? Sl Jul22 6:03 /usr/sbin/asterisk -vvvgc root 12693 0.0 0.2 6856 4936 ? S Jul22 0:01 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 QuajiroPromo.mp3 fp root 12694 0.0 0.1 4688 2736 ? S Jul22 0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 QuajiroPromo.mp3 fp welles 4841 0.0 0.1 37264 2728 ? S 10:05 0:01 sshd: welles@pts/0 welles 4842 0.0 0.0 53968 1520 pts/0 Ss 10:05 0:00 -bash root 4906 0.0 0.0 71288 1312 pts/0 S 10:05 0:00 su root root 4945 0.0 0.0 53976 1620 pts/0 S 10:05 0:00 bash root 5528 0.0 0.0 5444 784 pts/0 R+ 10:56 0:00 ps aux is there any process unexpected? By: Serge Vecher (serge-v) 2006-07-24 09:57:42 welles: I suspect mpg123 is the culprit. All support for it has been removed in the upcoming 1.4 release (current trunk) because of known issues with mpg123. The best course of action for you, IMHO, is to convert your mp3 files into one or several 'native' formats in use on your system (u/alaw, gsm). By: shawn (welles) 2006-07-27 05:33:54 thanks all. it is a database issue. my database loading is too heavy sometimes. so when asterisk receive IAX_COMMAND_REGREQ ,asterisk will do some database 'select' or 'update' operation,so aterisk blocks. anyway,thanks very much. |