[Home]

Summary:ASTERISK-17656: Music On Hold not working
Reporter:Virendra Bhati (virbhati)Labels:
Date Opened:2011-04-07 05:01:29Date Closed:2011-06-07 14:01:00
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_musiconhold
Versions:1.6.2.17 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description: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 :(
Below are the details of configuration files.


Even default MOH is also not working....

****** STEPS TO REPRODUCE ******

1) Extension.conf

[incoming]
exten => 6000,1,Answer
exten => 6000,n,Set(CHANNEL(musicclass)=BSNL)
exten => 6000,n,Set(foo=${CHANNEL(musicclass)})
exten => 6000,n,MusicOnHold(BSNL)


2) Musiconhold.conf

[BSNL]
mode=files
directory=/var/lib/asterisk/moh/MTNL

[Bhati]
mode=files
directory=/var/lib/asterisk/moh/Bhati


****** ADDITIONAL INFORMATION ******


3) Error log:-

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
 -- Executing [6000@bhati:1] Answer("SIP/1001-00000006", "") in new stack
 -- Executing [6000@bhati:2] Set("SIP/1001-00000006", "CHANNEL(musicclass)=BSNL") in new stack
   
 -- Started music on hold, class 'BSNL', on SIP/1001-00000006
 -- Stopped music on hold on SIP/1001-00000006
 == Spawn extension (bhati, 6000, 4) exited non-zero on 'SIP/1001-00000006'
Comments:By: Leif Madsen (lmadsen) 2011-04-07 13:18:54

Please use the asterisk-users mailing list for support questions.