I may have mistakenly blamed Asterisk for this one. Not sure, though. I believe I got confused in the previous post due to the Contact: header having a different port number than the originating socket descriptor used to establish the TLS session. This could point to a bug in the actual client, rather than the Asterisk server. More research needed.
Regardless, here is the “sip set debug on” log:
[code][2011-05-23 13:47:16.422] DEBUG[16996] chan_sip.c: Starting thread for SSL server
[2011-05-23 13:47:16.429] DEBUG[16996] chan_sip.c: Header 0 [ 32]: REGISTER sip:192.168.2.2 SIP/2.0
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 1 [ 91]: Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjiq8SHofNrzsCyfJqx7mHcHz7L-jXdVT8
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 2 [ 41]: Route: sip:192.168.2.2;transport=tls;lr
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 3 [ 16]: Max-Forwards: 70
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 4 [ 66]: From: sip:libby@192.168.2.2;tag=iS3XGMplUslkW2Agj3tsBBWIfTwVDkDS
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 5 [ 27]: To: sip:libby@192.168.2.2
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 6 [ 41]: Call-ID: AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 7 [ 20]: CSeq: 53577 REGISTER
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 8 [ 39]: User-Agent: CSipSimple r867 / passion-8
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 9 [ 25]: Supported: outbound, path
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 10 [130]: Contact: sip:libby@192.168.2.100:51803;transport=TLS;ob;reg-id=1;+sip.instance=“urn:uuid:00000000-0000-0000-0000-0000e922f243”
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 11 [ 12]: Expires: 900
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 12 [ 90]: Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 13 [ 18]: Content-Length: 0
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 14 [ 0]:
[2011-05-23 13:47:16.430] VERBOSE[16996] chan_sip.c:
<— SIP read from TLS:192.168.2.100:46355 —>
REGISTER sip:192.168.2.2 SIP/2.0
Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjiq8SHofNrzsCyfJqx7mHcHz7L-jXdVT8
Route: sip:192.168.2.2;transport=tls;lr
Max-Forwards: 70
From: sip:libby@192.168.2.2;tag=iS3XGMplUslkW2Agj3tsBBWIfTwVDkDS
To: sip:libby@192.168.2.2
Call-ID: AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg
CSeq: 53577 REGISTER
User-Agent: CSipSimple r867 / passion-8
Supported: outbound, path
Contact: sip:libby@192.168.2.100:51803;transport=TLS;ob;reg-id=1;+sip.instance="urn:uuid:00000000-0000-0000-0000-0000e922f243"
Expires: 900
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
<------------->
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 0 [ 32]: REGISTER sip:192.168.2.2 SIP/2.0
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 1 [ 91]: Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjiq8SHofNrzsCyfJqx7mHcHz7L-jXdVT8
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 2 [ 41]: Route: sip:192.168.2.2;transport=tls;lr
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 3 [ 16]: Max-Forwards: 70
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 4 [ 66]: From: sip:libby@192.168.2.2;tag=iS3XGMplUslkW2Agj3tsBBWIfTwVDkDS
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 5 [ 27]: To: sip:libby@192.168.2.2
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 6 [ 41]: Call-ID: AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 7 [ 20]: CSeq: 53577 REGISTER
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 8 [ 39]: User-Agent: CSipSimple r867 / passion-8
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 9 [ 25]: Supported: outbound, path
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 10 [130]: Contact: sip:libby@192.168.2.100:51803;transport=TLS;ob;reg-id=1;+sip.instance=“urn:uuid:00000000-0000-0000-0000-0000e922f243”
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 11 [ 12]: Expires: 900
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 12 [ 90]: Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Header 13 [ 17]: Content-Length: 0
[2011-05-23 13:47:16.430] VERBOSE[16996] chan_sip.c: — (14 headers 0 lines) —
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: = Looking for Call ID: AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg (Checking From) --From tag iS3XGMplUslkW2Agj3tsBBWIfTwVDkDS --To-tag
[2011-05-23 13:47:16.430] DEBUG[16996] acl.c: For destination ‘192.168.2.100’, our source address is ‘192.168.2.2’.
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Setting SIP_TRANSPORT_TLS with address 192.168.2.2:5061
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Allocating new SIP dialog for AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg - REGISTER (No RTP)
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: **** Received REGISTER (2) - Command in SIP REGISTER
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Initializing initreq for method REGISTER - callid AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg
[2011-05-23 13:47:16.430] DEBUG[16996] netsock2.c: Splitting ‘192.168.2.100:46355’ gives…
[2011-05-23 13:47:16.430] DEBUG[16996] netsock2.c: …host ‘192.168.2.100’ and port ‘46355’.
[2011-05-23 13:47:16.430] VERBOSE[16996] chan_sip.c: Sending to 192.168.2.100:46355 (no NAT)
[2011-05-23 13:47:16.430] VERBOSE[16996] chan_sip.c:
<— Transmitting (no NAT) to 192.168.2.100:46355 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TLS 192.168.2.100:46355;branch=z9hG4bKPjiq8SHofNrzsCyfJqx7mHcHz7L-jXdVT8;received=192.168.2.100;rport=46355
From: sip:libby@192.168.2.2;tag=iS3XGMplUslkW2Agj3tsBBWIfTwVDkDS
To: sip:libby@192.168.2.2;tag=as36ac7c8f
Call-ID: AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg
CSeq: 53577 REGISTER
Server: Asterisk PBX 1.8.4.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="6800dc4e"
Content-Length: 0
<------------>
[2011-05-23 13:47:16.430] DEBUG[16996] chan_sip.c: Trying to put ‘SIP/2.0 401’ onto TLS socket destined for 192.168.2.100:46355
[2011-05-23 13:47:16.430] VERBOSE[16996] chan_sip.c: Scheduling destruction of SIP dialog ‘AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg’ in 32000 ms (Method: REGISTER)
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 0 [ 32]: REGISTER sip:192.168.2.2 SIP/2.0
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 1 [ 91]: Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjGSbgv08Wv6hV7H2UACEr0.4n9hw5BAIO
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 2 [ 41]: Route: sip:192.168.2.2;transport=tls;lr
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 3 [ 16]: Max-Forwards: 70
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 4 [ 66]: From: sip:libby@192.168.2.2;tag=iS3XGMplUslkW2Agj3tsBBWIfTwVDkDS
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 5 [ 27]: To: sip:libby@192.168.2.2
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 6 [ 41]: Call-ID: AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 7 [ 20]: CSeq: 53578 REGISTER
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 8 [ 39]: User-Agent: CSipSimple r867 / passion-8
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 9 [ 25]: Supported: outbound, path
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 10 [130]: Contact: sip:libby@192.168.2.100:51803;transport=TLS;ob;reg-id=1;+sip.instance=“urn:uuid:00000000-0000-0000-0000-0000e922f243”
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 11 [ 12]: Expires: 900
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 12 [ 90]: Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 13 [157]: Authorization: Digest username=“libby”, realm=“asterisk”, nonce=“6800dc4e”, uri=“sip:192.168.2.2”, response=“a9029a89b5d8711dc8f077c4f1099e38”, algorithm=MD5
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 14 [ 18]: Content-Length: 0
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 15 [ 0]:
[2011-05-23 13:47:16.435] VERBOSE[16996] chan_sip.c:
<— SIP read from TLS:192.168.2.100:46355 —>
REGISTER sip:192.168.2.2 SIP/2.0
Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjGSbgv08Wv6hV7H2UACEr0.4n9hw5BAIO
Route: sip:192.168.2.2;transport=tls;lr
Max-Forwards: 70
From: sip:libby@192.168.2.2;tag=iS3XGMplUslkW2Agj3tsBBWIfTwVDkDS
To: sip:libby@192.168.2.2
Call-ID: AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg
CSeq: 53578 REGISTER
User-Agent: CSipSimple r867 / passion-8
Supported: outbound, path
Contact: sip:libby@192.168.2.100:51803;transport=TLS;ob;reg-id=1;+sip.instance="urn:uuid:00000000-0000-0000-0000-0000e922f243"
Expires: 900
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username=“libby”, realm=“asterisk”, nonce=“6800dc4e”, uri=“sip:192.168.2.2”, response=“a9029a89b5d8711dc8f077c4f1099e38”, algorithm=MD5
Content-Length: 0
<------------->
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 0 [ 32]: REGISTER sip:192.168.2.2 SIP/2.0
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 1 [ 91]: Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjGSbgv08Wv6hV7H2UACEr0.4n9hw5BAIO
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 2 [ 41]: Route: sip:192.168.2.2;transport=tls;lr
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 3 [ 16]: Max-Forwards: 70
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 4 [ 66]: From: sip:libby@192.168.2.2;tag=iS3XGMplUslkW2Agj3tsBBWIfTwVDkDS
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 5 [ 27]: To: sip:libby@192.168.2.2
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 6 [ 41]: Call-ID: AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 7 [ 20]: CSeq: 53578 REGISTER
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 8 [ 39]: User-Agent: CSipSimple r867 / passion-8
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 9 [ 25]: Supported: outbound, path
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 10 [130]: Contact: sip:libby@192.168.2.100:51803;transport=TLS;ob;reg-id=1;+sip.instance=“urn:uuid:00000000-0000-0000-0000-0000e922f243”
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 11 [ 12]: Expires: 900
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 12 [ 90]: Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 13 [157]: Authorization: Digest username=“libby”, realm=“asterisk”, nonce=“6800dc4e”, uri=“sip:192.168.2.2”, response=“a9029a89b5d8711dc8f077c4f1099e38”, algorithm=MD5
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Header 14 [ 17]: Content-Length: 0
[2011-05-23 13:47:16.435] VERBOSE[16996] chan_sip.c: — (15 headers 0 lines) —
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: = Looking for Call ID: AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg (Checking From) --From tag iS3XGMplUslkW2Agj3tsBBWIfTwVDkDS --To-tag
[2011-05-23 13:47:16.435] DEBUG[16996] netsock2.c: Splitting ‘192.168.2.2’ gives…
[2011-05-23 13:47:16.435] DEBUG[16996] netsock2.c: …host ‘192.168.2.2’ and port ‘(null)’.
[2011-05-23 13:47:16.435] DEBUG[16996] netsock2.c: Splitting ‘192.168.2.2’ gives…
[2011-05-23 13:47:16.435] DEBUG[16996] netsock2.c: …host ‘192.168.2.2’ and port ‘(null)’.
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: **** Received REGISTER (2) - Command in SIP REGISTER
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Initializing initreq for method REGISTER - callid AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg
[2011-05-23 13:47:16.435] DEBUG[16996] netsock2.c: Splitting ‘192.168.2.100:46355’ gives…
[2011-05-23 13:47:16.435] DEBUG[16996] netsock2.c: …host ‘192.168.2.100’ and port ‘46355’.
[2011-05-23 13:47:16.435] VERBOSE[16996] chan_sip.c: Sending to 192.168.2.100:46355 (no NAT)
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: peer ‘libby’ has contacted us over TLS even though we prefer UDP.
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Store REGISTER’s Contact header for call routing.
[2011-05-23 13:47:16.435] DEBUG[16996] netsock2.c: Splitting ‘192.168.2.100:51803’ gives…
[2011-05-23 13:47:16.435] DEBUG[16996] netsock2.c: …host ‘192.168.2.100’ and port ‘51803’.
[2011-05-23 13:47:16.435] VERBOSE[16996] chan_sip.c: – Registered SIP ‘libby’ at 192.168.2.100:51803
[2011-05-23 13:47:16.435] VERBOSE[16996] chan_sip.c: > Saved useragent “CSipSimple r867 / passion-8” for peer libby
[2011-05-23 13:47:16.435] VERBOSE[16996] chan_sip.c:
<— Transmitting (no NAT) to 192.168.2.100:46355 —>
SIP/2.0 200 OK
Via: SIP/2.0/TLS 192.168.2.100:46355;branch=z9hG4bKPjGSbgv08Wv6hV7H2UACEr0.4n9hw5BAIO;received=192.168.2.100;rport=46355
From: sip:libby@192.168.2.2;tag=iS3XGMplUslkW2Agj3tsBBWIfTwVDkDS
To: sip:libby@192.168.2.2;tag=as36ac7c8f
Call-ID: AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg
CSeq: 53578 REGISTER
Server: Asterisk PBX 1.8.4.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 900
Contact: sip:libby@192.168.2.100:51803;transport=TLS;ob;expires=900
Date: Mon, 23 May 2011 20:47:16 GMT
Content-Length: 0
<------------>
[2011-05-23 13:47:16.435] DEBUG[16996] chan_sip.c: Trying to put ‘SIP/2.0 200’ onto TLS socket destined for 192.168.2.100:46355
[2011-05-23 13:47:16.435] VERBOSE[16996] chan_sip.c: Scheduling destruction of SIP dialog ‘AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg’ in 32000 ms (Method: REGISTER)
[2011-05-23 13:47:16.435] DEBUG[16865] devicestate.c: No provider found, checking channel drivers for SIP - libby
[2011-05-23 13:47:16.435] DEBUG[16865] chan_sip.c: Checking device state for peer libby
[2011-05-23 13:47:16.435] DEBUG[16865] devicestate.c: Changing state for SIP/libby - state 1 (Not in use)
[2011-05-23 13:47:16.435] DEBUG[16865] devicestate.c: device ‘SIP/libby’ state ‘1’
[2011-05-23 13:47:16.435] DEBUG[16900] app_queue.c: Device ‘SIP/libby’ changed to state ‘1’ (Not in use) but we don’t care because they’re not a member of any queue.
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 0 [ 34]: INVITE sip:600@192.168.2.2 SIP/2.0
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 1 [ 91]: Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjh3l1WCnvNUs-ti.WM15wcNG5WTTkKwYz
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 2 [ 16]: Max-Forwards: 70
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 3 [ 66]: From: sip:libby@192.168.2.2;tag=3Ol0jGc142tn4TheiIPyzpyhxiLXanO7
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 4 [ 25]: To: sip:600@192.168.2.2
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 5 [ 57]: Contact: sip:libby@192.168.2.100:51803;transport=TLS;ob
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 6 [ 41]: Call-ID: 7xBvQQmJq6g7otWVBZGmVo53oKctg9c.
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 7 [ 18]: CSeq: 25398 INVITE
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 8 [ 41]: Route: sip:192.168.2.2;transport=tls;lr
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 9 [ 90]: Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 10 [ 46]: Supported: replaces, 100rel, timer, norefersub
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 11 [ 21]: Session-Expires: 1800
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 12 [ 10]: Min-SE: 90
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 13 [ 39]: User-Agent: CSipSimple r867 / passion-8
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 14 [ 29]: Content-Type: application/sdp
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 15 [ 21]: Content-Length: 560
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 16 [ 0]:
[2011-05-23 13:47:24.371] VERBOSE[16996] chan_sip.c:
<— SIP read from TLS:192.168.2.100:46355 —>
INVITE sip:600@192.168.2.2 SIP/2.0
Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjh3l1WCnvNUs-ti.WM15wcNG5WTTkKwYz
Max-Forwards: 70
From: sip:libby@192.168.2.2;tag=3Ol0jGc142tn4TheiIPyzpyhxiLXanO7
To: sip:600@192.168.2.2
Contact: sip:libby@192.168.2.100:51803;transport=TLS;ob
Call-ID: 7xBvQQmJq6g7otWVBZGmVo53oKctg9c.
CSeq: 25398 INVITE
Route: sip:192.168.2.2;transport=tls;lr
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
User-Agent: CSipSimple r867 / passion-8
Content-Type: application/sdp
Content-Length: 560
v=0
o=- 3515172438 3515172438 IN IP4 192.168.2.100
s=pjmedia
c=IN IP4 192.168.2.100
t=0 0
a=X-nat:0
m=audio 4000 RTP/SAVP 9 104 103 102 0 8 101
a=rtcp:4001 IN IP4 192.168.2.100
a=rtpmap:9 G722/8000
a=rtpmap:104 speex/32000
a=rtpmap:103 speex/16000
a=rtpmap:102 speex/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:j5ur/tg7k6auM1vKKhVpF7D+t/2deJssJbACcwx9
a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:cgbXmpBRLSucOdYW4nVTzk5Qy63gK9tFfxniSzYv
<------------->
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 0 [ 34]: INVITE sip:600@192.168.2.2 SIP/2.0
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 1 [ 91]: Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjh3l1WCnvNUs-ti.WM15wcNG5WTTkKwYz
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 2 [ 16]: Max-Forwards: 70
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 3 [ 66]: From: sip:libby@192.168.2.2;tag=3Ol0jGc142tn4TheiIPyzpyhxiLXanO7
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 4 [ 25]: To: sip:600@192.168.2.2
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 5 [ 57]: Contact: sip:libby@192.168.2.100:51803;transport=TLS;ob
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 6 [ 41]: Call-ID: 7xBvQQmJq6g7otWVBZGmVo53oKctg9c.
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 7 [ 18]: CSeq: 25398 INVITE
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 8 [ 41]: Route: sip:192.168.2.2;transport=tls;lr
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 9 [ 90]: Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 10 [ 46]: Supported: replaces, 100rel, timer, norefersub
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 11 [ 21]: Session-Expires: 1800
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 12 [ 10]: Min-SE: 90
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 13 [ 39]: User-Agent: CSipSimple r867 / passion-8
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 14 [ 29]: Content-Type: application/sdp
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 15 [ 19]: Content-Length: 560
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Header 16 [ 0]:
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 0 [ 3]: v=0
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 1 [ 46]: o=- 3515172438 3515172438 IN IP4 192.168.2.100
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 2 [ 9]: s=pjmedia
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 3 [ 22]: c=IN IP4 192.168.2.100
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 4 [ 5]: t=0 0
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 5 [ 9]: a=X-nat:0
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 6 [ 43]: m=audio 4000 RTP/SAVP 9 104 103 102 0 8 101
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 7 [ 32]: a=rtcp:4001 IN IP4 192.168.2.100
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 8 [ 20]: a=rtpmap:9 G722/8000
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 9 [ 24]: a=rtpmap:104 speex/32000
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 10 [ 24]: a=rtpmap:103 speex/16000
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 11 [ 23]: a=rtpmap:102 speex/8000
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 12 [ 20]: a=rtpmap:0 PCMU/8000
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 13 [ 20]: a=rtpmap:8 PCMA/8000
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 14 [ 10]: a=sendrecv
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 15 [ 33]: a=rtpmap:101 telephone-event/8000
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 16 [ 15]: a=fmtp:101 0-15
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 17 [ 82]: a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:j5ur/tg7k6auM1vKKhVpF7D+t/2deJssJbACcwx9
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Body 18 [ 82]: a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:cgbXmpBRLSucOdYW4nVTzk5Qy63gK9tFfxniSzYv
[2011-05-23 13:47:24.371] VERBOSE[16996] chan_sip.c: — (16 headers 19 lines) —
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: = Looking for Call ID: 7xBvQQmJq6g7otWVBZGmVo53oKctg9c. (Checking From) --From tag 3Ol0jGc142tn4TheiIPyzpyhxiLXanO7 --To-tag
[2011-05-23 13:47:24.371] DEBUG[16996] acl.c: For destination ‘192.168.2.100’, our source address is ‘192.168.2.2’.
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Setting SIP_TRANSPORT_TLS with address 192.168.2.2:5061
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Allocating new SIP dialog for 7xBvQQmJq6g7otWVBZGmVo53oKctg9c. - INVITE (No RTP)
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE
[2011-05-23 13:47:24.371] DEBUG[16996] sip/reqresp_parser.c: Begin: parsing SIP “Supported: replaces, 100rel, timer, norefersub”
[2011-05-23 13:47:24.371] DEBUG[16996] sip/reqresp_parser.c: Found SIP option: -replaces-
[2011-05-23 13:47:24.371] DEBUG[16996] sip/reqresp_parser.c: Matched SIP option: replaces
[2011-05-23 13:47:24.371] DEBUG[16996] sip/reqresp_parser.c: Found SIP option: -100rel-
[2011-05-23 13:47:24.371] DEBUG[16996] sip/reqresp_parser.c: Matched SIP option: 100rel
[2011-05-23 13:47:24.371] DEBUG[16996] sip/reqresp_parser.c: Found SIP option: -timer-
[2011-05-23 13:47:24.371] DEBUG[16996] sip/reqresp_parser.c: Matched SIP option: timer
[2011-05-23 13:47:24.371] DEBUG[16996] sip/reqresp_parser.c: Found SIP option: -norefersub-
[2011-05-23 13:47:24.371] DEBUG[16996] sip/reqresp_parser.c: Matched SIP option: norefersub
[2011-05-23 13:47:24.371] DEBUG[16996] netsock2.c: Splitting ‘192.168.2.100:46355’ gives…
[2011-05-23 13:47:24.371] DEBUG[16996] netsock2.c: …host ‘192.168.2.100’ and port ‘46355’.
[2011-05-23 13:47:24.371] VERBOSE[16996] chan_sip.c: Sending to 192.168.2.100:46355 (no NAT)
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Initializing initreq for method INVITE - callid 7xBvQQmJq6g7otWVBZGmVo53oKctg9c.
[2011-05-23 13:47:24.371] VERBOSE[16996] chan_sip.c: Using INVITE request as basis request - 7xBvQQmJq6g7otWVBZGmVo53oKctg9c.
[2011-05-23 13:47:24.371] VERBOSE[16996] chan_sip.c: Found peer ‘libby’ for ‘libby’ from 192.168.2.100:46355
[2011-05-23 13:47:24.371] VERBOSE[16996] chan_sip.c:
<— Reliably Transmitting (no NAT) to 192.168.2.100:46355 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TLS 192.168.2.100:46355;branch=z9hG4bKPjh3l1WCnvNUs-ti.WM15wcNG5WTTkKwYz;received=192.168.2.100;rport=46355
From: sip:libby@192.168.2.2;tag=3Ol0jGc142tn4TheiIPyzpyhxiLXanO7
To: sip:600@192.168.2.2;tag=as00def58d
Call-ID: 7xBvQQmJq6g7otWVBZGmVo53oKctg9c.
CSeq: 25398 INVITE
Server: Asterisk PBX 1.8.4.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="633fa1bb"
Content-Length: 0
<------------>
[2011-05-23 13:47:24.371] DEBUG[16996] chan_sip.c: Trying to put ‘SIP/2.0 401’ onto TLS socket destined for 192.168.2.100:46355
[2011-05-23 13:47:24.372] VERBOSE[16996] chan_sip.c: Scheduling destruction of SIP dialog ‘7xBvQQmJq6g7otWVBZGmVo53oKctg9c.’ in 32000 ms (Method: INVITE)
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 0 [ 31]: ACK sip:600@192.168.2.2 SIP/2.0
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 1 [ 91]: Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjh3l1WCnvNUs-ti.WM15wcNG5WTTkKwYz
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 2 [ 16]: Max-Forwards: 70
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 3 [ 66]: From: sip:libby@192.168.2.2;tag=3Ol0jGc142tn4TheiIPyzpyhxiLXanO7
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 4 [ 40]: To: sip:600@192.168.2.2;tag=as00def58d
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 5 [ 41]: Call-ID: 7xBvQQmJq6g7otWVBZGmVo53oKctg9c.
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 6 [ 15]: CSeq: 25398 ACK
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 7 [ 41]: Route: sip:192.168.2.2;transport=tls;lr
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 8 [ 18]: Content-Length: 0
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 9 [ 0]:
[2011-05-23 13:47:24.376] VERBOSE[16996] chan_sip.c:
<— SIP read from TLS:192.168.2.100:46355 —>
ACK sip:600@192.168.2.2 SIP/2.0
Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjh3l1WCnvNUs-ti.WM15wcNG5WTTkKwYz
Max-Forwards: 70
From: sip:libby@192.168.2.2;tag=3Ol0jGc142tn4TheiIPyzpyhxiLXanO7
To: sip:600@192.168.2.2;tag=as00def58d
Call-ID: 7xBvQQmJq6g7otWVBZGmVo53oKctg9c.
CSeq: 25398 ACK
Route: sip:192.168.2.2;transport=tls;lr
Content-Length: 0
<------------->
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 0 [ 31]: ACK sip:600@192.168.2.2 SIP/2.0
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 1 [ 91]: Via: SIP/2.0/TLS 192.168.2.100:46355;rport;branch=z9hG4bKPjh3l1WCnvNUs-ti.WM15wcNG5WTTkKwYz
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 2 [ 16]: Max-Forwards: 70
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 3 [ 66]: From: sip:libby@192.168.2.2;tag=3Ol0jGc142tn4TheiIPyzpyhxiLXanO7
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 4 [ 40]: To: sip:600@192.168.2.2;tag=as00def58d
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 5 [ 41]: Call-ID: 7xBvQQmJq6g7otWVBZGmVo53oKctg9c.
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 6 [ 15]: CSeq: 25398 ACK
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 7 [ 41]: Route: sip:192.168.2.2;transport=tls;lr
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Header 8 [ 17]: Content-Length: 0
[2011-05-23 13:47:24.376] VERBOSE[16996] chan_sip.c: — (9 headers 0 lines) —
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: = Looking for Call ID: 7xBvQQmJq6g7otWVBZGmVo53oKctg9c. (Checking From) --From tag 3Ol0jGc142tn4TheiIPyzpyhxiLXanO7 --To-tag as00def58d
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: **** Received ACK (6) - Command in SIP ACK
[2011-05-23 13:47:24.376] DEBUG[16996] chan_sip.c: Stopping retransmission on ‘7xBvQQmJq6g7otWVBZGmVo53oKctg9c.’ of Response 25398: Match Not Found
[2011-05-23 13:47:48.436] DEBUG[16887] chan_sip.c: Auto destroying SIP dialog ‘AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg’
[2011-05-23 13:47:48.436] DEBUG[16887] chan_sip.c: Destroying SIP dialog AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg
[2011-05-23 13:47:48.436] VERBOSE[16887] chan_sip.c: Really destroying SIP dialog ‘AvhQTDlfiXiw0Us.XqYXgYZoS.5Ndmkg’ Method: REGISTER[/code]