Disable a context?

Hi Guys,

Is there a way to disable a context in my dial plan just by dialing a feature code? Example, I have a context in extensions.conf file which is time based. I wanna disable the context by dialing a feature code in my IP Phone instead of logging in to asterisk cli.


Technically you don’t disable a context, you just allow or restrict access to a context to sip devices, IAX2

You could start all the extensions at priority 2 and have priority 1 be a wild card match with a conditional (ExecIf, GotoIf) controlled by a global flag.

Hi, Thanks for the reply. Can you give me sample on how to do that?