Music on hold not playing first time caller is put on hold

Hi all,

Hopefully someone here can help me track down a strange issue we’re having:

Essentially, when call is made or comes in (Via SIP or IAX, we don’t have any other trunks), and the call is put on hold, the caller doesn’t hear the hold music.
If the call is taken off hold, then put back on hold, the music plays correctly.

We’re using Freepbx 2.4.0, with musiconhold module 2.4.0.1

The ‘moh’ commands in the asterisk CLI show:

moh show classes
Class: none
Mode: files
Directory: /dev/null
Use Count: 0
Class: default
Mode: files
Directory: /var/lib/asterisk/mohmp3/
Use Count: 0

There are 3 files in the mohmp3 directory, one of which is the one loaded from freepbx.

-- Call accepted by 192.168.1.10 (format ulaw)
-- Format for call is ulaw
-- IAX2/spinal-9 is ringing
-- <SIP/9041-082fb5c0> Playing 'beep' (language 'en')
-- IAX2/spinal-9 stopped sounds
-- IAX2/spinal-9 answered SIP/4827-082f9c68
-- Started music on hold, class 'default', on IAX2/spinal-9 -- Stopped music on hold on IAX2/spinal-9 -- Started music on hold, class 'default', on IAX2/spinal-9 -- Stopped music on hold on IAX2/spinal-9

Has anyone any idea how I can track this down?

Regards,
Stephen

Nobody’s seen this before?
Could it be an RTP timing issue? (Though we do have ztdummy installed)

In case anyone’s wondering: This problem was due to 2 .sln files in /var/lib/asterisk/mohmp3.
Seemed that asterisk couldn’t play them and was silently failing. Next time the call was put on hold it jumped down to the other file in that directory, an mp3, which was the intended hold music.