Solved: Stumbling with SIP registration

In desperation I recreated all the three files and copied / pasted all the relevant details,

Registered first time. Starting to think that I should run the standard Asterisk server as opposed to AsteriskNow which appears to regenerate the conf files.

Nigel.

Greetings

Having done an install of AsterixNow on our old HP Proliant server, we are now attempting to provision a handset (a YeaLink SIP T-38G).

I’ve tried to use the simplest config working through some of the on-line tutorials and have created a new extensions.conf, sip.conf and pjsip.conf:

extensions.conf

[from-internal]
exten = 100,1,Answer()
same=n,Wait(1)
same=n,Playback(hello-world)
same=n,Hangup()

sip.conf

[general]
context=default
[6001]
type=friend
context=from-internal
host=dynamic
secret=6001
disallow=all
allow=ulaw

pjsip.conf

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

[6001]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=6001
aors=6001

[6001]
type=auth
auth_type=userpass
password=6001
username=6001

[6001]
type=aors
max_contacts=1

When I try to register the phone I get this:

[2018-02-10 12:33:11] WARNING[7175]: res_pjsip_registrar.c:678 find_registrar_aor: AOR ‘6001’ not found for endpoint ‘6001’

and the phone reports “Register failed”.

I’ve pored over as many examples as I can find but to no avail. Can anyone offer any suggestions please?

TIA

Nigel.

P.S.

I just tried restarting asterisk like this: /usr/sbin/asterisk -vvvvvv -g -dddddd -r and got the following:

=========================================================================
Connected to Asterisk 13.12.1 currently running on localhost (pid = 7141)
Core debug was OFF and is now 6.
[2018-02-10 12:41:08] DEBUG[11005]: manager.c:6313 process_message: Running action ‘Login’
[2018-02-10 12:41:08] DEBUG[11005]: manager.c:6313 process_message: Running action ‘Command’
[2018-02-10 12:41:08] DEBUG[11005]: manager.c:6313 process_message: Running action ‘Command’
[2018-02-10 12:41:08] DEBUG[11005]: manager.c:6313 process_message: Running action ‘Command’
[2018-02-10 12:41:13] DEBUG[7174]: res_pjsip/pjsip_distributor.c:267 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=121 (rdata0x7fdd80000948)
[2018-02-10 12:41:13] DEBUG[7174]: res_pjsip/pjsip_distributor.c:359 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-00000029 to use for Request msg REGISTER/cseq=121 (rdata0x7fdd80000948)
[2018-02-10 12:41:13] DEBUG[7175]: res_pjsip_endpoint_identifier_ip.c:128 ip_identify: No identify sections to match against
[2018-02-10 12:41:13] DEBUG[7175]: res_pjsip_endpoint_identifier_user.c:133 username_identify: Attempting identify by From username ‘6001’ domain ‘192.168.0.5’
[2018-02-10 12:41:13] DEBUG[7175]: res_pjsip_endpoint_identifier_user.c:145 username_identify: Identified by From username ‘6001’ domain ‘192.168.0.5’
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting ‘192.168.0.5’ into…
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:226 ast_sockaddr_split_hostport: …host ‘192.168.0.5’ and port ‘’.
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting ‘192.168.0.172’ into…
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:226 ast_sockaddr_split_hostport: …host ‘192.168.0.172’ and port ‘’.
[2018-02-10 12:41:13] DEBUG[7174]: res_pjsip/pjsip_distributor.c:267 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=122 (rdata0x7fdd80000948)
[2018-02-10 12:41:13] DEBUG[7174]: res_pjsip/pjsip_distributor.c:359 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-00000029 to use for Request msg REGISTER/cseq=122 (rdata0x7fdd80000948)
[2018-02-10 12:41:13] DEBUG[7175]: res_pjsip_endpoint_identifier_ip.c:128 ip_identify: No identify sections to match against
[2018-02-10 12:41:13] DEBUG[7175]: res_pjsip_endpoint_identifier_user.c:133 username_identify: Attempting identify by From username ‘6001’ domain ‘192.168.0.5’
[2018-02-10 12:41:13] DEBUG[7175]: res_pjsip_endpoint_identifier_user.c:145 username_identify: Identified by From username ‘6001’ domain ‘192.168.0.5’
[2018-02-10 12:41:13] DEBUG[7175]: res_pjsip_authenticator_digest.c:257 check_nonce: Calculated nonce 1518230473/8fb9bdde08ca335404fac31c7be86d9c. Actual nonce is 1518230473/8fb9bdde08ca335404fac31c7be86d9c
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting ‘192.168.0.5’ into…
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:226 ast_sockaddr_split_hostport: …host ‘192.168.0.5’ and port ‘’.
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting ‘192.168.0.172’ into…
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:226 ast_sockaddr_split_hostport: …host ‘192.168.0.172’ and port ‘’.
[2018-02-10 12:41:13] DEBUG[7175]: res_pjsip_registrar.c:556 match_aor: Matched id ‘6001’ to aor ‘6001’
[2018-02-10 12:41:13] DEBUG[7175]: res_pjsip_registrar.c:645 find_registrar_aor: Matched aor ‘6001’ by To username
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting ‘192.168.0.5’ into…
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:226 ast_sockaddr_split_hostport: …host ‘192.168.0.5’ and port ‘’.
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting ‘192.168.0.172’ into…
[2018-02-10 12:41:13] DEBUG[7175]: netsock2.c:226 ast_sockaddr_split_hostport: …host ‘192.168.0.172’ and port ‘’.
[2018-02-10 12:41:13] WARNING[7175]: res_pjsip_registrar.c:678 find_registrar_aor: AOR ‘6001’ not found for endpoint ‘6001’
[2018-02-10 12:41:30] DEBUG[10971]: manager.c:6313 process_message: Running action ‘Command’
[2018-02-10 12:41:30] DEBUG[10971]: manager.c:6313 process_message: Running action ‘Command’
[2018-02-10 12:41:30] DEBUG[10971]: manager.c:6313 process_message: Running action ‘Command’
[2018-02-10 12:41:30] DEBUG[10971]: manager.c:6313 process_message: Running action ‘Command’
[2018-02-10 12:41:30] DEBUG[10971]: manager.c:6313 process_message: Running action ‘Command’
[2018-02-10 12:41:30] DEBUG[10971]: manager.c:6313 process_message: Running action ‘Command’
[2018-02-10 12:41:30] DEBUG[10971]: manager.c:6313 process_message: Running action ‘Command’
[2018-02-10 12:41:32] DEBUG[7247]: res_pjsip_registrar_expire.c:78 check_expiration_thread: Woke up at 1518230492 Interval: 30
[2018-02-10 12:41:32] DEBUG[7247]: res_pjsip_registrar_expire.c:85 check_expiration_thread: Expiring 0 contacts

[2018-02-10 12:41:43] DEBUG[7174]: res_pjsip/pjsip_distributor.c:267 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=123 (rdata0x7fdd80000948)
[2018-02-10 12:41:43] DEBUG[7174]: res_pjsip/pjsip_distributor.c:359 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-00000029 to use for Request msg REGISTER/cseq=123 (rdata0x7fdd80000948)
[2018-02-10 12:41:43] DEBUG[7175]: res_pjsip_endpoint_identifier_ip.c:128 ip_identify: No identify sections to match against
[2018-02-10 12:41:43] DEBUG[7175]: res_pjsip_endpoint_identifier_user.c:133 username_identify: Attempting identify by From username ‘6001’ domain ‘192.168.0.5’
[2018-02-10 12:41:43] DEBUG[7175]: res_pjsip_endpoint_identifier_user.c:145 username_identify: Identified by From username ‘6001’ domain ‘192.168.0.5’
[2018-02-10 12:41:43] DEBUG[7175]: res_pjsip_authenticator_digest.c:257 check_nonce: Calculated nonce 1518230473/8fb9bdde08ca335404fac31c7be86d9c. Actual nonce is 1518230473/8fb9bdde08ca335404fac31c7be86d9c
[2018-02-10 12:41:43] DEBUG[7175]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting ‘192.168.0.5’ into…
[2018-02-10 12:41:43] DEBUG[7175]: netsock2.c:226 ast_sockaddr_split_hostport: …host ‘192.168.0.5’ and port ‘’.
[2018-02-10 12:41:43] DEBUG[7175]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting ‘192.168.0.172’ into…
[2018-02-10 12:41:43] DEBUG[7175]: netsock2.c:226 ast_sockaddr_split_hostport: …host ‘192.168.0.172’ and port ‘’.
[2018-02-10 12:41:43] DEBUG[7175]: res_pjsip_registrar.c:556 match_aor: Matched id ‘6001’ to aor ‘6001’
[2018-02-10 12:41:43] DEBUG[7175]: res_pjsip_registrar.c:645 find_registrar_aor: Matched aor ‘6001’ by To username
[2018-02-10 12:41:43] DEBUG[7175]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting ‘192.168.0.5’ into…
[2018-02-10 12:41:43] DEBUG[7175]: netsock2.c:226 ast_sockaddr_split_hostport: …host ‘192.168.0.5’ and port ‘’.
[2018-02-10 12:41:43] DEBUG[7175]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting ‘192.168.0.172’ into…
[2018-02-10 12:41:43] DEBUG[7175]: netsock2.c:226 ast_sockaddr_split_hostport: …host ‘192.168.0.172’ and port ‘’.
[2018-02-10 12:41:43] WARNING[7175]: res_pjsip_registrar.c:678 find_registrar_aor: AOR ‘6001’ not found for endpoint ‘6001’