PJSIP: Identify Endpoint By Authentication Username?

Home » Asterisk Users » PJSIP: Identify Endpoint By Authentication Username?
Asterisk Users 2 Comments

Dear fellow list readers

This is the situation:

ISDN Devices => Patton ISDN to SIP GW => Asterisk PJSIP

The Patton GW resides on a dynamic IP address, so I cannot really use match=ip in the identify section.

The Patton does not send a line parameter.

The ISDN Devices behind the patton have different MSN and should be able to send them in the From: Header, so the default endpoint identification mechanism which matches the From username with the endplaint fails.

So what are the options to solve that issue?

I see the asterisk sending out a challenge and getting a proper reply from the patton, but then stills complains about the endpoint not matching.

According to the manual there is no

type=identify match=authentication_username

or similar.

Mit freundlichen Grüssen

-Benoît Panizzon-

I m p r o W a r e A G – Leiter Commerce Kunden

2 thoughts on - PJSIP: Identify Endpoint By Authentication Username?

  • There is no need for a separate “identify” object in this case. In the pjsip.conf “global” section set “endpoint_identifier_order” to include
    “auth_username” and in each endpoint’s section set “identify_by” to include
    “auth_username”.

    [global]
    endpoint_identifier_order = auth_username,username,ip,anonymous

    [endpoint_x]
    identify_by = auth_username

  • Hi George

    Thank you, I missed that config option, works perfectly!

    Mit freundlichen Grüssen

    -Benoît Panizzon-

    I m p r o W a r e A G – Leiter Commerce Kunden