I am having problems getting phone registered, following is the debug output and portion of the pjsip.conf file:
Apr 17 20:45:23] DEBUG[44075]: res_pjsip_endpoint_identifier_ip.c:128 ip_identify: No identify sections to match against
[Apr 17 20:45:23] DEBUG[44075]: res_pjsip_endpoint_identifier_user.c:106 username_identify: Could not identify endpoint by username ‘11111’
[Apr 17 20:45:23] NOTICE[44075]: res_pjsip/pjsip_distributor.c:246 log_unidentified_request: Request from ‘sip:11111@172.1.1.1’ failed for ‘172.1.1.2:49156’ (callid: 0023049a-00000000-90befd10-49c8b602@172.1.1.2) - No matching endpoint found
<— Transmitting SIP response (476 bytes) to UDP:172.1.1.2:49156 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.1.1.2:5060;rport;received=172.1.1.2;branch=z9hG4bKc19e3b2c
Call-ID: 0023049a-00000000-90befd10-49c8b602@172.1.1.2
From: sip:11111@172.1.1.1;tag=0023049a8bc8000484971540-8dcb8fcc
To: sip:11111@172.1.1.1;tag=z9hG4bKc19e3b2c
CSeq: 103 REGISTER
WWW-Authenticate:
realm=“asterisk”,nonce=“1397781923/6ac047db6872bf48b818554d00000000”,opaque=“6871e28800000000”,algorithm=md5,qop="auth"
Content-Length: 0
PJSIP.CONF
[11111]
type=endpoint
identify_by=username
username=11111
context=internal
transport=simpletrans
auth=11111
aors=11111
identify=identify
[11111]
type=auth
auth_type=userpass
username=11111
password=11111
[11111]
type=aor
contact=sip:11111@172.1.1.2:5060
max_contacts=1
[identify]
type=identify
endpoint=11111
username=11111
match=11111
match=172.1.1.2