LOG PART 2
<------------>
[2017-10-27 08:30:37] DEBUG[26821] chan_sip.c: Trying to put 'SIP/2.0 200' onto UDP socket destined for XX.XX.XX.XX:55733
[2017-10-27 08:30:37] VERBOSE[26821] chan_sip.c: Scheduling destruction of SIP dialog '608433b8-8e8b-44fd-bea9-fac403d6c5c0' in 32000 ms (Method: REGISTER)
<------------->
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c:
<--- SIP read from UDP:XX.XX.XX.XX:50499 --->
REGISTER sip:XX.XX.XX.ZZ:5060;transport=UDP SIP/2.0
v: SIP/2.0/UDP XX.XX.XX.XY:50499;rport;branch=z9hG4bKPje02bcde4-c1a3-4942-8a2b-92a08cc9db91
Max-Forwards: 70
f: <sip:peerb@XX.XX.XX.ZZ>;tag=58966f13-2ddb-49d5-ba66-5047aed3bd8b
t: <sip:peerb@XX.XX.XX.ZZ>
i: 4f08e136-19bb-4fbe-9b3a-13b5a344ad3d
CSeq: 14237 REGISTER
User-Agent: Android test agent
m: <sip:peerb@XX.XX.XX.XY:50499;ob>;+sip.ice
Expires: 900
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
l: 0
<------------->
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 0 [ 51]: REGISTER sip:XX.XX.XX.ZZ:5060;transport=UDP SIP/2.0
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 1 [ 92]: v: SIP/2.0/UDP XX.XX.XX.XY:50499;rport;branch=z9hG4bKPje02bcde4-c1a3-4942-8a2b-92a08cc9db91
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 2 [ 16]: Max-Forwards: 70
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 3 [ 66]: f: <sip:peerb@XX.XX.XX.ZZ>;tag=58966f13-2ddb-49d5-ba66-5047aed3bd8b
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 4 [ 25]: t: <sip:peerb@XX.XX.XX.ZZ>
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 5 [ 39]: i: 4f08e136-19bb-4fbe-9b3a-13b5a344ad3d
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 6 [ 20]: CSeq: 14237 REGISTER
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 7 [ 30]: User-Agent: Android test agent
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 8 [ 44]: m: <sip:peerb@XX.XX.XX.XY:50499;ob>;+sip.ice
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 9 [ 12]: Expires: 900
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 10 [ 96]: Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 11 [ 4]: l: 0
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: --- (12 headers 0 lines) ---
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: = Looking for Call ID: 4f08e136-19bb-4fbe-9b3a-13b5a344ad3d (Checking From) --From tag 58966f13-2ddb-49d5-ba66-5047aed3bd8b --To-tag
[2017-10-27 08:30:39] DEBUG[26821] acl.c: For destination 'XX.XX.XX.XX', our source address is 'XX.XX.XX.ZZ'.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Setting AST_TRANSPORT_UDP with address XX.XX.XX.ZZ:5060
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: Splitting 'XX.XX.XX.XY:50499' into...
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: ...host 'XX.XX.XX.XY' and port '50499'.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: NAT detected for XX.XX.XX.XY / XX.XX.XX.XX
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Sending to XX.XX.XX.XX:50499 (NAT)
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Allocating new SIP dialog for 4f08e136-19bb-4fbe-9b3a-13b5a344ad3d - REGISTER (No RTP)
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: **** Received REGISTER (2) - Command in SIP REGISTER
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Initializing initreq for method REGISTER - callid 4f08e136-19bb-4fbe-9b3a-13b5a344ad3d
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: Splitting 'XX.XX.XX.XY:50499' into...
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: ...host 'XX.XX.XX.XY' and port '50499'.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: NAT detected for XX.XX.XX.XY / XX.XX.XX.XX
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Sending to XX.XX.XX.XX:50499 (NAT)
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: Splitting 'XX.XX.XX.ZZ' into...
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: ...host 'XX.XX.XX.ZZ' and port ''.
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c:
<--- Transmitting (NAT) to XX.XX.XX.XX:50499 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP XX.XX.XX.XY:50499;branch=z9hG4bKPje02bcde4-c1a3-4942-8a2b-92a08cc9db91;received=XX.XX.XX.XX;rport=50499
From: <sip:peerb@XX.XX.XX.ZZ>;tag=58966f13-2ddb-49d5-ba66-5047aed3bd8b
To: <sip:peerb@XX.XX.XX.ZZ>;tag=as252e42f5
Call-ID: 4f08e136-19bb-4fbe-9b3a-13b5a344ad3d
CSeq: 14237 REGISTER
Server: Asterisk PBX GIT-master-b3914dfM
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="15bf6a5b"
Content-Length: 0
<------------>
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Trying to put 'SIP/2.0 401' onto UDP socket destined for XX.XX.XX.XX:50499
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Scheduling destruction of SIP dialog '4f08e136-19bb-4fbe-9b3a-13b5a344ad3d' in 32000 ms (Method: REGISTER)
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c:
<--- SIP read from UDP:XX.XX.XX.XX:50499 --->
REGISTER sip:XX.XX.XX.ZZ:5060;transport=UDP SIP/2.0
v: SIP/2.0/UDP XX.XX.XX.XY:50499;rport;branch=z9hG4bKPj3ca290de-0c16-46e1-973d-cffc4fee75a0
Max-Forwards: 70
f: <sip:peerb@XX.XX.XX.ZZ>;tag=858229d3-8492-445a-8d6e-b39ab82a0ebd
t: <sip:peerb@XX.XX.XX.ZZ>
i: 6e3b8316-743f-4210-aac2-75b15640266c
CSeq: 22561 REGISTER
User-Agent: Android test agent
m: <sip:peerb@XX.XX.XX.XY:50499;ob>
Expires: 900
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
l: 0
<------------->
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 0 [ 51]: REGISTER sip:XX.XX.XX.ZZ:5060;transport=UDP SIP/2.0
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 1 [ 92]: v: SIP/2.0/UDP XX.XX.XX.XY:50499;rport;branch=z9hG4bKPj3ca290de-0c16-46e1-973d-cffc4fee75a0
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 2 [ 16]: Max-Forwards: 70
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 3 [ 66]: f: <sip:peerb@XX.XX.XX.ZZ>;tag=858229d3-8492-445a-8d6e-b39ab82a0ebd
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 4 [ 25]: t: <sip:peerb@XX.XX.XX.ZZ>
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 5 [ 39]: i: 6e3b8316-743f-4210-aac2-75b15640266c
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 6 [ 20]: CSeq: 22561 REGISTER
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 7 [ 30]: User-Agent: Android test agent
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 8 [ 35]: m: <sip:peerb@XX.XX.XX.XY:50499;ob>
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 9 [ 12]: Expires: 900
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 10 [ 96]: Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 11 [ 4]: l: 0
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: --- (12 headers 0 lines) ---
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: = Looking for Call ID: 6e3b8316-743f-4210-aac2-75b15640266c (Checking From) --From tag 858229d3-8492-445a-8d6e-b39ab82a0ebd --To-tag
[2017-10-27 08:30:39] DEBUG[26821] acl.c: For destination 'XX.XX.XX.XX', our source address is 'XX.XX.XX.ZZ'.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Setting AST_TRANSPORT_UDP with address XX.XX.XX.ZZ:5060
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: Splitting 'XX.XX.XX.XY:50499' into...
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: ...host 'XX.XX.XX.XY' and port '50499'.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: NAT detected for XX.XX.XX.XY / XX.XX.XX.XX
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Sending to XX.XX.XX.XX:50499 (NAT)
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Allocating new SIP dialog for 6e3b8316-743f-4210-aac2-75b15640266c - REGISTER (No RTP)
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: **** Received REGISTER (2) - Command in SIP REGISTER
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Initializing initreq for method REGISTER - callid 6e3b8316-743f-4210-aac2-75b15640266c
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: Splitting 'XX.XX.XX.XY:50499' into...
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: ...host 'XX.XX.XX.XY' and port '50499'.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: NAT detected for XX.XX.XX.XY / XX.XX.XX.XX
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Sending to XX.XX.XX.XX:50499 (NAT)
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: Splitting 'XX.XX.XX.ZZ' into...
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: ...host 'XX.XX.XX.ZZ' and port ''.
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c:
<--- Transmitting (NAT) to XX.XX.XX.XX:50499 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP XX.XX.XX.XY:50499;branch=z9hG4bKPj3ca290de-0c16-46e1-973d-cffc4fee75a0;received=XX.XX.XX.XX;rport=50499
From: <sip:peerb@XX.XX.XX.ZZ>;tag=858229d3-8492-445a-8d6e-b39ab82a0ebd
To: <sip:peerb@XX.XX.XX.ZZ>;tag=as3f97ed27
Call-ID: 6e3b8316-743f-4210-aac2-75b15640266c
CSeq: 22561 REGISTER
Server: Asterisk PBX GIT-master-b3914dfM
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="00adddf7"
Content-Length: 0
<------------>
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Trying to put 'SIP/2.0 401' onto UDP socket destined for XX.XX.XX.XX:50499
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Scheduling destruction of SIP dialog '6e3b8316-743f-4210-aac2-75b15640266c' in 32000 ms (Method: REGISTER)
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c:
<--- SIP read from UDP:XX.XX.XX.XX:50499 --->
REGISTER sip:XX.XX.XX.ZZ:5060;transport=UDP SIP/2.0
v: SIP/2.0/UDP XX.XX.XX.XY:50499;rport;branch=z9hG4bKPj8f0a5f45-096f-4f7a-84c8-b800e35bc745
Max-Forwards: 70
f: <sip:peerb@XX.XX.XX.ZZ>;tag=58966f13-2ddb-49d5-ba66-5047aed3bd8b
t: <sip:peerb@XX.XX.XX.ZZ>
i: 4f08e136-19bb-4fbe-9b3a-13b5a344ad3d
CSeq: 14238 REGISTER
User-Agent: Android test agent
m: <sip:peerb@XX.XX.XX.XY:50499;ob>;+sip.ice
Expires: 900
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="peerb", realm="asterisk", nonce="15bf6a5b", uri="sip:XX.XX.XX.ZZ:5060;transport=UDP", response="bbe1e58bddae6f5dc2f18448973362fc", algorithm=MD5
l: 0
<------------->
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 0 [ 51]: REGISTER sip:XX.XX.XX.ZZ:5060;transport=UDP SIP/2.0
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 1 [ 92]: v: SIP/2.0/UDP XX.XX.XX.XY:50499;rport;branch=z9hG4bKPj8f0a5f45-096f-4f7a-84c8-b800e35bc745
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 2 [ 16]: Max-Forwards: 70
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 3 [ 66]: f: <sip:peerb@XX.XX.XX.ZZ>;tag=58966f13-2ddb-49d5-ba66-5047aed3bd8b
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 4 [ 25]: t: <sip:peerb@XX.XX.XX.ZZ>
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 5 [ 39]: i: 4f08e136-19bb-4fbe-9b3a-13b5a344ad3d
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 6 [ 20]: CSeq: 14238 REGISTER
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 7 [ 30]: User-Agent: Android test agent
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 8 [ 44]: m: <sip:peerb@XX.XX.XX.XY:50499;ob>;+sip.ice
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 9 [ 12]: Expires: 900
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 10 [ 96]: Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 11 [175]: Authorization: Digest username="peerb", realm="asterisk", nonce="15bf6a5b", uri="sip:XX.XX.XX.ZZ:5060;transport=UDP", response="bbe1e58bddae6f5dc2f18448973362fc", algorithm=MD5
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 12 [ 4]: l: 0
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: --- (13 headers 0 lines) ---
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: = Looking for Call ID: 4f08e136-19bb-4fbe-9b3a-13b5a344ad3d (Checking From) --From tag 58966f13-2ddb-49d5-ba66-5047aed3bd8b --To-tag
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: **** Received REGISTER (2) - Command in SIP REGISTER
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Initializing initreq for method REGISTER - callid 4f08e136-19bb-4fbe-9b3a-13b5a344ad3d
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: Splitting 'XX.XX.XX.XY:50499' into...
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: ...host 'XX.XX.XX.XY' and port '50499'.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: NAT detected for XX.XX.XX.XY / XX.XX.XX.XX
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Sending to XX.XX.XX.XX:50499 (NAT)
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: Splitting 'XX.XX.XX.ZZ' into...
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: ...host 'XX.XX.XX.ZZ' and port ''.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Store REGISTER's src-IP:port for call routing.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: build_path: do not use Path headers
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Registered SIP 'peerb' at XX.XX.XX.XX:50499
[2017-10-27 08:30:39] DEBUG[26821] res_config_mysql.c: MySQL RealTime: Connection okay.
[2017-10-27 08:30:39] DEBUG[26821] res_config_mysql.c: MySQL RealTime: Update SQL: UPDATE sip_peers SET `ipaddr` = 'XX.XX.XX.XX', `fullcontact` = 'sip:peerb@XX.XX.XX.XY:50499^3Bob', `lastms` = '0', `useragent` = 'Android test agent', `defaultuser` = 'peerb', `regseconds` = '1509086739', `port` = '50499' WHERE `name` = 'peerb'
[2017-10-27 08:30:39] DEBUG[26821] res_config_mysql.c: MySQL RealTime: Updated 1 rows on table: sip_peers
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c:
<--- Transmitting (NAT) to XX.XX.XX.XX:50499 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP XX.XX.XX.XY:50499;branch=z9hG4bKPj8f0a5f45-096f-4f7a-84c8-b800e35bc745;received=XX.XX.XX.XX;rport=50499
From: <sip:peerb@XX.XX.XX.ZZ>;tag=58966f13-2ddb-49d5-ba66-5047aed3bd8b
To: <sip:peerb@XX.XX.XX.ZZ>;tag=as252e42f5
Call-ID: 4f08e136-19bb-4fbe-9b3a-13b5a344ad3d
CSeq: 14238 REGISTER
Server: Asterisk PBX GIT-master-b3914dfM
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 900
Contact: <sip:peerb@XX.XX.XX.XY:50499;ob>;expires=900
Date: Fri, 27 Oct 2017
Content-Length: 0
<------------>
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Trying to put 'SIP/2.0 200' onto UDP socket destined for XX.XX.XX.XX:50499
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Allocating new SIP dialog for 6660a7a61277551c1195a07f5fa4068a@XX.XX.XX.ZZ:5060 - NOTIFY (No RTP)
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: OBPROXY: Not applying OBproxy to this call
[2017-10-27 08:30:39] DEBUG[26821] acl.c: For destination 'XX.XX.XX.XX', our source address is 'XX.XX.XX.ZZ'.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Setting AST_TRANSPORT_UDP with address XX.XX.XX.ZZ:5060
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: SIP call-id changed from '6660a7a61277551c1195a07f5fa4068a@XX.XX.XX.ZZ:5060' to '6e2923183885eab3699b114601354d9e@XX.XX.XX.ZZ:5060'
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Scheduling destruction of SIP dialog '6e2923183885eab3699b114601354d9e@XX.XX.XX.ZZ:5060' in 32000 ms (Method: NOTIFY)
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Initializing initreq for method NOTIFY - callid 6e2923183885eab3699b114601354d9e@XX.XX.XX.ZZ:5060
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 0 [ 45]: NOTIFY sip:peerb@XX.XX.XX.XY:50499;ob SIP/2.0
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 1 [ 62]: Via: SIP/2.0/UDP XX.XX.XX.ZZ:5060;branch=z9hG4bK687407f8;rport
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 2 [ 16]: Max-Forwards: 70
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 3 [ 58]: From: "asterisk" <sip:asterisk@XX.XX.XX.ZZ>;tag=as1f8dfdcf
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 4 [ 36]: To: <sip:peerb@XX.XX.XX.XY:50499;ob>
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 5 [ 40]: Contact: <sip:asterisk@XX.XX.XX.ZZ:5060>
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 6 [ 58]: Call-ID: 6e2923183885eab3699b114601354d9e@XX.XX.XX.ZZ:5060
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 7 [ 16]: CSeq: 102 NOTIFY
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 8 [ 44]: User-Agent: Asterisk PBX GIT-master-b3914dfM
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 9 [ 22]: Event: message-summary
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 10 [ 48]: Content-Type: application/simple-message-summary
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Reliably Transmitting (NAT) to XX.XX.XX.XX:50499:
NOTIFY sip:peerb@XX.XX.XX.XY:50499;ob SIP/2.0
Via: SIP/2.0/UDP XX.XX.XX.ZZ:5060;branch=z9hG4bK687407f8;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@XX.XX.XX.ZZ>;tag=as1f8dfdcf
To: <sip:peerb@XX.XX.XX.XY:50499;ob>
Contact: <sip:asterisk@XX.XX.XX.ZZ:5060>
Call-ID: 6e2923183885eab3699b114601354d9e@XX.XX.XX.ZZ:5060
CSeq: 102 NOTIFY
User-Agent: Asterisk PBX GIT-master-b3914dfM
Event: message-summary
Content-Type: application/simple-message-summary
Content-Length: 91
Messages-Waiting: no
Message-Account: sip:asterisk@XX.XX.XX.ZZ
Voice-Message: 0/0 (0/0)
---
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: *** SIP TIMER: Initializing retransmit timer on packet: Id #1479
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Trying to put 'NOTIFY sip:' onto UDP socket destined for XX.XX.XX.XX:50499
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Scheduling destruction of SIP dialog '4f08e136-19bb-4fbe-9b3a-13b5a344ad3d' in 32000 ms (Method: REGISTER)
[2017-10-27 08:30:39] DEBUG[26802] devicestate.c: No provider found, checking channel drivers for SIP - peerb
[2017-10-27 08:30:39] DEBUG[26802] chan_sip.c: Checking device state for peer peerb
[2017-10-27 08:30:39] DEBUG[26802] devicestate.c: Changing state for SIP/peerb - state 1 (Not in use)
[2017-10-27 08:30:39] DEBUG[26854] app_queue.c: Device 'SIP/peerb' changed to state '1' (Not in use) but we don't care because they're not a member of any queue.
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c:
<--- SIP read from UDP:XX.XX.XX.XX:50499 --->
REGISTER sip:XX.XX.XX.ZZ:5060;transport=UDP SIP/2.0
v: SIP/2.0/UDP XX.XX.XX.XX:50499;rport;branch=z9hG4bKPj9b9e288a-f63f-4b4e-9324-8b08ee5fbd9d
Max-Forwards: 70
f: <sip:peerb@XX.XX.XX.ZZ>;tag=858229d3-8492-445a-8d6e-b39ab82a0ebd
t: <sip:peerb@XX.XX.XX.ZZ>
i: 6e3b8316-743f-4210-aac2-75b15640266c
CSeq: 22562 REGISTER
User-Agent: Android test agent
m: <sip:peerb@XX.XX.XX.XX:50499;ob>
Expires: 900
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="peerb", realm="asterisk", nonce="00adddf7", uri="sip:XX.XX.XX.ZZ:5060;transport=UDP", response="0e834cd87b5fe6766d5053583147bec3", algorithm=MD5
l: 0
<------------->
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 0 [ 51]: REGISTER sip:XX.XX.XX.ZZ:5060;transport=UDP SIP/2.0
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 1 [ 94]: v: SIP/2.0/UDP XX.XX.XX.XX:50499;rport;branch=z9hG4bKPj9b9e288a-f63f-4b4e-9324-8b08ee5fbd9d
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 2 [ 16]: Max-Forwards: 70
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 3 [ 66]: f: <sip:peerb@XX.XX.XX.ZZ>;tag=858229d3-8492-445a-8d6e-b39ab82a0ebd
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 4 [ 25]: t: <sip:peerb@XX.XX.XX.ZZ>
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 5 [ 39]: i: 6e3b8316-743f-4210-aac2-75b15640266c
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 6 [ 20]: CSeq: 22562 REGISTER
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 7 [ 30]: User-Agent: Android test agent
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 8 [ 37]: m: <sip:peerb@XX.XX.XX.XX:50499;ob>
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 9 [ 12]: Expires: 900
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 10 [ 96]: Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 11 [175]: Authorization: Digest username="peerb", realm="asterisk", nonce="00adddf7", uri="sip:XX.XX.XX.ZZ:5060;transport=UDP", response="0e834cd87b5fe6766d5053583147bec3", algorithm=MD5
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Header 12 [ 4]: l: 0
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: --- (13 headers 0 lines) ---
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: = Looking for Call ID: 6e3b8316-743f-4210-aac2-75b15640266c (Checking From) --From tag 858229d3-8492-445a-8d6e-b39ab82a0ebd --To-tag
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: **** Received REGISTER (2) - Command in SIP REGISTER
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Initializing initreq for method REGISTER - callid 6e3b8316-743f-4210-aac2-75b15640266c
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: Splitting 'XX.XX.XX.XX:50499' into...
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: ...host 'XX.XX.XX.XX' and port '50499'.
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c: Sending to XX.XX.XX.XX:50499 (NAT)
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: Splitting 'XX.XX.XX.ZZ' into...
[2017-10-27 08:30:39] DEBUG[26821] netsock2.c: ...host 'XX.XX.XX.ZZ' and port ''.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: Store REGISTER's src-IP:port for call routing.
[2017-10-27 08:30:39] DEBUG[26821] chan_sip.c: build_path: do not use Path headers
[2017-10-27 08:30:39] DEBUG[26821] res_config_mysql.c: MySQL RealTime: Connection okay.
[2017-10-27 08:30:39] DEBUG[26821] res_config_mysql.c: MySQL RealTime: Update SQL: UPDATE sip_peers SET `ipaddr` = 'XX.XX.XX.XX', `fullcontact` = 'sip:peerb@XX.XX.XX.XX:50499^3Bob', `lastms` = '0', `useragent` = 'Android test agent', `defaultuser` = 'peerb', `regseconds` = '1509086739', `port` = '50499' WHERE `name` = 'peerb'
[2017-10-27 08:30:39] DEBUG[26821] res_config_mysql.c: MySQL RealTime: Updated 1 rows on table: sip_peers
[2017-10-27 08:30:39] VERBOSE[26821] chan_sip.c:
<--- Transmitting (NAT) to XX.XX.XX.XX:50499 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP XX.XX.XX.XX:50499;branch=z9hG4bKPj9b9e288a-f63f-4b4e-9324-8b08ee5fbd9d;received=XX.XX.XX.XX;rport=50499
From: <sip:peerb@XX.XX.XX.ZZ>;tag=858229d3-8492-445a-8d6e-b39ab82a0ebd
To: <sip:peerb@XX.XX.XX.ZZ>;tag=as3f97ed27
Call-ID: 6e3b8316-743f-4210-aac2-75b15640266c
CSeq: 22562 REGISTER
Server: Asterisk PBX GIT-master-b3914dfM
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 900
Contact: <sip:peerb@XX.XX.XX.XX:50499;ob>;expires=900
Date: Fri, 27 Oct 2017
Content-Length: 0