[Home]

Summary:ASTERISK-06125: MOH not working for calls placed to agent
Reporter:vortex_0_o (vortex_0_o)Labels:
Date Opened:2006-01-18 11:58:21.000-0600Date Closed:2011-06-07 14:10:06
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_musiconhold
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:agentcallbacklogin on SIP
place call to agent on 2XXX, place call on hold

result: no music

error on console as below:
Jan 18 18:46:42 WARNING[3802]: chan_sip.c:2521 sip_write: Asked to transmit frame type 64, while native formats is 8 (read/write = 8/8)

--

extensions.conf
exten => _2XXX,1,gotoif($["${AGENTBYCALLERID_${CALLERIDNUM}}" != ""]?2:3)
exten => _2XXX,2,SetCallerID(${AGENT(${AGENTBYCALLERID_${CALLERIDNUM}}:name)} <${AGENTBYCALLERID_${CALLERIDNUM}}>)
exten => _2XXX,3,Dial(Agent/${EXTEN},500,t)
exten => _2XXX,4,Goto(s-agent-${DIALSTATUS},1)

musiconhold.conf
[default]
mode=custom
directory=/var/lib/asterisk/mohmp3/test
application=/usr/local/bin/madplay -Q -o raw:- --mono -R 8000 -a -12
Comments:By: Matt O'Gorman (mogorman) 2006-02-28 12:02:19.000-0600

its trying to write sinlinear to your alaw stream, do you have disallow = all allo w=alaw or whatever your peer is set with? can you provide your sip.conf

By: vortex_0_o (vortex_0_o) 2006-03-02 09:29:59.000-0600

hi - yes sip.conf is as below - only allowing alaw

disallow=all
allow=alaw

this only happens when dialing an agent directly
dialing SIP/extension is fine

By: Serge Vecher (serge-v) 2006-05-03 12:57:58

vortex_0_o: is this still an issue with latest 1.2?

By: BJ Weschke (bweschke) 2006-05-03 13:37:16

what does the rest of the DEBUG/VERBOSE trace look like? does it show it even trying to apply MOH?

By: vortex_0_o (vortex_0_o) 2006-05-04 14:14:29

still an issue with latest 1.2svn

error is now:
WARNING[3802]: chan_sip.c:2544 sip_write: Asked to transmit frame type 64, while native formats is 8 (read/write = 8/8)

yes it:
"--Started music on hold ...chanel SIP/blah"

WARNING[3802]: chan_sip.c:2544 sip_write: Asked to transmit frame type 64, while native formats is 8 (read/write = 8/8)
(repeated as long as it is on hold)

"--Stopped music on hold on SIP/blah"

By: Serge Vecher (serge-v) 2006-05-04 14:16:21

ok then -- please upload a full trace as per bweschke.

By: Serge Vecher (serge-v) 2006-05-12 11:39:06

Please reopen the bug when a full trace showing the problem is available, indicating the revision of the latest 1.2 branch you have used.

Thank you.