<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Just a “shot in the dark” but
could MOH be choking on the “long file names”? (does it work on
fred_chopin_pol_1)?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Dan Saul<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, September 16,
2009 4:18 PM<br>
<b><span style='font-weight:bold'>To:</span></b>
asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users] Music on
Hold</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi,<br>
<br>
I have trouble getting MOH to work after an upgrade from asterisk 1.4 to
1.6.1.4. The call goes on hold, MOH is started, and then stops right away.<br>
<br>
Here are the files both of type .raw:<br>
<br>
Tsunami*CLI> moh show files<br>
Class: default<br>
File: /etc/asterisk/musiconhold/Frédéric Chopin - Polonaises
Op. 40-2<br>
File: /etc/asterisk/musiconhold/Frédéric Chopin - Polonaises
Op. 40-1<br>
<br>
These files were generated by SoX:<br>
Channels : 1<br>
Sample Rate : 8000<br>
Precision : 16-bit<br>
Sample Encoding: 16-bit Signed Integer PCM<br>
Endian Type : little<br>
Reverse Nibbles: no<br>
Reverse Bits : no<br>
Comment : 'Processed by SoX'<br>
<br>
This prints in the asterisk console when you attempt to put someone in hold:<br>
<br>
-- Started music on hold, class 'default', on
SIP/link2voip-sw1-02477668<br>
-- Stopped music on hold on SIP/link2voip-sw1-02477668<br>
<br>
No errors are printed, however the other side just hears silence.<br>
<br>
Here is the full debug output (asterisk -rvvvvv):<br>
<br>
== Using SIP RTP CoS mark 5<br>
-- Executing [xxxxxxx@phones:1]
Goto("SIP/ATA-xxxxxxxxxx-L1-024b6d88", "1xxxxxxxxxx,1") in
new stack<br>
-- Goto (phones,1xxxxxxxxxx,1)<br>
-- Executing [1xxxxxxxxxx@phones:1]
MSet("SIP/ATA-xxxxxxxxxx-L1-024b6d88", "oldcidnum=0") in
new stack<br>
-- Executing [1xxxxxxxxxx@phones:2]
MSet("SIP/ATA-xxxxxxxxxx-L1-024b6d88",
"CALLERID(name)=""") in new stack<br>
-- Executing [1xxxxxxxxxx@phones:3]
MSet("SIP/ATA-xxxxxxxxxx-L1-024b6d88",
"CALLERID(num)=xxxxxxxxxx") in new stack<br>
-- Executing [1xxxxxxxxxx@phones:4]
Monitor("SIP/ATA-xxxxxxxxxx-L1-024b6d88", "wav,/tmp/out 0
2009-09-17 03h 04m 51s CST xxxxxxxxxx,m") in new stack<br>
-- Executing [1xxxxxxxxxx@phones:5]
Gosub("SIP/ATA-xxxxxxxxxx-L1-024b6d88", "ExternalDial,s,1(1xxxxxxxxxx)")
in new stack<br>
-- Executing [s@ExternalDial:1]
MSet("SIP/ATA-xxxxxxxxxx-L1-024b6d88",
"LOCAL(num)=1xxxxxxxxxx") in new stack<br>
-- Executing [s@ExternalDial:2]
MSet("SIP/ATA-xxxxxxxxxx-L1-024b6d88", "~~EXTEN~~=s") in
new stack<br>
-- Executing [s@ExternalDial:3]
Dial("SIP/ATA-xxxxxxxxxx-L1-024b6d88",
"SIP/1xxxxxxxxxx@link2voip-sw1,120") in new stack<br>
== Using SIP RTP CoS mark 5<br>
-- Called 1xxxxxxxxxx@link2voip-sw1<br>
-- SIP/link2voip-sw1-02477668 is making progress passing it
to SIP/ATA-xxxxxxxxxx-L1-024b6d88<br>
-- SIP/link2voip-sw1-02477668 answered
SIP/ATA-xxxxxxxxxx-L1-024b6d88<br>
-- Started music on hold, class 'default', on
SIP/link2voip-sw1-02477668<br>
-- Stopped music on hold on SIP/link2voip-sw1-02477668<br>
> doing dnsmgr_lookup for '<a
href="http://sip.ca2.link2voip.com">sip.ca2.link2voip.com</a>'<br>
> doing dnsmgr_lookup for '<a
href="http://sip.ca1.link2voip.com">sip.ca1.link2voip.com</a>'<br>
== Spawn extension (ExternalDial, s, 3) exited non-zero on 'SIP/ATA-xxxxxxxxxx-L1-024b6d88'<br>
<br>
Any thoughts or ideas? If there were an error I could work on solving that, but
there is none... Thanks.<o:p></o:p></span></font></p>
</div>
</body>
</html>