I have a simple setup with two asterisks (versions 13.23 and 16) exchanging device state using the following code in pjsip.conf:
The above is cut-and-paste from Joshua Colp’s article and it works great:
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.