Wish I could send pjsip notify to specific contact


So one of the great features of pjsip is the ability to have multiple contacts.

I make use of this for at least a couple extensions on every single deployment.

But now I am needing some granularity with notify commands.

It would be great to be able to specify a specific contact to send a pjsip send notify reboot endpoint 103-2 to only reboot the device on contact 2.

Of course this also means I need a way to know which device Asterisk thinks is contact 2.



Sending to a uri is supported. I believe something like the following should work:

pjsip send notify reboot uri sip:103@<ip addr>


That does work, and is probably the only real answer. because nothing ties a contact 1 to IP A and contact 2 to IP B.