Hello,
I am very new to astericks and somehow i installed and configured it,
version : Asterisk 19.5.0
pjsip.conf
[ben]
type=endpoint
context=office-phones
disallow=all
allow=ulaw
auth=ben-auth
aors=ben
[ben-auth]
type=auth
auth_type=userpass
username=ben
password=samuel
[ben]
type=aor
max_contacts=5
;-----------------------------------------
[samuel]
type=endpoint
context=office-phones
disallow=all
allow=ulaw
auth=samuel-auth
aors=samuel
[samuel-auth]
type=auth
auth_type=userpass
username=samuel
password=password
[samuel]
type=aor
max_contacts=5
extensions.conf
[office-phones]
exten => 9001,1,Dial(PJSIP/alice)
exten => 9002,1,Dial(PJSIP/samuel)
Now my sip client installed on both android phones are registered
instance-20220712-1205*CLI> pjsip show aors
==========================================================================================
Aor: ben 5
Aor: greeshma 5
Aor: samuel 5
Objects found: 3
instance-20220712-1205*CLI> pjsip show endpoints
==========================================================================================
Endpoint: ben Unavailable 0 of inf
InAuth: ben-auth/ben
Aor: ben 5
Endpoint: greeshma Unavailable 0 of inf
InAuth: greeshma-auth/greeshma
Aor: greeshma 5
Endpoint: samuel Unavailable 0 of inf
InAuth: samuel-auth/samuel
Aor: samuel 5
Objects found: 3
instance-20220712-1205*CLI> pjsip show aors
==========================================================================================
Aor: ben 5
Contact: ben/sip:ben@188.236.202.5:54504;ob 6cf4960fda NonQual nan
Aor: greeshma 5
Aor: samuel 5
Contact: samuel/sip:samuel@188.236.202.5:57735;ob 4466a639f0 NonQual nan
Objects found: 3
instance-20220712-1205*CLI> dialplan show office-phones
[ Context 'office-phones' created by 'pbx_config' ]
'9001' => 1. Dial(PJSIP/alice) [extensions.conf:867]
'9002' => 1. Dial(PJSIP/samuel) [extensions.conf:868]
'9003' => 1. Dial(PJSIP/greeshma) [extensions.conf:869]
-= 3 extensions (3 priorities) in 1 context. =-
currently i am trying to call 9002 from the sip client 9001, and the client 9002 is not ringing(not showing anything in console).
Anyone please help me to fix this issue.
Regards,
Ben