<div dir="ltr">Hi All,<br><br>I already try StartMusicOnHold() instead of MusicOnHold();<br><br>Even default asterisk MOH not playing.<br><br><br><br><div class="gmail_quote">On Mon, Apr 11, 2011 at 9:17 PM, Warren Selby <span dir="ltr"><<a href="mailto:wcselby@selbytech.com">wcselby@selbytech.com</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 bgcolor="#FFFFFF"><div>Your last line in the dialplan should be StartMusicOnHold(), not just MusicOnHold(). <br>
<br>Thanks,<div>--Warren Selby, dCAP</div></div><div><div></div><div class="h5"><div><br>On Apr 11, 2011, at 6:24 AM, virendra bhati <<a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a>> wrote:<br>
<br></div><div></div><blockquote type="cite"><div><div dir="ltr">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>Asterisk Version                
                
                1.6.2.17.2                <br></b><br><b>1) Extension.conf</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>
2) Musiconhold.conf</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>3) Error log:-</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<br><br>
</div>
</div></blockquote></div></div><blockquote type="cite"><div><span>--</span><br><span>_____________________________________________________________________</span><br><span>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">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" target="_blank"></a><a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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" target="_blank"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></div>
</blockquote></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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">http://lists.digium.com/mailman/listinfo/asterisk-users</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>