RE: [Asterisk-Users] Dynamic Dialplan - Turn VM on/off?
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
Re: [Asterisk-Users] Dynamic Dialplan - Turn VM on/off?
Thanks Boris. I think I can follow that logic! - Original Message - From: Boris Bakchiev [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Monday, April 18, 2005 4:17 PM Subject: RE: [Asterisk-Users] Dynamic Dialplan - Turn VM on/off? 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 =he individual or entity to which it is addressed and may contain =nformation that is confidential, subject to copyright or constitutes a =rade secret. If you are not the intended recipient you are hereby =otified that any dissemination, copying or distribution of this =essage, or files associated with this message, is strictly prohibited. =f you have received this message in error, please notify us immediately =y replying to the message and deleting it from your computer. Messages =ent to and from us may be monitored... Internet communications cannot be guaranteed to be secured or error-free =s information could be intercepted, corrupted, lost, destroyed, arrive =ate or incomplete, or contain viruses. Therefore, we do not accept =esponsibility for any errors or omissions that are present in this =essage, or any attachment, that have arisen as a result of e-mail =ransmission. If verification is required, please request a hard-copy =ersion. Any views or opinions presented are solely those of the author =nd 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 ___ 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
Re: [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). Lots of different ways to do those things... here's one basic example: ; toggle the ivr by dialing this extension exten = 3950,1,DBget(ISIVRON=FEAT/ivron) ; if success, step 2, else 102 exten = 3950,2,GotoIf(${ISIVRON} == yes?3:102) exten = 3950,3,DBdel(FEAT/ivron) exten = 3950,4,Background(npi-ivroff) exten = 3950,5,Hangup exten = 3950,102,DBput(FEAT/ivron=yes) exten = 3950,103,Background(npi-ivron) exten = 3950,104,Hangup Then insert something in your dialplan statements to read the DBget values, and branch as appropriate. That example essentially turns an IVR on/off by dialing extn 3950. ___ 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