You can use timeofday associations on "include =>" for the most elegant solution or, you can also use multiple extensions.conf and "#include" (not the same as "include =>" ) and asterisk -rx reload.
Mark On Mon, 1 Sep 2003, Rattana BIV wrote: > I have the same problem > > ----- Original Message ----- > From: "Mickey Binder" <[EMAIL PROTECTED]> > To: "Asterisk maillist (E-mail)" <[EMAIL PROTECTED]> > Sent: Monday, September 01, 2003 10:51 AM > Subject: [Asterisk-Users] Change include contexts runtime > > > > Hi there > > > > How do I change the dialplan runtime, if I for example wants all calls on > > the main number to be answered by a voicemail (when it is out-of-office > > hours). > > I want to be able to change the configuration by pressing a DTMF > combination > > e.g. *82. Can't figure out whether it is necessary to change contexts or > how > > to do it. > > > > I have read a lot of examples and config documentation, but I can't figure > > out how to do it. > > > > I know there are commands from the CLI to include and not include contexts > > but I can't get them to work. > > If i write 'include context in default' I can see by 'show dialplan' that > > 'context' is included in default. But if I want to include a context named > > office by typing 'include office in default' I just get 'No such command > > 'include office' (type 'help for help) > > > > regards > > Mickey Binder > > > > > > _______________________________________________ > > Asterisk-Users mailing list > > [EMAIL PROTECTED] > > http://lists.digium.com/mailman/listinfo/asterisk-users > > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
