[asterisk-dev] Navigating Voice Mail

Steve Wofford SW at uctrlit.com
Tue Dec 16 23:05:53 CST 2008


I did some poking around and found the following from the USB keydrive
that holds the VM:

A:\spa400vm\var\spool\voicemail\pbx-sipura-test\200\Old

10/09/2008  17:52    <DIR>          .
10/09/2008  17:52    <DIR>          ..
10/09/2008  17:52           413,760 msg0000.pcm
10/09/2008  17:52               219 msg0000.txt
10/27/2008  01:10           274,080 msg0001.pcm
10/27/2008  01:10               218 msg0001.txt
10/28/2008  19:40           255,200 msg0002.pcm
10/28/2008  19:40               223 msg0002.txt
11/19/2008  16:47           455,520 msg0003.pcm
11/19/2008  16:47               223 msg0003.txt
11/20/2008  17:38           446,080 msg0004.pcm
11/20/2008  17:38               223 msg0004.txt
11/24/2008  20:23           220,960 msg0005.pcm
11/24/2008  20:23               223 msg0005.txt
11/24/2008  21:51           156,000 msg0006.pcm
11/24/2008  21:51               216 msg0006.txt
12/06/2008  00:06           202,880 msg0007.pcm
12/06/2008  00:06               223 msg0007.txt
12/10/2008  17:42           137,600 msg0008.pcm
12/10/2008  17:42               223 msg0008.txt
              18 File(s)      2,564,071 bytes
               2 Dir(s)     120,262,656 bytes free

Why can't I just write a script that runs on the system to send these as
attachments as they come in? At which point I could then delete them.
The txt files could be used to create the email headers.

The only problems is that I have no idea how to code this and run the
script. I am sure I could figure it out  w/ some help, but needs some
directional assistance at this point.

TIA,

Steve

-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Tzafrir
Cohen
Sent: Tuesday, December 16, 2008 18:08
To: asterisk-dev at lists.digium.com
Subject: Re: [asterisk-dev] Navigating Voice Mail

[Editing for top-posting-avoidance sanity]

On Tue, Dec 16, 2008 at 05:18:38PM -0800, Steve Wofford wrote:
> > On Tuesday, December 16, 2008 17:03, Andre Courchesne wrote:
> > Steve Wofford wrote:
> > > Can anyone point me in the direction for navigating Voice Mail
based on 
> > > Asterisk. I am developing a Voice Mail to Email solution. I assume
to 
> > > use the following:
> > > 

[snip a reimplementation of voicemail to email]

> > Why go to all this trouble when asterisk already supports voicemail 
> > to e-mail?  Just configure your voicemail.conf correctly and the 
> > e-mail with attachement will be sent out.
> >
> Here's the deal. This is actually a Linksys SPA400 Voice Mail box 
> which is developed on Asterisk 1.0.7.

Here's a small question for fun and profit:
How many known remote holes are in the SIP channel of Asterisk 1.0.7?

> 
> I do not have direct access to the code on the box. I can telnet and 
> I get a CLI prompt, but not sure what to do at that point.

What CLI prompt exactly? Asterisk? Linux? (as root?)

Can you edit voicemail.conf ?
What you suggest is much more complicated. All you need is a local
command to relay mail outside. Which can be something as simple as ssmtp
to a near-by SMTP server. Theoretically it can even be a home-brewed
script that uses nc (netcat) or even telnet to send the bits to be
handled on a different computer.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir

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

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



More information about the asterisk-dev mailing list