Question On Pjsip.conf And Aors

Home » Asterisk Users » Question On Pjsip.conf And Aors
Asterisk Users 2 Comments

I have the following configuration…

[aor3]
type = aor max_contacts = 1
remove_existing = yes

[auth3]
type = auth username = 1004
password = SuperSecretProbation

[1004]
type = endpoint context = IS
transport = transport1
auth = auth3
aors = aor3
accountcode = 3
dtmf_mode = rfc4733
device_state_busy_at = 2
force_rport = no moh_passthrough = yes disallow = all allow = ulaw acl = acl1

When a register attempt is received, asterisk outputs…
[02/14 12:53:29.870] WARNING[7883] res_pjsip_registrar.c: AOR ‘1004’ not found for endpoint ‘1004’

If I change the aor3 to be 1004, everything works. As in [aor3] becomes [1004] and in the endpoint change aors = aor3 to be aors = 1004
Is there a setting I’m missing to allow the endpoint named 1004 to use an auth that doesn’t have the same 1004 name?

Dan

2 thoughts on - Question On Pjsip.conf And Aors

  • There isn’t a configuration option. AOR is a SIP concept, and in fact when you send a REGISTER you state which AOR you are registering to. Your REGISTER is therefore saying “add me to AOR 1004”. Since it’s not saying
    “add me to aor3” it doesn’t work. Some devices allow you to specify while others just assume that everything uses your username.

  • VGhhbmtzIEpvc2h1YQ0KDQpGcm9tOiBhc3Rlcmlzay11c2VycyA8YXN0ZXJpc2stdXNlcnMtYm91
    bmNlc0BsaXN0cy5kaWdpdW0uY29tPiBPbiBCZWhhbGYgT2YgSm9zaHVhIEMuIENvbHANClNlbnQ6
    IEZyaWRheSwgRmVicnVhcnkgMTQsIDIwMjAgMTowOSBQTQ0KVG86IEFzdGVyaXNrIFVzZXJzIE1h aWxpbmcgTGlzdCAtIE5vbi1Db21tZXJjaWFsIERpc2N1c3Npb24gPGFzdGVyaXNrLXVzZXJzQGxp c3RzLmRpZ2l1bS5jb20+DQpTdWJqZWN0OiBSZTogW2FzdGVyaXNrLXVzZXJzXSBRdWVzdGlvbiBv biBwanNpcC5jb25mIGFuZCBhb3JzDQoNCk9uIEZyaSwgRmViIDE0LCAyMDIwIGF0IDM6MDQgUE0g RGFuIENyb3BwIDxkYW5AYW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