Project

General

Profile

IO-sipit29 » History » Version 5

Adrian Georgescu, 10/24/2011 11:36 AM

1 1 Adrian Georgescu
= SIPIT 29 =
2 2 Adrian Georgescu
3 3 Adrian Georgescu
== Sending BYE exception when using TCP transport ==
4 2 Adrian Georgescu
5 5 Adrian Georgescu
{{{
6
SENDING: Packet 188, +0:14:23.287009
7
2011-10-24 11:35:51.825513: 132.177.252.163:51280 -(SIP over tls)-> 132.177.253.22:5061
8
INVITE sip:ag02@cisco.sipit.net SIP/2.0
9
Via: SIP/2.0/tls 132.177.252.163:51280;rport;branch=z9hG4bKPjGqaVmgy6QI4hqusA17.VmYbSEjEn1S-y
10
Max-Forwards: 70
11
From: "Adrian Georgescu" <sip:ag01@cisco.sipit.net>;tag=tG4TWxTurelH-rGZRnivbJ96jCHFsQS8
12
To: <sip:ag02@cisco.sipit.net>
13
Contact: <sip:doszpemb@132.177.252.163:51544;transport=tls>
14
Call-ID: wm-ihLWnDBKwk743UftUCoP-H5qoETv-
15
CSeq: 4485 INVITE
16
Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE, REFER
17
Supported: 100rel, replaces, norefersub
18
User-Agent: Blink Pro 1.3.1 (MacOSX)
19
Proxy-Authorization: Digest username="cisco", realm="h1.cisco.sipit.net", nonce="5f8327823b80b7c1ad635e68c6ab5ef8b1ac0010d74c76ea30d139be4b0e", uri="sip:ag02@cisco.sipit.net", response="02829cb450bd6f420e8f980f80dec000", algorithm=MD5, cnonce="WMYZEu5MhMBRJr97hlz3Nxqd9pidFkvZ", opaque="AQAAANXGRIqnJLpaa2+oaGI3teAaoA95", qop=auth, nc=00000001
20
Content-Type: application/sdp
21
Content-Length:   269
22
23
v=0
24
o=- 3528437751 3528437751 IN IP4 132.177.252.163
25
s=Blink Pro 1.3.1 (MacOSX)
26
c=IN IP4 132.177.252.163
27
t=0 0
28
m=audio 50004 RTP/AVP 9 0 101
29
a=rtcp:50005
30
a=rtpmap:9 G722/8000
31
a=rtpmap:0 PCMU/8000
32
a=rtpmap:101 telephone-event/8000
33
a=fmtp:101 0-15
34
a=sendrecv
35
36
RECEIVED: Packet 189, +0:14:23.333731
37
2011-10-24 11:35:51.872235: 132.177.253.22:5061 -(SIP over tls)-> 132.177.252.163:51280
38
SIP/2.0 100 Trying
39
Via: SIP/2.0/tls 132.177.252.163:51280;branch=z9hG4bKPjGqaVmgy6QI4hqusA17.VmYbSEjEn1S-y;received=132.177.252.163;rport=51280;ingress-zone=DefaultZone
40
Call-ID: wm-ihLWnDBKwk743UftUCoP-H5qoETv-
41
CSeq: 4485 INVITE
42
From: "Adrian Georgescu" <sip:ag01@cisco.sipit.net>;tag=tG4TWxTurelH-rGZRnivbJ96jCHFsQS8
43
To: <sip:ag02@cisco.sipit.net>
44
Server: TANDBERG/4103 (X7.1PreAlpha29 (TEST SW))
45
Content-Length: 0
46
47
RECEIVED: Packet 190, +0:14:23.380310
48
2011-10-24 11:35:51.918814: 132.177.253.22:5061 -(SIP over tls)-> 132.177.252.163:51280
49
SIP/2.0 180 Ringing
50
Via: SIP/2.0/tls 132.177.252.163:51280;rport=51280;received=132.177.252.163;branch=z9hG4bKPjGqaVmgy6QI4hqusA17.VmYbSEjEn1S-y;ingress-zone=DefaultZone
51
Call-ID: wm-ihLWnDBKwk743UftUCoP-H5qoETv-
52
CSeq: 4485 INVITE
53
Contact: <sip:qwbivsgz@132.177.252.111:60868>
54
From: "Adrian Georgescu" <sip:ag01@cisco.sipit.net>;tag=tG4TWxTurelH-rGZRnivbJ96jCHFsQS8
55
To: <sip:ag02@cisco.sipit.net>;tag=nkEDOGe3nL5K7PwTs1-DzrwUmbdzAYUy
56
Record-Route: <sip:proxy-call-id=9041af5c-fe23-11e0-8ac1-000c29ab0f7b@132.177.253.22:5060;transport=udp;lr>
57
Record-Route: <sip:proxy-call-id=9041af5c-fe23-11e0-8ac1-000c29ab0f7b@132.177.253.22:5061;transport=tls;lr>
58
Allow: SUBSCRIBE,NOTIFY,PRACK,INVITE,ACK,BYE,CANCEL,UPDATE,MESSAGE,REFER
59
Server: Blink Pro 1.3.1 (MacOSX)
60
Content-Length: 0
61
62
RECEIVED: Packet 191, +0:14:28.691178
63
2011-10-24 11:35:57.229682: 132.177.253.22:5061 -(SIP over tls)-> 132.177.252.163:51280
64
SIP/2.0 200 OK
65
Via: SIP/2.0/tls 132.177.252.163:51280;rport=51280;received=132.177.252.163;branch=z9hG4bKPjGqaVmgy6QI4hqusA17.VmYbSEjEn1S-y;ingress-zone=DefaultZone
66
Call-ID: wm-ihLWnDBKwk743UftUCoP-H5qoETv-
67
CSeq: 4485 INVITE
68
Contact: <sip:qwbivsgz@132.177.252.111:60868>
69
From: "Adrian Georgescu" <sip:ag01@cisco.sipit.net>;tag=tG4TWxTurelH-rGZRnivbJ96jCHFsQS8
70
To: <sip:ag02@cisco.sipit.net>;tag=nkEDOGe3nL5K7PwTs1-DzrwUmbdzAYUy
71
Record-Route: <sip:proxy-call-id=9041af5c-fe23-11e0-8ac1-000c29ab0f7b@132.177.253.22:5060;transport=udp;lr>
72
Record-Route: <sip:proxy-call-id=9041af5c-fe23-11e0-8ac1-000c29ab0f7b@132.177.253.22:5061;transport=tls;lr>
73
Allow: SUBSCRIBE,NOTIFY,PRACK,INVITE,ACK,BYE,CANCEL,UPDATE,MESSAGE,REFER
74
Server: Blink Pro 1.3.1 (MacOSX)
75
Supported: 100rel,replaces,norefersub
76
Content-Type: application/sdp
77
Content-Length: 255
78
79
v=0
80
o=- 3528437757 3528437758 IN IP4 132.177.252.111
81
s=Blink Pro 1.3.1 (MacOSX)
82
c=IN IP4 132.177.252.111
83
b=AS:384
84
t=0 0
85
m=audio 50018 RTP/AVP 9 101
86
a=rtcp:50019
87
a=rtpmap:9 G722/8000
88
a=rtpmap:101 telephone-event/8000
89
a=fmtp:101 0-15
90
a=sendrecv
91
92
SENDING: Packet 192, +0:14:28.691472
93
2011-10-24 11:35:57.229976: 132.177.252.163:51280 -(SIP over tls)-> 132.177.253.22:5061
94
ACK sip:qwbivsgz@132.177.252.111:60868 SIP/2.0
95
Via: SIP/2.0/tls 132.177.252.163:51280;rport;branch=z9hG4bKPjydOyhHyq82C92apBgV97cGE2r.G2e4GO
96
Max-Forwards: 70
97
From: "Adrian Georgescu" <sip:ag01@cisco.sipit.net>;tag=tG4TWxTurelH-rGZRnivbJ96jCHFsQS8
98
To: <sip:ag02@cisco.sipit.net>;tag=nkEDOGe3nL5K7PwTs1-DzrwUmbdzAYUy
99
Call-ID: wm-ihLWnDBKwk743UftUCoP-H5qoETv-
100
CSeq: 4485 ACK
101
Route: <sip:proxy-call-id=9041af5c-fe23-11e0-8ac1-000c29ab0f7b@132.177.253.22:5061;transport=tls;lr>
102
Route: <sip:proxy-call-id=9041af5c-fe23-11e0-8ac1-000c29ab0f7b@132.177.253.22:5060;transport=udp;lr>
103
User-Agent: Blink Pro 1.3.1 (MacOSX)
104
Content-Length:  0
105
106
SENDING: Packet 193, +0:14:32.184140
107
2011-10-24 11:36:00.722644: 132.177.252.163:51280 -(SIP over tls)-> 132.177.253.22:5061
108
BYE sip:qwbivsgz@132.177.252.111:60868 SIP/2.0
109
Via: SIP/2.0/tls 132.177.252.163:51280;rport;branch=z9hG4bKPjqWIKkD-f1CW8BystKkNHu3QQ.HhB920m
110
Max-Forwards: 70
111
From: "Adrian Georgescu" <sip:ag01@cisco.sipit.net>;tag=tG4TWxTurelH-rGZRnivbJ96jCHFsQS8
112
To: <sip:ag02@cisco.sipit.net>;tag=nkEDOGe3nL5K7PwTs1-DzrwUmbdzAYUy
113
Call-ID: wm-ihLWnDBKwk743UftUCoP-H5qoETv-
114
CSeq: 4486 BYE
115
Route: <sip:proxy-call-id=9041af5c-fe23-11e0-8ac1-000c29ab0f7b@132.177.253.22:5061;transport=tls;lr>
116
Route: <sip:proxy-call-id=9041af5c-fe23-11e0-8ac1-000c29ab0f7b@132.177.253.22:5060;transport=udp;lr>
117
User-Agent: Blink Pro 1.3.1 (MacOSX)
118
Content-Length:  0
119
120
RECEIVED: Packet 194, +0:14:32.185918
121
2011-10-24 11:36:00.724422: 132.177.253.22:5061 -(SIP over tls)-> 132.177.252.163:51280
122
SIP/2.0 407 Proxy Authentication Required
123
Via: SIP/2.0/tls 132.177.252.163:51280;branch=z9hG4bKPjqWIKkD-f1CW8BystKkNHu3QQ.HhB920m;received=132.177.252.163;rport=51280
124
Call-ID: wm-ihLWnDBKwk743UftUCoP-H5qoETv-
125
CSeq: 4486 BYE
126
From: "Adrian Georgescu" <sip:ag01@cisco.sipit.net>;tag=tG4TWxTurelH-rGZRnivbJ96jCHFsQS8
127
To: <sip:ag02@cisco.sipit.net>;tag=nkEDOGe3nL5K7PwTs1-DzrwUmbdzAYUy
128
Server: TANDBERG/4103 (X7.1PreAlpha29 (TEST SW))
129
Proxy-Authenticate: Digest realm="h1.cisco.sipit.net", nonce="ecf10cc969b2858a1f46ce145b58ba291426098f076e4fa29924531f706e", opaque="AQAAANXGRIqnJLpaa2+oaGI3teAaoA95", stale=FALSE, algorithm=MD5, qop="auth"
130
Content-Length: 0
131
132
SENDING: Packet 195, +0:14:32.186342
133
2011-10-24 11:36:00.724846: 132.177.252.163:51280 -(SIP over tls)-> 132.177.253.22:5061
134
BYE sip:qwbivsgz@132.177.252.111:60868 SIP/2.0
135
Via: SIP/2.0/tls 132.177.252.163:51280;rport;branch=z9hG4bKPj7LZjnOhpR57.YTxGAv42MyoF7RSBupjk
136
Max-Forwards: 70
137
From: "Adrian Georgescu" <sip:ag01@cisco.sipit.net>;tag=tG4TWxTurelH-rGZRnivbJ96jCHFsQS8
138
To: <sip:ag02@cisco.sipit.net>;tag=nkEDOGe3nL5K7PwTs1-DzrwUmbdzAYUy
139
Call-ID: wm-ihLWnDBKwk743UftUCoP-H5qoETv-
140
CSeq: 4487 BYE
141
Route: <sip:proxy-call-id=9041af5c-fe23-11e0-8ac1-000c29ab0f7b@132.177.253.22:5061;transport=tls;lr>
142
Route: <sip:proxy-call-id=9041af5c-fe23-11e0-8ac1-000c29ab0f7b@132.177.253.22:5060;transport=udp;lr>
143
User-Agent: Blink Pro 1.3.1 (MacOSX)
144
Proxy-Authorization: Digest username="cisco", realm="h1.cisco.sipit.net", nonce="ecf10cc969b2858a1f46ce145b58ba291426098f076e4fa29924531f706e", uri="sip:qwbivsgz@132.177.252.111:60868", response="6ed728af6b1b5443c953ec89d17151c6", algorithm=MD5, cnonce="WMYZEu5MhMBRJr97hlz3Nxqd9pidFkvZ", opaque="AQAAANXGRIqnJLpaa2+oaGI3teAaoA95", qop=auth, nc=00000001
145
Content-Length:  0
146
147
RECEIVED: Packet 196, +0:14:32.203260
148
2011-10-24 11:36:00.741764: 132.177.253.22:5061 -(SIP over tls)-> 132.177.252.163:51280
149
SIP/2.0 200 OK
150
Via: SIP/2.0/tls 132.177.252.163:51280;rport=51280;received=132.177.252.163;branch=z9hG4bKPj7LZjnOhpR57.YTxGAv42MyoF7RSBupjk;ingress-zone=DefaultZone
151
Call-ID: wm-ihLWnDBKwk743UftUCoP-H5qoETv-
152
CSeq: 4487 BYE
153
From: "Adrian Georgescu" <sip:ag01@cisco.sipit.net>;tag=tG4TWxTurelH-rGZRnivbJ96jCHFsQS8
154
To: <sip:ag02@cisco.sipit.net>;tag=nkEDOGe3nL5K7PwTs1-DzrwUmbdzAYUy
155
Server: Blink Pro 1.3.1 (MacOSX)
156
Content-Length: 0
157
158
2011-10-24 11:36:12.346891: DNS lookup A h1.cisco.sipit.net succeeded, ttl=600: 132.177.253.22
159
160
161
}}}
162 2 Adrian Georgescu
163
{{{
164
2011-10-24 10:42:21.419 Blink Pro[1668:a0f] [Session with ag02@cisco.sipit.net] Ending session with audio stream
165
2011-10-24 10:42:21.457 Blink Pro[1668:6527] Traceback (most recent call last):
166
  File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/twisted/internet/base.py", line 757, in runUntilCurrent
167
    call.func(*call.args, **call.kw)
168
  File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/eventlet/coros.py", line 253, in _do_acquire
169
    waiter.switch()
170
  File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/eventlet/api.py", line 235, in _spawn_startup
171
    return cb(*args, **kw)
172
  File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/sipsimple/session.py", line 1904, in end
173
    TimestampedNotificationData(originator='local', method='BYE', code=notification.data.code, reason=notification.data.reason))
174
AttributeError: 'NotificationData' object has no attribute 'code'
175
2011-10-24 10:42:21.474 Blink Pro[1668:a0f] [Session with ag02@cisco.sipit.net] Session will end (local)
176
2011-10-24 10:42:21.643 Blink Pro[1668:a0f] [Session with ag02@cisco.sipit.net] Audio stream ended
177
}}}
178
179
180
181
{{{
182
2011-10-24 10:31:00.239837: Notification name=SIPInvitationChangedState
183
sender=<sipsimple.core._core.Invitation object at 0x18c5ab10>
184
data=NotificationData(originator='local', body=None, prev_sub_state='normal',
185
timestamp=datetime.datetime(2011, 10, 24, 10, 31, 0, 232073), headers={'Via':
186
[FrozenViaHeader('tls', '132.177.252.163', 50951, frozendict({'rport': 0,
187
'branch': 'z9hG4bKPj5bKvhluLSr5OxNTM0vdb4umkCpVNtox8'}))], 'From':
188
FrozenFromHeader(FrozenSIPURI('cisco.sipit.net', 'ag01', None, None, False,
189
frozendict({}), frozendict({})), u'Adrian Georgescu', frozendict({'tag':
190
'kfOPAVWAfIHorykAJBu31vAmIZif780n'})), 'Route':
191
[FrozenRouteHeader(FrozenSIPURI('132.177.253.22',
192
'proxy-call-id=844482fa-fe1a-11e0-bd41-000c29ab0f7b', None, 5061, False,
193
frozendict({'lr': 1, 'transport': 'tls'}), frozendict({})), None,
194
frozendict({})), FrozenRouteHeader(FrozenSIPURI('132.177.253.22',
195
'proxy-call-id=844482fa-fe1a-11e0-bd41-000c29ab0f7b', None, 5061, False,
196
frozendict({'lr': 1, 'transport': 'tls'}), frozendict({})), None,
197
frozendict({}))], 'User-Agent': FrozenHeader('User-Agent', 'Blink Pro 1.3.1
198
(MacOSX)'), 'To': FrozenToHeader(FrozenSIPURI('cisco.sipit.net', 'ag02', None,
199
None, False, frozendict({}), frozendict({})), None, frozendict({'tag':
200
'-9Gm-krVFw154HwQh5W.UsZY12oHT9di'})), 'CSeq': (8401, 'BYE'), 'Call-ID':
201
FrozenHeader('Call-ID', 'JzYfmKI6hZg0iBD9t4WdpKNhW6SyQzlm'), 'Max-Forwards':
202
70}, state='disconnecting', prev_state='connected', method='BYE',
203
request_uri=FrozenSIPURI('132.177.252.111', 'qwbivsgz', None, 51564, False,
204
frozendict({'transport': 'tls'}), frozendict({})))
205
206
207
2011-10-24 10:31:00.259586: Notification name=SIPInvitationChangedState
208
sender=<sipsimple.core._core.Invitation object at 0x18c5ab10>
209
data=NotificationData(originator='local', disconnect_reason='user request',
210
state='disconnected', prev_state='disconnecting',
211 1 Adrian Georgescu
timestamp=datetime.datetime(2011, 10, 24, 10, 31, 0, 250102))
212 3 Adrian Georgescu
}}}
213
214
215
200 OK rdata seems to be none for received 200OK for the sent out BYE
216
217
218
=== UDP trace that works ===
219
220
{{{
221
2011-10-24 10:46:07.277414: Notification name=SIPInvitationChangedState
222
sender=<sipsimple.core._core.Invitation object at 0x18c5abf8>
223
data=NotificationData(originator='local', body=None, prev_sub_state='normal',
224
timestamp=datetime.datetime(2011, 10, 24, 10, 46, 7, 268879), headers={'Via':
225
[FrozenViaHeader('UDP', '132.177.252.163', 60653, frozendict({'rport': 0,
226
'branch': 'z9hG4bKPjVWjI8ftu8DW7rR5WhnOsbgpAWQFpbFYT'}))], 'From':
227
FrozenFromHeader(FrozenSIPURI('cisco.sipit.net', 'ag01', None, None, False,
228
frozendict({}), frozendict({})), u'Adrian Georgescu', frozendict({'tag':
229
'M5uaZcSknKymRnkGTjRG88C8DG99m5Hy'})), 'Route':
230
[FrozenRouteHeader(FrozenSIPURI('132.177.253.22',
231
'proxy-call-id=99e57f04-fe1c-11e0-ba17-000c29ab0f7b', None, 5060, False,
232
frozendict({'lr': 1, 'transport': 'udp'}), frozendict({})), None,
233
frozendict({})), FrozenRouteHeader(FrozenSIPURI('132.177.253.22',
234
'proxy-call-id=99e57f04-fe1c-11e0-ba17-000c29ab0f7b', None, 5060, False,
235
frozendict({'lr': 1, 'transport': 'tcp'}), frozendict({})), None,
236
frozendict({}))], 'User-Agent': FrozenHeader('User-Agent', 'Blink Pro 1.3.1
237
(MacOSX)'), 'To': FrozenToHeader(FrozenSIPURI('cisco.sipit.net', 'ag02', None,
238
None, False, frozendict({}), frozendict({})), None, frozendict({'tag':
239
'hNd9U3UKc.VP-1WWYP-S8MegH2yeRc5e'})), 'CSeq': (28697, 'BYE'), 'Call-ID':
240
FrozenHeader('Call-ID', '41QYdm0-Eny2uHKzgETWx57HhGq47xPl'), 'Max-Forwards':
241
70}, state='disconnecting', prev_state='connected', method='BYE',
242
request_uri=FrozenSIPURI('132.177.252.111', 'qwbivsgz', None, 51252, False,
243
frozendict({'transport': 'tcp'}), frozendict({})))
244
245
246
2011-10-24 10:46:07.293137: Notification name=SIPInvitationChangedState
247
sender=<sipsimple.core._core.Invitation object at 0x18c5abf8>
248
data=NotificationData(originator='remote', body=None, code=200,
249
disconnect_reason='user request', timestamp=datetime.datetime(2011, 10, 24, 10,
250
46, 7, 287860), state='disconnected', headers={'Content-Length': 0, 'Via':
251
[FrozenViaHeader('UDP', '132.177.252.163', 60653, frozendict({'received':
252
'132.177.252.163', 'ingress-zone': 'DefaultSubZone', 'rport': 60653, 'branch':
253
'z9hG4bKPjB6pOFsn58EsyG4sXhsB.72oClDLkXjEW'}))], 'From':
254
FrozenFromHeader(FrozenSIPURI('cisco.sipit.net', 'ag01', None, None, False,
255
frozendict({}), frozendict({})), u'Adrian Georgescu', frozendict({'tag':
256
'M5uaZcSknKymRnkGTjRG88C8DG99m5Hy'})), 'Server': FrozenHeader('Server', 'Blink
257
Pro 1.3.1 (MacOSX)'), 'To': FrozenToHeader(FrozenSIPURI('cisco.sipit.net',
258
'ag02', None, None, False, frozendict({}), frozendict({})), None,
259
frozendict({'tag': 'hNd9U3UKc.VP-1WWYP-S8MegH2yeRc5e'})), 'CSeq': (28698,
260
'BYE'), 'Call-ID': FrozenHeader('Call-ID', '41QYdm0-Eny2uHKzgETWx57HhGq47xPl')},
261
reason='OK', prev_state='disconnecting')
262 2 Adrian Georgescu
}}}