Rod,

Here is my macro for this:

[macro-sipexten]
exten => a,1,VoicemailMain(${ARG1})
exten => a,2,Hangup()
exten => s,1,DBGet(NATIMEOUT=Features/${EXTEN}/NATIMEOUT)
exten => s,2,Dial(${ARG2},${NATIMEOUT})
exten => s,3,Goto(s-${DIALSTATUS},1)
exten => s,102,Goto(s,350)
exten => s,350,SetVar(NATIMEOUT=30)
exten => s,351,Goto(s,2)

As you can see it picks it up from DB with default being 30secs if no DB
entry exist.


 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:asterisk-users-
> [EMAIL PROTECTED] On Behalf Of Rod Bacon
> Sent: Monday, 18 April 2005 15:58
> To: asterisk-users@lists.digium.com
> Subject: [Asterisk-Users] Dynamic Dialplan - Turn VM on/off?
> 
> G'day. I've been working with * for some time now, but mostly from a
> enterprise perspective. I've just setup my own box at home and want to
> enable some more "home user" type functionality.
> 
> Does anyone have a trick to allow the dynamic modification of the
> dialplan by users? I want the ability to switch voicemail on/off (or
at
> least alter the timeout).
> 
> In essence, I want to simulate the act of manually turning an
answering
> machine on when you leave home (for my wife).
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users


This message (and any associated files) is intended only for the use of the 
individual or entity to which it is addressed and may contain information that 
is confidential, subject to copyright or constitutes a trade secret. If you are 
not the intended recipient you are hereby notified that any dissemination, 
copying or distribution of this message, or files associated with this message, 
is strictly prohibited. If you have received this message in error, please 
notify us immediately by replying to the message and deleting it from your 
computer. Messages sent to and from us may be monitored... 

Internet communications cannot be guaranteed to be secured or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. Therefore, we do not accept responsibility for 
any errors or omissions that are present in this message, or any attachment, 
that have arisen as a result of e-mail transmission. If verification is 
required, please request a hard-copy version. Any views or opinions presented 
are solely those of the author and do not necessarily represent those of the 
company.


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

Reply via email to