[SOLVED] Asterisk hangs with musiconhold


My asterisk box plays internet streaming ( as musiconhold). SIP users connect to the platform and listen to streamings.
extensions and musiconhold are configured in dynamic realtiem( Mysql).

After few hours (some times few minutes), asterisk box start not responding.

On the issue-

  1. netstat -an shows port is still listening.
  2. mpg123 processes are shown with ps -ax
  3. sip show channels works in CLI, but reload deoesn’t work…

Sample musiconhold class is follows
applicaiton=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0
mode = ‘custom’, '
format= 'slin

Note: considerable amount of below lines are in full log.
NOTICE[9554] channel.c: Dropping incompatible voice frame on SIP/mradio-00000043 of format ulaw since our native format has changed to 0x8 (alaw).

Best regards,

Asterisk hangs

By doing below steps, i could solve the issue

  1. Introduced madplay (with wget method) instead of mpg123
  2. Used static moh instead of dynamic realtime moh.

Hope the issue is with player. So i’m going to revert moh to realtime and see.