I’m thinking about dedicating a specific endpoint to “un-associated” SIP hardphones. By “un-associated”, I mean phones not yet associated to any useful phone number.
This specific endpoint should relate 0, 1 or more SIP AoR, eeach AoR being attached to an “un-associated” SIP hardphone.
I would like Asterisk to be able to send a SIP Notify request to a single SIP AoR.
Is it possible to do that (with Asterisk 22 or later) ? I’ve seen `pjsip send notify` accepts a URI argument but when using it (with parts of pjsip show contacts output), I got:
WARNING[10426]: res_pjsip_notify.c:760 notify_uri: No default outbound endpoint set, can not send NOTIFY requests to arbitrary URIs
In my 22.7.0 version, default_outbound_endpoint is set with:
No I don’t have any endpoint named “default_outbound_endpoint”.
Setting “default_outbound_endpoint=1234” (where 1234 is the name of actual endpoint) in pjsip.conf’s general section, leave this “default_outbound_endpoint : default_outbound_endpoint” line unchanged in “pjsip show settings”, after an Asterisk restart.
Thanks for sharing this. The important detail here is that default_outbound_endpoint belongs in the [global] section of pjsip.conf, not [general].
Once it points to a valid configured endpoint, pjsip send notify can use the URI to target the specific contact/AoR.
This is particularly useful for deployments where multiple unassociated hardphones share the same endpoint configuration and you need to send NOTIFY selectively to one registered contact.
The distinction between endpoint, AoR and contact is important here, since the contact represents the actual registered device while the AoR handles the registration association.