PJSIP endpoint identification with domain

Hello,

After reading [1], I would like to better understand how identification with domains occurs.
More precisely, it was asked if FQDN could be used in the “ip” endpoint identifier like this:

[itsp]
type=identify
endpoint=itsp
match=host1.itsp.example.com

At the moment, I can’t experiment with any ITSP implementing the above so I’m inclined to ask here.

How does the above matching works ?
I was thinking of the following steps.
Are these correct ?

A. When PJSIP reloads its configuration, DNS is queried for host1.itsp.example.com.
B. DNS replies with A record value of 1.2.3.4 and a TTL value
C. Asterisk records this 1.2.3.4 resolution and updates it according received TTL value
D. When any SIP message comes in, Asterisk reads From field and look for 1.2.3.4 (ie does not look for host1.itsp.example.com)

[1] Identifying an endpoint in PJSIP ⋆ Asterisk

Best regards

It resolves it, according to SRV (if enabled) and A record. It does not update/refresh it automatically. It does not examine the From header, it uses the ACTUAL source IP address of the packet itself.

1 Like

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