----- Original Message -----
> From: "shalu dhamija" <shalu.dhamija at rancoretech.com>
> To: "asterisk-dev" <asterisk-dev at lists.digium.com>,
"asterisk-users"
> <asterisk-users at lists.digium.com>
> Sent: Friday, January 13, 2012 3:56:45 AM
> Subject: [asterisk-users] odbc storage for video message
> Hello,
> I am using ODBC storage for the message deposited through voicemail()
> application. Everything works fine for the audio message if the
> format given in voicemail .conf is any audio format. e.g.
> in voicemail.conf give the format as
> format=gsm
> This case works fine.
> But if I give the following format in voicemail.conf
> format=h263|gsm
The first format specified in the format list is the 'primary' format
the voicemails are stored in. Some preference is given to the first format for
certain operations. With IMAP and ODBC backends, *only* the first format
specified is used.
> And no video codec is sent from the phone, then the audio message is
> not stored in the database. I am getting the following warning:
> [Jan 13 15:14:17] VERBOSE[27656] app_voicemail.c: -- Recording was 0
> seconds long but needs to be at least 1 - abandoning
> Although the nessage deposited is of duration of around 10-15
> seconds.
Since no video was negotiated, nothing is recorded in the h263 file that
voicemail attempts to create. Hence the reason why the recording was dropped.
If you specify gsm as your first codec, you would (at least on the file system)
record the voicemails. However, you won't store the h263 file on the ODBC
backend - the gsm file will be stored in the database.
As it is, storing video messages for either IMAP / ODBC backends in
app_voicemail is going to run into similar problems, as the video / audio are
stored in separate files. This is a limitation of app_voicemail that has not
been addressed - as it is, storing video related messages is best supported
using the file system.
> And If i send audio and video codecs both then one message gets
> stored in the database but I am not able to retrive that message.
> Please suggest waht changes needs to be done for enabling the storage
> of video messages in database as well.
> Regards,
> Shalu