If a physical extension is not connected to the main extension, when the dnd is activated from the NethCTI the SIP status is not configured to BUSY so the user, despite being in DND, is not busy at the SIP level on his BLF.
Steps to reproduce
configure a user with WebRTC on the main extension and physical phone on 91XXX
Set DND on from NethCTI
check Asterisk hint
nethvoice*CLI> core show hint 204
204@ext-local : PJSIP/204&PJSIP/9120 State:Idle Presence:dnd Watchers 3
nethvoice*CLI> core show hint 91204
91204@ext-local : PJSIP/91204&Custom:D State:Busy Presence:not_set Watchers 0
To set and unset SIP presence use Asterisk AMI function Set:
If a physical extension is not connected to the main extension, when the dnd is activated from the NethCTI the SIP status is not configured to BUSY so the user, despite being in DND, is not busy at the SIP level on his BLF.
Steps to reproduce
nethvoice*CLI> core show hint 204 204@ext-local : PJSIP/204&PJSIP/9120 State:Idle Presence:dnd Watchers 3
nethvoice*CLI> core show hint 91204 91204@ext-local : PJSIP/91204&Custom:D State:Busy Presence:not_set Watchers 0
To set and unset SIP presence use Asterisk AMI function Set:
Set("PJSIP/91275-000015d4", "DEVICE_STATE(Custom:DEVDND91275)=NOT_INUSE")
Set("PJSIP/91275-000015d3", "DEVICE_STATE(Custom:DEVDND91275)=BUSY")