nethesis / dev

Nethesis issue tracker
http://www.nethesis.it
4 stars 1 forks source link

NethCTI: with active DND SIP present must be BUSY #6213

Open andrea-marchionni opened 1 year ago

andrea-marchionni commented 1 year ago

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")