NOT ABLE TO PLAY HOLD MUSIC FILE

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

NOT ABLE TO PLAY HOLD MUSIC FILE

Postby avi » Thu Mar 12, 2009 2:27 am

Hi ,

when agent is on inbound call and put customer on hold ,then hold music is not playing what i set in ingroup setting.

musiconhold.conf-:
[default]
mode=files
directory=/var/lib/asterisk/mohmp3

; valid mode options:
; quietmp3 -- default
; mp3 -- loud
; mp3nb -- unbuffered
; quietmp3nb -- quiet unbuffered
; custom -- run a custom application
; files -- read files from a directory in any Asterisk supported format

There is no any error on CLI.and even its not showing which file its playing during hold call.

So please help me.how should i
1.configure musiconhold.conf to play two music file one by one continuously .
2.Where i should put these two file in which format.
3.what modification needed in extension.conf.
4.what modification needed in agi-VDAD_ALL_inbound.agi

Thanks in advance.

Asterisk 1.2.27
astGUIclient version 2.0.4.1rc5

:cry:
avi
 
Posts: 57
Joined: Tue Sep 16, 2008 4:34 am
Location: india

Postby mflorell » Thu Mar 12, 2009 9:40 am

You should not have to modify the AGI script at all, this is an Asterisk configuration issue.

Found this on Google:

; File-based (native) music on hold
;
; This plays files directly from the specified directory, no external
; processes are required. Files are played in normal sorting order
; (same as a sorted directory listing), and no volume or other
; sound adjustments are available. If the file is available in
; the same format as the channel's codec, then it will be played
; without transcoding (same as Playback would do in the dialplan).
; Files can be present in as many formats as you wish, and the
; 'best' format will be chosen at playback time.
;
; NOTE:
; If you are not using "autoload" in modules.conf, then you
; must ensure that the format modules for any formats you wish
; to use are loaded _before_ res_musiconhold. If you do not do
; this, res_musiconhold will skip the files it is not able to
; understand when it loads.
;

;[native]
;mode=files
;directory=/var/lib/asterisk/moh-native
;
;[native-random]
;mode=files
;directory=/var/lib/asterisk/moh-native
;random=yes ; Play the files in a random order
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby avi » Sat Mar 14, 2009 2:31 pm

i have 2 files

generic_hold.gsm
generic_hold_music.gsm


both are in /var/lib/asterisk/sound. directory. i have put your above lines in musiconhold.conf files .in modules.conf it was set as auto load.


but still these 2 files are not playing.its playing unknown 3rd files .which i dont suppose to play.


please suggest where i am lacking in configuration.
avi
 
Posts: 57
Joined: Tue Sep 16, 2008 4:34 am
Location: india

Postby mflorell » Sat Mar 14, 2009 2:49 pm

What is the in-group music on hold context set to?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby avi » Sat Mar 14, 2009 2:53 pm

context is default and music file name is generic_hold
avi
 
Posts: 57
Joined: Tue Sep 16, 2008 4:34 am
Location: india

Postby avi » Sat Mar 14, 2009 2:54 pm

but this file (generic_hold) playing when customer is waiting for next available agents.
avi
 
Posts: 57
Joined: Tue Sep 16, 2008 4:34 am
Location: india

Postby mflorell » Sat Mar 14, 2009 4:49 pm

Well, you need to put the files in the /var/lib/asterisk/moh-native directory, and you need to convert them to whatever codec your trunks are using to connect to your system.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby avi » Sat Mar 14, 2009 5:28 pm

its giving me message on CLI

-- Started music on hold, class 'default', on Zap/2-1


but still playing 3rd file.not that file which i want to play.all gsm file is playing that why i have putted music file in gsm format.
avi
 
Posts: 57
Joined: Tue Sep 16, 2008 4:34 am
Location: india

Postby mflorell » Sat Mar 14, 2009 6:12 pm

Are there other files still in that directory?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby avi » Sat Mar 14, 2009 6:21 pm

no.
avi
 
Posts: 57
Joined: Tue Sep 16, 2008 4:34 am
Location: india

Postby mflorell » Sat Mar 14, 2009 9:24 pm

Did you restart Asterisk after making these changes?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby avi » Sat Mar 14, 2009 9:36 pm

yes
avi
 
Posts: 57
Joined: Tue Sep 16, 2008 4:34 am
Location: india

Postby mflorell » Sun Mar 15, 2009 7:42 am

Do you have any way of figuring out what is being played?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby avi » Mon Mar 16, 2009 1:30 am

This is the problem ,i am not able to figure which file is playing.otherewise i can simply replaced it with my file.
avi
 
Posts: 57
Joined: Tue Sep 16, 2008 4:34 am
Location: india

Postby avi » Mon Mar 16, 2009 1:45 am

i am able to see following msg on CLI


== Manager 'sendcron' logged off from 127.0.0.1
-- Started music on hold, class 'default', on Zap/14-1
-- Stopped music on hold on Zap/31-1


it indicate which file
generic_hold or hold_music file or any things else?
avi
 
Posts: 57
Joined: Tue Sep 16, 2008 4:34 am
Location: india

Postby mflorell » Mon Mar 16, 2009 2:39 am

according to your settings, default means /var/lib/asterisk/mohmp3

Are there any other files in that directory?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby avi » Tue Mar 17, 2009 5:13 am

no .
avi
 
Posts: 57
Joined: Tue Sep 16, 2008 4:34 am
Location: india


Return to Support

Who is online

Users browsing this forum: No registered users and 262 guests