I'm trying to create some custom MOH entries and seems that either my version has some kind of a bug or I dunno what else I should check. Here is what I did (basically I've already done this on another vicidial verion and it worked fine):
1. I took a couple of recordings, cut them by several 9-seconds pieces and uploaded them to Audio store
2. Created MOH entry with random = N, added my .wav pieces one by one making sure that the order is correct.
3. Saving everything, waiting for a minute till MOH entries will get updated.
However when trying to make a test call I'm always getting my recordings played in the wrong order. My MOH plays the 3rd piece before any other. It's not random, it's the same every time. Once I have less, than 2 pieces in my MOH entry - they play fine, however every time I add third piece - it stats mixing them.
I've double checked the configs:
- Code: Select all
; Go Down Moses - Louis Armstrong
[louis_armstrong]
mode=files
directory=/var/lib/asterisk/louis_armstrong
; La boheme- Charles Aznavour
[french]
mode=files
directory=/var/lib/asterisk/french
and files:
- Code: Select all
voip13:/var/lib/asterisk/french # ls -l
total 724
-rw-r--r-- 1 root root 33 Dec 6 11:06 0000_sip-silence.gsm
-rw-r--r-- 1 root root 144312 Dec 6 11:06 0001_boheme9.wav
-rw-r--r-- 1 root root 144312 Dec 6 11:06 0002_boheme18.wav
-rw-r--r-- 1 root root 144312 Dec 6 12:00 0003_boheme27.wav
-rw-r--r-- 1 root root 144312 Dec 6 12:00 0004_boheme36.wav
-rw-r--r-- 1 root root 144312 Dec 6 12:01 0005_boheme45.wav
voip13:/var/lib/asterisk/louis_armstrong # ls -l
total 580
-rw-r--r-- 1 root root 33 Dec 5 11:13 0000_sip-silence.gsm
-rw-r--r-- 1 root root 144200 Dec 6 09:56 0001_1godown.wav
-rw-r--r-- 1 root root 144200 Dec 6 09:57 0002_2godown.wav
-rw-r--r-- 1 root root 144200 Dec 6 09:59 0003_3godown.wav
-rw-r--r-- 1 root root 144200 Dec 6 09:59 0004_4godown.wav
Files are good too: playing them manually one by one proves that they are properly cut and named.
Any ideas?