[asterisk-biz] Question about adding Extensions programmatically

Dave Phillips Dave at zarts.com
Thu Jul 10 16:26:31 CDT 2008


Okay, here's the thing and I probably should have included this in the
previous post:

1.  I'm using PBXInAFlash distribution
2.  I'm not able to modify the asterisk server itself at this time (due to
my lack of understanding of the whole thing) however, I AM able to modify
the mySQL asterisk database utilizing a language that I AM familiar with.
3.  I'm looking for a solution where I can just insert the necessary rows
into the asterisk DB and/or FTP the necessary file (unavail.wav) into a
specific folder on the asterisk server, as I'm doing all this REMOTELY from
another server.

Is this even possible?

Thanks!

Dave
-----Original Message-----
From: asterisk-biz-bounces at lists.digium.com
[mailto:asterisk-biz-bounces at lists.digium.com] On Behalf Of Alistair
Cunningham
Sent: Thursday, July 10, 2008 4:11 PM
To: Commercial and Business-Oriented Asterisk Discussion
Subject: SPAM-LOW: Re: [asterisk-biz] Question about adding Extensions
programmatically

Dave,

I'd suggest building the normal mailbox structure under 
/var/spool/asterisk/voicemail, and in each mailbox directory make a 
symlink called unavail.wav pointing to your system recording file. For 
example:

/var/spool/asterisk/voicemail/default/100/greeting.wav -> 
/opt/yourcode/master.wav

Alistair Cunningham
+1 888 468 3111
+44 20 799 39 799
sip:acunningham at integrics.com
http://integrics.com/


Dave Phillips wrote:
> Please forgive me if this is the wrong list as this is my first post:
> 
>  
> 
> I'm wanting to add an extension to the asterisk database programmatically,
> and I am also wanting to set the announcement message for the voicemail to
> be a system recording (basically I'll be dynamically adding extensions and
> all will have the same announcement message).
> 
>  
> 
> Has anyone done something like this before?  If so (or even if not) can
> anyone point me in the right direction for details on which tables I need
to
> add records to and also how to set the announcement message to be a system
> recording?
> 
>  
> 
> The extensions are only going to be used for voicemail, and will not be
used
> to dial out or for a live person to be answering.
> 
>  
> 
> I have found some of the tables where I need to modify to add the
extension,
> but I just want to make sure I don't leave anything important out.  And I
> haven't yet figured out how to set the announcement message up either.
> 
>  
> 
> Thanks in advance for your help!
> 
>  
> 
> Sincerely,
> 
>  
> 
> Dave Phillips
> 
>  
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-biz mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-biz

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

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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





More information about the asterisk-biz mailing list