For one of our WebRTC apps we’re allowing multiple registrations to a single PJSIP endpoint.
I’m trying to dial a specific registration from the list of available registrations.
Just dialing the endpoint works fine using PJSIP_DIAL_CONTACTS, all registered peers receive the call. If I dial just the endpoint, the first registration receives the call.
However, I need to cherry pick a specific registration.
I tried, as an example, for a known registered endpoint’s IP address and RPORT:
Dial(PJSIP/endpoint/sip:endpoint@1.2.3.4:5060)
Note that while I changed the IP address and RPORT for this port, the public IP and PORT is correct in my actual dial string.
Which results in a long delay and then CHANUNAVAIL.
I also tried:
Dial(PJSIP/endpoint@1.2.3.4:5060)
Which results in endpoint 1.2.3.4:5060 was not found.
So I’m clearly missing something here, any advice would be greatly appreciated.
Will dial the given URI, using the given endpoint. That is how PJSIP_DIAL_CONTACTS also works. If it’s not working, then the URI isn’t correct. Double check, ensure that it’s the right transport type, look at the PJSIP logger.