We use ODBC for voicemail on Asterisk 20.1.0.
When we create a mailbox programmatically and insert the greeting and unavailable message into the database, it works great for leaving voicemail, both the greeting and unavailable message are played where appropriate.
However, the Directory Application will not play the programmatically database inserted greeting until after the mailbox has been accessed using the VoiceMail Application at least once. Before you access the mailbox using VoiceMail Application it just reads the letters of the name instead of playing the greeting.
I’ve tried things like using the AMI Command “VoicemailRefresh” as well as simply using the cli to “voicemail reload” but cannot get Directory to play the greeting until the mailbox is accessed at least once with VoiceMail.
I also tried manually inserting a msg_id in the form of unix timestamp and adding ‘-0000000x’, no luck there.
Assuming that VoiceMail is updating something the first time to get the greeting to play in Directory, any clue how to force this or insights into what’s happening?
Thanks for any help