Hi,

I thought of this but I don't know where to intercept the file to convert it. 
The email is automatically sent, this is configured in voicemail.conf. I tried 
to change the mailcmd with a custom script thinking I would get the parameters 
passed to sendmail but it doesn't work. Has anybody an idea what the mail 
sending mechanism is?

Regards
vincent

De : [email protected] 
[mailto:[email protected]] De la part de Danny Nicholas
Envoyé : mercredi, 11. mars 2009 14:35
À : 'Asterisk Users Mailing List - Non-Commercial Discussion'
Objet : Re: [asterisk-users] VLC



________________________________
From: [email protected] 
[mailto:[email protected]] On Behalf Of Bex Vincent
Sent: Wednesday, March 11, 2009 3:57 AM
To: [email protected]
Subject: [asterisk-users] VLC

Hi All,

When our users receive a voicemail we send it attached to an email. It used to 
work fine, encoded in wav49 and read by Windows media player. Recently the 
default player in the company has become VLC which is unable to read wav49. I 
am trying to use OGG/VORBIS instead of wav49. I can't get it working:

In voicemail.conf:

format = ogg

The result is as follow:

[Mar 11 09:42:17] WARNING[24867]: format_ogg_vorbis.c:527 ogg_vorbis_seek: 
Seeking is not supported on OGG/Vorbis streams!
    -- x=0, open writing:  
/var/spool/asterisk/voicemail/default/0213149689/tmp/V2adNF format: ogg, 
0x81ec648
    -- User hung up
[Mar 11 09:42:25] WARNING[24867]: format_ogg_vorbis.c:533 ogg_vorbis_tell: 
Telling is not supported on OGG/Vorbis streams!
[Mar 11 09:42:25] WARNING[24867]: format_ogg_vorbis.c:514 ogg_vorbis_trunc: 
Truncation is not supported on OGG/Vorbis streams!
    -- Recording was 0 seconds long but needs to be at least 2 - abandoning

Nothing gets recorded in the file.

Has anybody done this before? Either get ogg work with voicemail or get VLC to 
read wav49.

Cheers
Vincent

Why don't you just install SOX and convert the file that way?  You could just 
do a command like this
System(/usr/bin/sox in.ogg out.mp3)
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to