Manually set hint / extension status?

Hi everyone

I want to set up an extension that when I dial it’s number it will toggle a database value and announce whether the feature has been turned on or off which then in the back end affects how calls are handled (similar to a night switch)…

The database side I can handle fine - it will just be a bit/integer that will be 1 or 0 and I can write the dialplan to deal with this…

What I want to know is if it is possible to set the status of an extension to busy/free within asterisk as what I want to do is have a BLF button on a linksys SPA962 that will indicate the status of the setting (ie: go red when its turned on, green when it’s off or vice versa).

So basically - I dial an extension number (which will ultimately be achieved by pressing the BLF button), it will change a database value then set the status of the extension to reflect it…

Is this possible at all? Or is there some other way I can achieve this outcome other than using the hints / statuses?

Thanks!!

Yes. Have a look at devstate: voip-info.org/wiki/view/Aste … c+Devstate