Hello
I have a simple setup with two asterisks (versions 13.23 and 16) exchanging device state using the following code in pjsip.conf:
[asterisk_1]
type=endpoint
;
[asterisk_1-devicestate]
type=outbound-publish
server_uri=sip:asterisk_2@x.x.x.x:5060
event=asterisk-devicestate
;
[asterisk_1]
type=inbound-publication
endpoint=asterisk_1
;
[asterisk_1]
type=asterisk-publication
devicestate_publish=asterisk_1-devicestate
device_state=yes
The above is cut-and-paste from Joshua Colp’s article and it works great:
https://wiki.asterisk.org/wiki/display/AST/Exchanging+Device+and+Mailbox+State+Using+PJSIP
Now that the two asterisks are exchanging device state I am hoping to put the information to use. As it stands now the the PUBLISH messages that arrive at the other instance get answered with 404 Not Found.
The trunk to our ITSP and the main business asterisk are on one server and most (but not all) of the SIP user devices are on the other. Is there a good way to have the device state of all the SIP phones available to both asterisk instances? This would be for the basic dialplan needs of the Dial() and Queue() applications to tell if a device on the other server is available or not.
Thank you!