Manually set extension states
Hello,
I have a custom application where I want certain events to trigger extension states automatically. For example, I'd like to be able to say extension 3200 is busy and get the counter started without actually generating a telephone call. Then I'd like to be able to mark it offline, online, inuse, busy, etc manually either by dbset or some other external script.
In addition, I'd really like to make 4-5 different "states' an extension can be in and have the whole box change color (like busy->idle, but more states).
Is this possible?
Thanks,
Brett
I have a custom application where I want certain events to trigger extension states automatically. For example, I'd like to be able to say extension 3200 is busy and get the counter started without actually generating a telephone call. Then I'd like to be able to mark it offline, online, inuse, busy, etc manually either by dbset or some other external script.
In addition, I'd really like to make 4-5 different "states' an extension can be in and have the whole box change color (like busy->idle, but more states).
Is this possible?
Thanks,
Brett
Comments
I am doing a quite similar things on my asterisk and am having some issue with my users states.
I am using Adhearsion (a fully featured framework using ruby) to logon / logoff my user on a device. But The thing is I have no idea on how to change or set my user's state so that I can see him online or offline on the FOP2 web interface. When I'm using my script, the user is logged on the device but on the interface he still grey (shown as offline).
Where is this state data stored in the astdb? or how can I do to be able to reflect my user's real state?
Thanks for your help
Here is the user event needed to change presence state:
At the same time you must set that state in the astdb if you want it to be persistent:
The best way to play with your custom states is to start fop2_server in debug mode level 15
Best regards,