Summary:ASTERISK-05937: music on hold stopped working after update to asterisk 1.2
Reporter:barthek (barthek)Labels:
Date Opened:2005-12-31 05:34:23.000-0600Date Closed:2011-06-07 14:10:36
Versions:Frequency of
Description:i have upgraded my asterisk installation from CVS-current (probably one of the latest revision updated by CVS) to asterisk-1.2 branch (revision 7687).

i have had an extension configured that would play music on hold while calling other parties, eg.

exten => _70Z.,1,Dial(SIP/halonet/0048${EXTEN:2},60,rm)

it worked nice until the upgrade was performed.
now, there is no music during the call setup, although the log says:

Started music on hold, class 'default', on channel 'IAX2/home-2'

mpg123 process works as expected - if straced, waits with write() until music is supposed to start on asterisk side, writes continuosly to fd while music supposedly plays and waits in write() again when music is supposed to be stopped.


i am running gentoo linux on x86.
idefisk used as a client.
remote parties connected through SIP.
Comments:By: Clod Patry (junky) 2005-12-31 09:48:23.000-0600

Just tried:
   -- Executing Dial("SIP/10-f1e9", "SIP/17|60|rm") in new stack
   -- Called 17
   -- Started music on hold, class 'default', on channel 'SIP/10-f1e9'
   -- SIP/17-e1e7 is ringing
and im hearing the moh.
File                      Revision
----                      --------
res_musiconhold.c         Revision: 7682

tried with a polycom IP 500 and x-lite.

By: Peng Yong (ppyy) 2006-01-01 00:22:13.000-0600

no problem with Asterisk SVN-trunk-r7688M:
   -- Executing Answer("SIP/test-34c4", "") in new stack
   -- Executing SetMusicOnHold("SIP/test-34c4", "default") in new stack
   -- Executing Dial("SIP/test-34c4", "SIP/ppyy|60|rm") in new stack
   -- Called ppyy
   -- Started music on hold, class 'default', on channel 'SIP/test-34c4'
   -- SIP/ppyy-2be7 is ringing
   -- Stopped music on hold on SIP/test-34c4

i can here the moh.

By: Clod Patry (junky) 2006-01-01 08:36:53.000-0600

barthek: can you provide us more details, you sure isn't something on your side?

I'm changing secerity to minor, since MOH isn't major and it works for both of us.

By: barthek (barthek) 2006-01-01 12:50:07.000-0600

ok guys here are my findings:
- moh plays for me if i connect to asterisk with SIP client (tried xlite) - its the same config you tried, right ?
- moh doesnt play when i use iax2 client - idefisk in my case.

now i am wondering whether its asterisk or idefisk fault.

sorry for giving it a 'major' priority, i'll do better next time :)

By: barthek (barthek) 2006-01-01 12:59:15.000-0600

ok another news.
diax works fine,
idefisk 1.25 works fine
idefisk >=1.26 does not work fine

ive submited a bug report to support@asteriskguru.com,
maybe they will figure out where the problem is.

thanks for all your work,

By: Clod Patry (junky) 2006-01-01 13:08:36.000-0600

Since this seems to be caused by idefisk, not asterisk, im closing this one.
If zoa (or other guys from asteriskguru) wants to re-open, feel free.