List Info

Thread: Asterisk/voicemail




Asterisk/voicemail
user name
2007-11-13 14:43:50
Hello!

I am doing this thing.. i have to take one attachment .WAV from an email, and take it an put it in the folder that correspond to it extention... (/var/spool/asterisk/voicemail/default/105/INBOX for example..) i could get the .wav with this thing.. ripMIME... an whith sox i convert it to .gsm, but my problem is that i have to create the .txt that the asterisk voicemail needs to interpret the message, i mean there is all the information about the mess... i mean, from who, what time, etc etc,,,,

example: (this is a real thing.. ... i have 6 mes...each one have a .txt file....)

rootcentral:/var/spool/asterisk/voicemail/default/107/INBOX# ls
msg0000.gsm    msg0001.gsm   msg0002.gsm    msg0003.gsm    msg0004.gsm  msg0005.gsm
msg0000.txt      msg0001.txt      msg0002.txt      msg0003.txt      msg0004.txt  msg0005.txt
msg0000.wav    msg0001.wav    msg0002.wav    msg0003.wav    msg0004.wav  msg0005.wav
msg0000.WAV  msg0001.WAV  msg0002.WAV  msg0003.WAV  msg0004.WAV  msg0005.WAV

this is msg0004.txt  
rootcentral:/var/spool/asterisk/voicemail/default/107/INBOX# cat msg0004.txt
;
; Message Information file
;
[message]
origmailbox=107
context=macro-stdexten
macrocontext=DefaultOutgoingRule
exten=s-BUSY
priority=6
callerchan=SIP/107-b6b00468
callerid="Aneury Disipulo" <107>;
origdate=Tue Oct 30 06:21:10 PM AST 2007
origtime=1193782870
category=
duration=47


------------------
I need to find a way to generate this file for files.wav that i want to put into this folder....

CAN SOMEONE HELP???


Luisa Peralta J.




Express yourself instantly with MSN Messenger! MSN Messenger
Re: Asterisk/voicemail
country flaguser name
United States
2007-11-13 15:02:32
what are you trying to do you have not explaind it
properly.. are you trying 
to send the same vm to multi users ?


On November 13, 2007 12:43:50 pm Luisa Peralta wrote:
> Hello!
>
> I am doing this thing.. i have to take one attachment
.WAV from an email,
> and take it an put it in the folder that correspond to
it extention...
> (/var/spool/asterisk/voicemail/default/105/INBOX for
example..) i could get
> the .wav with this thing.. ripMIME... an whith sox i
convert it to .gsm,
> but my problem is that i have to create the .txt that
the asterisk
> voicemail needs to interpret the message, i mean there
is all the
> information about the mess... i mean, from who, what
time, etc etc,,,,
>
> example: (this is a real thing.. ... i have 6
mes...each one have a .txt
> file....)
>
> rootcentral:/var/spool/asterisk/voicemail/default/107/INB
OX# ls
> msg0000.gsm    msg0001.gsm   msg0002.gsm    msg0003.gsm
   msg0004.gsm 
> msg0005.gsm msg0000.txt      msg0001.txt     
msg0002.txt      msg0003.txt 
>     msg0004.txt  msg0005.txt msg0000.wav    msg0001.wav
   msg0002.wav   
> msg0003.wav    msg0004.wav  msg0005.wav msg0000.WAV 
msg0001.WAV 
> msg0002.WAV  msg0003.WAV  msg0004.WAV  msg0005.WAV
>
> this is msg0004.txt
> rootcentral:/var/spool/asterisk/voicemail/default/107/INB
OX# cat
> msg0004.txt ;
> ; Message Information file
> ;
> [message]
> origmailbox=107
> context=macro-stdexten
> macrocontext=DefaultOutgoingRule
> exten=s-BUSY
> priority=6
> callerchan=SIP/107-b6b00468
> callerid="Aneury Disipulo" <107>
> origdate=Tue Oct 30 06:21:10 PM AST 2007
> origtime=1193782870
> category=
> duration=47
>
>
> ------------------
> I need to find a way to generate this file for
files.wav that i want to put
> into this folder....
>
> CAN SOMEONE HELP???
>
>
>
> Luisa Peralta J.
>
>
>
>
>
____________________________________________________________
_____
> Express yourself instantly with MSN Messenger! Download
today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471
ave/direct/01/



-- 
Welcome to the World. An the World gets smaller.

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

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

Re: Asterisk/voicemail
country flaguser name
United States
2007-11-13 21:09:27
Well I presume you have some script already taking the WAV
attachment from
the email.  If you already have this, it should be trivial
to create the
text file.  Most of the fields are not required, and you can
tell which
ones by quick experimentation.  I am afraid you will have to
write the
script, though.

If my presumption is bad you might start with procmail...

j

On Tue, 13 Nov 2007, Luisa Peralta wrote:

> Hello!
>
> I am doing this thing.. i have to take one attachment
.WAV from an email, and take it an put it in the folder that
correspond to it extention...
(/var/spool/asterisk/voicemail/default/105/INBOX for
example..) i could get the .wav with this thing.. ripMIME...
an whith sox i convert it to .gsm, but my problem is that i
have to create the .txt that the asterisk voicemail needs to
interpret the message, i mean there is all the information
about the mess... i mean, from who, what time, etc etc,,,,
>
> example: (this is a real thing.. ... i have 6
mes...each one have a .txt file....)
>
> rootcentral:/var/spool/asterisk/voicemail/default/107/INB
OX# ls
> msg0000.gsm    msg0001.gsm   msg0002.gsm    msg0003.gsm
   msg0004.gsm  msg0005.gsm
> msg0000.txt      msg0001.txt      msg0002.txt     
msg0003.txt      msg0004.txt  msg0005.txt
> msg0000.wav    msg0001.wav    msg0002.wav   
msg0003.wav    msg0004.wav  msg0005.wav
> msg0000.WAV  msg0001.WAV  msg0002.WAV  msg0003.WAV 
msg0004.WAV  msg0005.WAV
>
> this is msg0004.txt
> rootcentral:/var/spool/asterisk/voicemail/default/107/INB
OX# cat msg0004.txt
> ;
> ; Message Information file
> ;
> [message]
> origmailbox=107
> context=macro-stdexten
> macrocontext=DefaultOutgoingRule
> exten=s-BUSY
> priority=6
> callerchan=SIP/107-b6b00468
> callerid="Aneury Disipulo" <107>
> origdate=Tue Oct 30 06:21:10 PM AST 2007
> origtime=1193782870
> category=
> duration=47
>
>
> ------------------
> I need to find a way to generate this file for
files.wav that i want to put into this folder....
>
> CAN SOMEONE HELP???
>
>
>
> Luisa Peralta J.
>
>
>
>
>
____________________________________________________________
_____
> Express yourself instantly with MSN Messenger! Download
today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471
ave/direct/01/

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

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

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )