Hello!
I’m following famous article Exchanging Device and Mailbox State Using PJSIP - Asterisk Documentation about exchanging device states.
Everything is works, but one thing bothering me a bit. I’m using schema with custom devstates and hints, so I want to exchange actually these states. But PUBLISH changes only hint state, but not actual devstate on other server. Means when I do on local
server
core show hints
I do see combined state with remote
server. Means if local devstate is NOT_INUSE and remote is BUSY, combined state is BUSY.
Is there a possibility to trigger also local devstate with this PUBLISH mechanism, and not only hint?
Config is quite straightforward
# Configuration for PJSIP to exchange device states
[neighbour_cc]
type=outbound-publish
server_uri=sip:neighbour@sip_server_remote:5060
event=asterisk-devicestate
[neighbour]
type=inbound-publication
event_asterisk-devicestate=neighbour
[neighbour]
type=asterisk-publication
devicestate_publish=neighbour
device_state=yes
device_state_filter=^Custom:
Both servers auth each other based on FQDN, so this part is working.
Asterisk 18.19.0
Thanks in advance!