Hi all,
i’m trying to understand these bases from pjsip.
I use the well known example :
[102]
type=endpoint
context=from-internal
disallow=all
allow=alaw
auth=102
aors=102
[102]
type=auth
auth_type=userpass
password=102
username=102
[102]
type=aor
max_contacts=2
Ok, when into my phone i give asterisk IP, login :102 pass 102 all is ok.
I have another phone with the same with 101 and i can make calls between 101 and 102.
But what i’d like to achieve is :
- using an id as login (example user001)
- to this user associate a name (example “john doe”)
- to this user associate an extention (example “101”)
This will be then more flexible to change the name or extention on a phone/person
I tried many combinations but then have registering issue, with no aor found or no endpoint.
I guess this is because i do not fully understand how endpoints/aor/auth are melted and related.
Any help will be appreciated, some clues or some samples !
Thanks