Displaying 2 results from an estimated 2 matches for "current_presence".
2015 Jun 09
2
Manipulate extension state in 1.8.x
Hi
Is there any way to set the presence state of a peer to in-use in asterisk
1.8?
The idea is to integrate DND buttons on phones to BLF.
Regards
--
Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)161 660 2350
f: +44 (0)161 660 9825
e: ish at pack-net.co.uk
w: http://www.pack-net.co.uk
Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
2015 Jun 09
0
Manipulate extension state in 1.8.x
You can use a custom device state to do it.
[dnd]
;DND Toggle
exten => *363,1,Answer()
same =>
n,Set(CURRENT_PRESENCE=${DEVICE_STATE(Custom:DND${CHANNEL(peername)})})
same => n,GotoIf($[${CURRENT_PRESENCE}=NOT_INUSE]?*78,1:*79,1)
;DND On
exten => *78,1,NoOP(Turning DND On)
same => n,Set(DEVICE_STATE(Custom:DND${CHANNEL(peername)})=BUSY)
same => n,Playback(do-not-disturb&enabled)
sa...