Edito
Voila voila, je refais mon infra…
Et j'ai donc envie de participer a une oeuvre commune :
Antoine.
Pub
Désolé de vous incommoder avec cela, c'est un mal aujourd'hui nécessaire. Je le souhaite juste utile, on verra.
Ceci est une ancienne révision du document !
core show hints
module show like devstate
dialplan set global DEVICE_STATE(Custom:truc) NOT_INUSE
fkey5=blf <sip:blfhint@10.255.255.254;user=phone>
// Query hint status on startup:
Action: Command
Command: core show hints
ActionID: shp-5-srv0513564E
Response: Follows
Privilege: Command
ActionID: shp
-= Registered Asterisk Dial Plan Hints =-
204 : SIP/204 State:Unavailable Watchers 0
203 : SIP/203 State:Idle Watchers 0
202 : SIP/202 State:Idle Watchers 0
201 : SIP/201 State:Unavailable Watchers 0
*280 : Custom:DAYNIGHT0 State:InUse Watchers 0
----------------
- 5 hints registered
--END COMMAND--
// Night-mode activated:
Event: ExtensionStatus
Privilege: call,all
Exten: *280
Context: app-daynight-toggle
Hint: Custom:DAYNIGHT0
Status: 1
StatusText: InUse
...
// Night-mode deactivated:
Event: ExtensionStatus
Privilege: call,all
Exten: *280
Context: app-daynight-toggle
Hint: Custom:DAYNIGHT0
Status: 0
StatusText: Idle
devstate list
la meme chose si on a besoin de jouer avec