Skip to main content

Special Mailbox

Posted by aponnath on Mon, 05/12/2014

I have some prerecorded greetings for special mailbox like operator etc and
would like to be able to replace the phone recorded greeting with my recorded
file. For the hell of me i can not find the file to replace, when i look in the debug
i see the file created but i cant find it.

[2014-05-12 15:28:23] VERBOSE[22323] app.c: -- x=0, open writing: /var/spool/asterisk/voicemail/default/3400/unavail.tmp format: wav, 0x7f742401bbb8
[2014-05-12 15:28:23] VERBOSE[22323] app.c: -- x=1, open writing: /var/spool/asterisk/voicemail/default/3400/unavail.tmp format: wav49, 0x7f7424014628
[2014-05-12 15:28:23] VERBOSE[22323] app.c: -- x=2, open writing: /var/spool/asterisk/voicemail/default/3400/unavail.tmp format: gsm, 0x7f7424003a38

so i guess it is stored in the odbc database (Mysql)

my questions are

a) how can i replace the message
b) do i have to use mysql to store greetings or can it be stored in directory
c) where can i find the default login for mysql

Thanks

Alex


Submitted by eeman on Tue, 05/13/2014 Permalink

you cant.... i am unsure why they chose to store recordings in the mysql database but it definitely eliminates the previous ability to replace audio recordings with professionally recorded ones. It also eliminated a work-around to light the MWI lamp on the phone by touching a fake msg001.txt file. That trick worked well for integration with other systems. I once had to integrate thirdlane with a company that paid for a rather complex IVR and voicemail platform. They had hooks that ran scripts on the thirdlane box to manipulate fake msg files to control the MWI even though the VM itself was housed on a separate machine.

Submitted by thirdlane on Tue, 05/27/2014 Permalink

I am considering making voicemail storage a user selectable systemwide option.(right now it is always db if the database is used for storing configuration.

alternatively we could probably provide some mechanism to manage (upload) recordings.

Your thoughts?

Submitted by cbbs70a on Wed, 07/02/2014 Permalink

What I did in a similar situation was modify the dial plan slightly. I played my custom greeting and then executed the VoiceMail command with the "s" silent option. It had the same effect that I think you're talking about. I took it a step further so the user could play a custom voicemail greeting based on the callerid which I think is a pretty cool feature.
FSD

Submitted by aponnath on Mon, 08/18/2014 Permalink

Alex,

I think a combination of both would be best. Ideally would be a system wide config which sets where recordings and messages are stored. But it would be even nicer to have the ability to override this option
on a per mailbox basis. I can see that you might want to store users in the db but the have all or some special ones in the regular file system.
Also the ability to use the web interface to go and upload , replace greetings which are stored in the database would be a handy feature as well

Thanks