I’m trying to set up a bunch of grandstream phones. Right now, just two. Here’s the config:
;; ====== Templates ====
grandstream-auth
type = auth
auth_type = userpass
password = 0000
grandstream-endpoint
type = endpoint
context = grandstream
dtmf_mode = rfc4733
disallow = all
allow = ulaw
direct_media = no
;direct_media = yes
tos_audio = ef
tos_video = af41
cos_audio = 5
cos_video = 4
aors = grandstream
; ========= Common ==========
[grandstream]
type = aor
max_contacts = 2
; ===== endpoints and auth ========
185
auth = 185
**** EDIT *** for some reason the inheritance is not displayed
*** should be 185 parens grandstream-endpoint parens
185
**** 185 parens grandstream-auth parens ***
username = 185
186
auth = 186
186
username=186
And I’m getting these errors:
res_pjsip_registrar.c:1016 find_registrar_aor: AOR ‘185’ not found for endpoint ‘185’
res_pjsip_registrar.c:1016 find_registrar_aor: AOR ‘186’ not found for endpoint ‘186’
The sip username for the grandstream phones is 185 and 186. I would expect that pjsip would look for AOR “grandstream”.
pjsip show endpoint 185
…
Endpoint: 185 Unavailable 0 of inf
InAuth: 185/185
Aor: grandstream 2
Why would it try to find AOR 185 ?
When the phones try to register, the match is the name of the endpoint, correct ?
The user portion is “eggowaffles”, so Asterisk attempts to look up an endpoint called “eggowaffles” in its configuration.
So here the user portion is 185, and there’s an endpoint 185. And the endpoint says use AOR grandstream.
How do I have this wrong ?