<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>