Identifying Endpoints

Hi.

I am not sure about identifying endpoints. I can see this from the console:

asterisk-2018*CLI> pjsip show identifiers
Identifier Names:
name not specified
ip
username
anonymous
auth_username
header

I have this in my config file:
endpoint_identifier_order=ip,username

In Explaination for Identify this is stated:
Basically the module load order, and your configuration will both determine whether you identify by IP or by user.

Could you please tell me, what exactly my current identify order is and why?

The “pjsip show identifiers” command shows the available endpoint identifiers. The “pjsip show settings” will show the configured identifier order.

Is there a specific problem you are trying to solve?

Hi jcolp.
Thanks as always :slight_smile:

According to your tip, I have this order: endpoint_identifier_order : ip,username,anonymous

Indeed, I have the problem that my fax endpoint is not triggered, when the number where the fax is expected is called. Since I am on 13.22.0 I thought, I could try using

[fax_endpoint]
type=endpoint
identify_by=header

[fax_identify]
type=identify
endpoint=fax_endpoint
match_header=To: sip:00123456@sip.provider.tld

to redirect to this endpoint, when the fax number is called. But unfortunately this does not work…

In the endpoint_identifier_order I do not see “header” in the order. Do I have to load a specific modul to get this going?

Thanks.

While support has been added to allow the To header to be matched in recent versions, I don’t personally know how to use it or make it work. The support itself is part of res_pjsip_endpoint_identifier_ip.