No matching endpoint found when ids of endpoint and aor doesn't match username

I am creating endpoint, aor, and auth with different ids like shown below in pjsip.conf

[5588-agent-1012-endpoint]
type=endpoint
context=default
disallow=all
allow=ulaw,alaw
auth=5588-agent-1012-auth
aors=5588-agent-1012-aor

[5588-agent-1012-auth]
type=auth
auth_type=userpass
password=secure_password_here
username=1012

[5588-agent-1012-aor]
type=aor
max_contacts=5

I get error - No matching endpoint found, when I am trying to connect from Linphone

But having same ids for endpoint and aor, matching username works.

[1012]
type=endpoint
context=default
disallow=all
allow=ulaw,alaw
auth=1012
aors=1012

[1012]
type=auth
auth_type=userpass
password=secure_password_here
username=1012

[1012]
type=aor
max_contacts=5

I am using Asterisk realtime architecture. Above are my conf which I converted to realtime.

This would need to be in the user portion of the From header to match, or you enable authentication username based matching.

This would need to be in the user portion of the To on a REGISTER request.

Can you do this? Yes, if your endpoint supports it and you can make it produce the correct SIP signaling. It is simpler to just use the same name for each of them and has wide compatibility.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.