<html><body bgcolor="#FFFFFF"><div>Doesn't Elastix have it's own tool for MusicOnHold? Maybe check with that and see if that makes a difference. <br><br>Thanks,<div>--Warren Selby, dCAP</div></div><div><br>On Apr 11, 2011, at 12:49 PM, virendra bhati <<a href="mailto:virbhati@gmail.com">virbhati@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div dir="ltr">Yes ,<br><br>I show me the all configured MOH. But don't play the MOH.<br><br>After 12 sec of silence CLI give message <br><br>Stop music on hold.... <br><br>As I told you that default moh also not played :) <br>
<br><div class="gmail_quote">On Mon, Apr 11, 2011 at 9:55 PM, Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com"><a href="mailto:danny@debsinc.com">danny@debsinc.com</a></a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="blue" lang="EN-US">
<div>
<div style="border-width: medium medium medium 1.5pt; border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; padding: 0in 0in 0in 4pt;">
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" width="100%" size="2">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank"><a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a></a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank"><a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a></a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>virendra bhati<br>
<b><span style="font-weight: bold;">Sent:</span></b> Monday, April 11, 2011 11:23
AM<br>
<b><span style="font-weight: bold;">To:</span></b> Asterisk
Users Mailing List - Non-Commercial Discussion<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [asterisk-users]
Asterisk MOH not working with Elastix asterisk1.6.2.18</span></font></p>
</div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<div><div><div></div><div class="h5">
<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi All,<br>
<br>
I already try StartMusicOnHold() instead of MusicOnHold();<br>
<br>
Even default asterisk MOH not playing.<br>
<br>
<br>
</span></font></p>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">On Mon, Apr 11, 2011 at 9:17 PM, Warren Selby <<a href="mailto:wcselby@selbytech.com" target="_blank"><a href="mailto:wcselby@selbytech.com">wcselby@selbytech.com</a></a>> wrote:</span></font></p>
<div bgcolor="#FFFFFF">
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Your last line in the dialplan should be StartMusicOnHold(), not just
MusicOnHold(). <br>
<br>
Thanks,</span></font></p>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">--Warren Selby, dCAP</span></font></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
On Apr 11, 2011, at 6:24 AM, virendra bhati <<a href="mailto:virbhati@gmail.com" target="_blank"><a href="mailto:virbhati@gmail.com">virbhati@gmail.com</a></a>>
wrote:</span></font></p>
</div>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
<div>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I am using Elastix.
Asterisk is used for PBX application in Elastix. I want to make customize MOH.
But not able to use MOH. I make simple extension in asterisk conf file but no
success :(<br>
<br>
But when I used Vanilla Asterisk then All things are working....<br>
<br>
Below are the details of configuration files.<br>
<br>
<br>
Even default MOH is also not working.... <br clear="all">
<br>
<b><span style="font-weight: bold;">Asterisk Version 1.6.2.17.2 <br>
</span></b><br>
<b><span style="font-weight: bold;">1) Extension.conf</span></b><br>
<br>
[incoming]<br>
exten => 6000,1,Answer<br>
exten => 6000,n,Set(CHANNEL(musicclass)=BSNL)<br>
exten => 6000,n,Set(foo=${CHANNEL(musicclass)})<br>
exten => 6000,n,MusicOnHold(BSNL)<br>
<br>
<br>
<b><span style="font-weight: bold;">2) Musiconhold.conf</span></b><br>
<br>
[BSNL]<br>
mode=files<br>
directory=/var/lib/asterisk/moh/MTNL<br>
<br>
[Bhati]<br>
mode=files<br>
directory=/var/lib/asterisk/moh/Bhati<br>
<br>
<b><span style="font-weight: bold;">3) Error log:-</span></b><br>
<br>
== Using SIP RTP TOS bits 184<br>
== Using SIP RTP CoS mark 5<br>
-- Executing [6000@bhati:1] Answer("SIP/1001-00000006",
"") in new stack<br>
-- Executing [6000@bhati:2] Set("SIP/1001-00000006",
"CHANNEL(musicclass)=BSNL") in new stack<br>
<br>
-- Started music on hold, class 'BSNL', on SIP/1001-00000006<br>
-- Stopped music on hold on SIP/1001-00000006<br>
== Spawn extension (bhati, 6000, 4) exited non-zero on
'SIP/1001-00000006'<br clear="all">
<br>
-- <br>
-----<br>
Thanks and regards<br>
<br>
Virendra Bhati<br>
+91-9172341457<br>
Asterisk Engineer</span></font></p>
</div>
</div>
</blockquote>
</div>
</div>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"><a href="http://www.api-digital.com">http://www.api-digital.com</a></a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank"></a><a href="http://www.asterisk.org/hello" target="_blank"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></span></font></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"><a href="http://www.api-digital.com">http://www.api-digital.com</a></a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br clear="all">
<br>
-- <br>
-----<br>
Thanks and regards<br>
<br>
Virendra Bhati<br>
+91-9172341457<br>
Asterisk Engineer</span></font></p>
</div></div><p class="MsoNormal" style="margin-bottom: 12pt;"><b><i><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy; font-weight: bold; font-style: italic;">[Danny Nicholas] </span></font></i></b></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><b><i><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy; font-weight: bold; font-style: italic;">From CLI do </span></font></i></b></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><b><i><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy; font-weight: bold; font-style: italic;">Moh show files </span></font></i></b></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><b><i><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy; font-weight: bold; font-style: italic;">This will show you if your class is set up
correctly.</span></font></i></b></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
</div>
</div>
</div>
</div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"><a href="http://www.api-digital.com">http://www.api-digital.com</a></a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a><br></blockquote></div><br><br clear="all"><br>-- <br>-----<br>Thanks and regards<br>
<br> Virendra Bhati<br>+91-9172341457<br>Asterisk Engineer<br><br>
</div>
</div></blockquote><blockquote type="cite"><div><span>--</span><br><span>_____________________________________________________________________</span><br><span>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --</span><br><span>New to Asterisk? Join us for a live introductory webinar every Thurs:</span><br><span> <a href="http://www.asterisk.org/hello"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a></span><br><span></span><br><span>asterisk-users mailing list</span><br><span>To UNSUBSCRIBE or update options visit:</span><br><span> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></span></div></blockquote></body></html>