MOH File Format Issues
Posted: Tue Jan 14, 2014 12:48 pm
For an inbound campaign I define following music on hold context.
[pkpost]
mode=files
directory=/var/lib/asterisk/pkpost
Using following SOX command I converted file in gsm format and put in above directory.
sox PP_Queue_Wait_With_Music.wav -t raw -r 8000 -s -w -c 1 PP_Queue_Wait_With_Music.gsm
Now whenever asterisk start this music on hold it stop for a second and then start playing the file and calling party observe a slight pause in hold music.
CLI Logs.
[Jan 14 22:33:24] -- Started music on hold, class 'pkpost', on SIP/5515-000000db
[Jan 14 22:33:27] -- Stopped music on hold on SIP/5515-000000db
[Jan 14 22:33:27] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)\
[Jan 14 22:33:27] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jan 14 22:33:28] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jan 14 22:33:28] WARNING[16540]: file.c:665 ast_openstream_full: File PP_Queue_Wait_With_Music does not exist in any format
[Jan 14 22:33:29] -- Started music on hold, class 'pkpost', on SIP/5515-000000db
Please advise how to fix this problem.
Vicidial VERSION: 2.4-309a | BUILD: 110430-1642 | Asterisk 1.4.39.1-vici
[pkpost]
mode=files
directory=/var/lib/asterisk/pkpost
Using following SOX command I converted file in gsm format and put in above directory.
sox PP_Queue_Wait_With_Music.wav -t raw -r 8000 -s -w -c 1 PP_Queue_Wait_With_Music.gsm
Now whenever asterisk start this music on hold it stop for a second and then start playing the file and calling party observe a slight pause in hold music.
CLI Logs.
[Jan 14 22:33:24] -- Started music on hold, class 'pkpost', on SIP/5515-000000db
[Jan 14 22:33:27] -- Stopped music on hold on SIP/5515-000000db
[Jan 14 22:33:27] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)\
[Jan 14 22:33:27] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jan 14 22:33:28] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jan 14 22:33:28] WARNING[16540]: file.c:665 ast_openstream_full: File PP_Queue_Wait_With_Music does not exist in any format
[Jan 14 22:33:29] -- Started music on hold, class 'pkpost', on SIP/5515-000000db
Please advise how to fix this problem.
Vicidial VERSION: 2.4-309a | BUILD: 110430-1642 | Asterisk 1.4.39.1-vici