Conversion of voice mail into Asterisk voice mail format
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Conversion of voice mail into Asterisk voice mail format
Hi to all,
Hope you all will be fine. I want to send voice mail to Asterisk through email client. For this what i have done so far with the help of one of the senior member of this forum is to send voice mail to Asterisk folder i.e, where Asterisk stores all it's voice messages(/var/spool/asterisk/voicemail/brights/220/INBOX/) . The format with Astersik stores messages when you record a voice message to Asterisk by phone is different from the format when i send voice mail to asterisk by email client. So I want to know can any one help me on this topic, any idea or any help or any hint that how this can be done i.e, when you send voice mail to asterisk through email client Asterisk treats it as it is a recorded voice message by the phone to Asterisk.
There isn't anything Asterisk-specific in the voicemail files. They are "standard" audio files in their respective format.
Asterisk itself will usually save a voicemail in different formats, as governed by /etc/asterisk/voicemail.conf.
What format are your audio files?
WAV should be the easiest, Asterisk's own are: 16 bit mono 8kHz PCM.
Hi,
Thank you. Yes the voice mail that i send is also in wav format. I tell you the whole story that what i have been done so far
Actually i want to send voice email to asterisk through email client and the whole thing that i have just done with one of the senior member help i.e, send mail to asterisk/voicemail/brights/220/INBOX is a part of it because when we record a voice message to Asterisk it contains voice mail in this folder but it manages file like this
Now what we have done so far that when mail goes to asterisk through our procedure i.e., receive by sendmail and then filter by procmail and then go to Asterisk it store likes this
msg-5184-1.html
Voicemail277552.wav
and msg-5184-1.html contain things like
<HTML><table width="100%" style="border: 1px solid #215576;">
<tr>
<td style="padding: 3px;" nowrap>
This Email has Voice maill attached : <br>
</td>
</tr>
</table>
<br>
<HTML>
this si atest voice mail to see whether it is working or not<br>
<BR><hr>Msg sent via NetKarachi - http://www.netkarachi.com/</HTML>
</HTML>
Although it goes to folder where asterisk store messages for extension suppose if i record a message for extension 220, the Asterisk put it in (/var/spool/asterisk/voicemail/brights/220/INBOX)and then when i call to Asterisk it says you have a new email message, but when i send voice mail through email client and then call to asterisk it says you don't have any new email, so why it is saying this.So i think this means it's not only a matter of putting or sending file in Asterisk voice mail folder, something we have to do before sending it to the folder, may be i am wrong because i have no idea about it.
So please help me, any idea or hint or help or anything regarding this.
Hi,
Thank you. Yes i just have an idea but i don't no whether it will work or not, i will have to work out that which module asterisk run when we call to asterisk and the code and whatever procedure asterisk follows when we call and then try to run the same module at the time when send-mail receive mail, first it run the asterisk code and then send it to the INBOX folder, i think it will be code defineitely that asterisk run when we call it, what do you think will it work and do you know the module that Asterisk run when we call it.
Hi,
Hope you will be fine. Now what to do now is when voice mail is received by send mail then using procmail extaract the voicemail from the whole email, rename it to msgNNNN.wav, then create a normal text file and named it to msgNNNN.txt and it cantain the relevant material means when i call to Asterisk to record a voice message for extension 206 it stores the msg0000.txt file with the info.
So now if i send my voice mail to extension 220 i have to create a text file with the same info as above file contain but for extension 220, and then send it to INBOX folder. So this means that now i require another script that can do this thing.
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.