PJSIP: How to customize AOR AND AUTH section name?

Because I cannot use duplicate name due to parser I have to customize them, but I get WARNING[3248]: res_pjsip_registrar.c:1073 find_registrar_aor: AOR '' not found for endpoint '9002'

With this config:

[9002]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
allow_subscribe=yes
transport=transport-udp
identify_by=auth_username
auth=9002auth
aors=9002aor
[9002auth]
type=auth
auth_type=userpass
password=9002
username=9002
[9002aor]
type=aor
qualify_timeout=4.0
qualify_frequency=50
max_contacts=1

and this one is working :

[9001]
type=endpoint
context=from-internal
disallow=all
allow=ulaw; alaw,gsm,g729
allow_subscribe=yes
transport=transport-udp
identify_by=auth_username
auth=9001
aors=9001
[9001]
type=auth
auth_type=userpass
password=9001
username=9001
[9001]
type=aor
qualify_timeout=4.0
qualify_frequency=50
max_contacts=1

Thanks a lot.

The name of an AOR has meaning, and the device registering uses it. Most devices assume that the username is the name of the AOR and do not allow configuration of this.

1 Like

All right then, thanks.

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