Specification for extended Asterisk Manager actions and events to
set/delete DoNotDisturb, CallForward and UserInfo
=================================================================

Events
======

DND was activated for extension 206:
------------------------------------

Event: UserEvent
Privilege: user,all
UserEvent: SETDND
Exten: 206

or:

Event: UserEvent
Privilege: user,all
UserEvent: SETDND
206


DND was deactivated for extension 206:
------------------------------------

Event: UserEvent
Privilege: user,all
UserEvent: DELDND
Exten: 206

or:

Event: UserEvent
Privilege: user,all
UserEvent: DELDND
206


CallForward to 222 was activated for extension 206:
------------------------------------

Event: UserEvent
Privilege: user,all
UserEvent: SETCF
Exten: 206
Destination: 222

or:

Event: UserEvent
Privilege: user,all
UserEvent: SETCF
206
222


CallForward was deactivated for extension 206:
------------------------------------

Event: UserEvent
Privilege: user,all
UserEvent: DELCF
Exten: 206

or:

Event: UserEvent
Privilege: user,all
UserEvent: DELCF
206



"USERINFO" state was set/activated for extension 206:
------------------------------------

Event: UserEvent
Privilege: user,all
UserEvent: SETUSERINFO
Exten: 206
InfoText: Holiday until 1st July!

or:

Event: UserEvent
Privilege: user,all
UserEvent: SETUSERINFO
206
Holiday until 1st July!



"USERINFO" state was deactivated for extension 206:
------------------------------------

Event: UserEvent
Privilege: user,all
UserEvent: DELUSERINFO
Exten: 206

or:

Event: UserEvent
Privilege: user,all
UserEvent: DELUSERINFO
206


Actions
=======

Query states for all extensions:
------------------------------------

Action: CtiExtenState
Value: DND|CF|USERINFO
ActionID: 1234


Response: Success
ActionID: 1234
Message: CtiExtStatus data will follow


Event: CtiExtenStatus
ActionID: 1234
Exten: 200|0|0|0
Exten: 201|0|0|Holiday until 1st July!
Exten: 202|0|0|0
Exten: 204|1|0|0
Exten: 206|0|222|0
...

;Format: EXTEN|DND|CF|USERINFO


Set CallForward for 206 to 202
------------------------------

Action: CtiCF
Exten: 206
Value: 202


Delete CallForward for 206
--------------------------

Action: CtiCF
Exten: 206
Value: 0


Activate DND for 206
--------------------------

Action: CtiDND
Exten: 206
Value: 1

Deactivate DND for 206
------------------------------------

Action: CtiDND
Exten: 206
Value: 0
