Page 1 of 1

Reg : Music On Hold not working

PostPosted: Fri Mar 26, 2021 5:47 am
by palani.sivagurunathan
Hello,

Below the my vicidial server configuration .

Vicidial Version : 2.13-576a Build : 161126-2138
Asterisk : 11.25.3
Libpri : 1.4.12
Dahdi : 2.10.2

Server Platform : Single Processor Dedicated Server
Processor : Intel® Xeon® Processor E5-2630, v3 20M Cache, 2.40 GHz, Octo Core QTY: 1
OS : CentOS7
Drive Selection, Set 2: HP 600GB 12G SAS

I installed asterisk/vicidial on this server . when i create MOH in vicidial , the folder is not creating to /var/lib/asterisk location.

musiconhold.conf configuration

[default]
;[old-default]
mode=files
;directory=/var/lib/asterisk/mohmp3
directory=/var/lib/asterisk
random=yes

[quiet]
;[old-quiet]
mode=files
;directory=/var/lib/asterisk/quiet-mp3
directory=/var/lib/asterisk
i enabled and disabled all the option . But folder is not creating inside the /var/lib/asterisk location.

But musiconhold-vicidial.conf having the details , which is i created the MOH file name .
[palanivel]
mode=files
directory=/var/lib/asterisk/palanivel
sort=alpha

Kindly help me on this issue .

Thanks,
Palanivel S

Re: Reg : Music On Hold not working

PostPosted: Sun Mar 28, 2021 9:53 am
by carpenox
show me the asterisk log when it tries to find it. are the folders actually there? if not why not create them? mkdir directroryname

Re: Reg : Music On Hold not working

PostPosted: Mon Mar 29, 2021 5:11 am
by palani.sivagurunathan
Hello,

Below the asterisk log . Folder is not creating automatically . But i created manually , after that not working .


[Mar 29 06:07:30] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
[Mar 29 06:07:30] -- AGI Script Executing Application: (Monitor) Options: (wav,/var/spool/asterisk/monitor/MIX/20210329060730_5128135782_5102)
[Mar 29 06:07:30] -- <SIP/5102-00000002>AGI Script agi-DID_route.agi completed, returning 0
[Mar 29 06:07:30] -- Executing [99909*4027***DID@default:1] Answer("SIP/5102-00000002", "") in new stack
[Mar 29 06:07:30] -- Executing [99909*4027***DID@default:2] AGI("SIP/5102-00000002", "agi-VDAD_ALL_inbound.agi") in new stack
[Mar 29 06:07:30] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
[Mar 29 06:07:30] -- <SIP/5102-00000002> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Mar 29 06:07:30] -- <SIP/5102-00000002> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Mar 29 06:07:32] WARNING[20019][C-00003213]: res_musiconhold.c:899 _get_mohbyname: Music on Hold class 'palanivel' not found in memory. Verify your configuration.
[Mar 29 06:07:32] -- Started music on hold, class 'default', on SIP/5102-00000002
[Mar 29 06:07:35] -- Stopped music on hold on SIP/5102-00000002
[Mar 29 06:07:35] -- <SIP/5102-00000002> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Mar 29 06:07:35] -- <SIP/5102-00000002> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Mar 29 06:07:35] -- <SIP/5102-00000002> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Mar 29 06:07:35] -- <SIP/5102-00000002> Playing 'generic_hold.gsm' (escape_digits=) (sample_offset 0) (language 'en')

Please help me on this

Thanks
Palanivel S

Re: Reg : Music On Hold not working

PostPosted: Sun Apr 11, 2021 1:44 am
by Kabis
Hi PalaniVel,

Did you include the musiconhold-vicidial.conf in musiconhold.conf file.

Means, Can you find the following link in musiconhold.conf file

#include musiconhold-vicdial.conf