[Home]

Summary:ASTERISK-09227: MOH plays when a call is put on hold but will not stop when the call is picked back up
Reporter:mackey (mackey)Labels:
Date Opened:2007-04-08 20:02:35Date Closed:2007-05-14 10:14:04
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_musiconhold
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) ast.log
( 1) verbosedebug.txt
Description:MOH plays when a call is put on hold but will not stop when the call is picked back up.  Even though the caller is still hearing music, the person picking the call back up can hear the caller.  The verbose/debug/SIP log shows 'Started music on hold, class 'default', on SIP/...' when the call is INVITEd to 0.0.0.0, but does not show MOH trying to do anything when the call is reconnected.  It isn't until after the caller hangs up that MOH reports 'Stopped music on hold on SIP/...'  I've attached a log starting from when a call is placed on hold.

****** ADDITIONAL INFORMATION ******

This is an Asterisk@Home box on which I've upgraded Asterisk to SVN trunk (1.4).  sip.conf has musicclass=default under [general] and the musiconhold.conf file is:

[default]
mode=files
directory=/var/lib/asterisk/moh-native
random=yes

[moh_files]
default => /var/lib/asterisk/moh-native,r
#include musiconhold_additional.conf
; class definitions For A2Billing
acc_1 => mp3:/var/lib/asterisk/mohmp3/acc_1
<snip repetitive lines>
acc_10 => mp3:/var/lib/asterisk/mohmp3/acc_10
Comments:By: Christoph Stadlmann (cstadlmann) 2007-04-09 02:04:29

Encountered that behavior too, seems to be related to bug ASTERISK-8793.

By: Joshua C. Colp (jcolp) 2007-04-09 07:13:01

Are you using trunk or 1.4, they are two vastly different things. As for debugging this... can you please provide full console output with debug enabled (in logger.conf plus with core set debug 9 done on the CLI)? This will give much more information.

By: Christoph Stadlmann (cstadlmann) 2007-04-10 10:04:34

file: I can reproduce that behavior with svn 61184 every time I initiate 'hold' with SJPhone. That softphone seems to irritate Asterisk where it can...

Please find attached 'verbosedebug.txt':
101 (SJPhone) dials 103 (Snom 360)
103 picks up
101 put's call on hold, 103 hears music
101 resumes call, 103 still hears music
103 hangs up

And again, related to bug 9052, devicestate remains 'Hold'.

BTW, if I put the call on hold from Snom, the other party does NOT hear MOH... Strange behavior...



By: Serge Vecher (serge-v) 2007-04-10 10:41:59

from the log, mackey is using Aastra phones...

By: mackey (mackey) 2007-04-10 11:30:37

file: I was under the impression trunk was a continuation of 1.4...  `asterisk -V` reports "Asterisk SVN-trunk-r60763"  I'll have those logs myself a little later this afternoon.

The phone is a Aastra 480i, and the caller is coming in on a SIP trunk from a VoIP provider.  We only have 1 480i, but I'll check to see if the problem persists with 480i <-*-> 9133i.

By: mackey (mackey) 2007-05-11 23:59:01

Ok, this is just another effect of bug 9052.  The fix for that bug fixes this one too.

By: jmls (jmls) 2007-05-12 04:47:27

release 63283 broke the hold

By: jmls (jmls) 2007-05-12 12:29:34

please check the latest svn build for 1.4. It fixed my problem

By: Joshua C. Colp (jcolp) 2007-05-14 10:14:04

Fixed in 1.4 as of revision 64114 and trunk as of revision 64115.