IO-sipit29

Version 3 (Adrian Georgescu, 10/24/2011 10:48 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 2 Adrian Georgescu
6 2 Adrian Georgescu
{{{
7 2 Adrian Georgescu
2011-10-24 10:42:21.419 Blink Pro[1668:a0f] [Session with ag02@cisco.sipit.net] Ending session with audio stream
8 2 Adrian Georgescu
2011-10-24 10:42:21.457 Blink Pro[1668:6527] Traceback (most recent call last):
9 2 Adrian Georgescu
  File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/twisted/internet/base.py", line 757, in runUntilCurrent
10 2 Adrian Georgescu
    call.func(*call.args, **call.kw)
11 2 Adrian Georgescu
  File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/eventlet/coros.py", line 253, in _do_acquire
12 2 Adrian Georgescu
    waiter.switch()
13 2 Adrian Georgescu
  File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/eventlet/api.py", line 235, in _spawn_startup
14 2 Adrian Georgescu
    return cb(*args, **kw)
15 2 Adrian Georgescu
  File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/sipsimple/session.py", line 1904, in end
16 2 Adrian Georgescu
    TimestampedNotificationData(originator='local', method='BYE', code=notification.data.code, reason=notification.data.reason))
17 2 Adrian Georgescu
AttributeError: 'NotificationData' object has no attribute 'code'
18 2 Adrian Georgescu
2011-10-24 10:42:21.474 Blink Pro[1668:a0f] [Session with ag02@cisco.sipit.net] Session will end (local)
19 2 Adrian Georgescu
2011-10-24 10:42:21.643 Blink Pro[1668:a0f] [Session with ag02@cisco.sipit.net] Audio stream ended
20 2 Adrian Georgescu
2011-10-24 10:43:08.301 Blink Pro[1668:6527] Account('ag01@cisco.sipit.net') registered contact "sip:ybqcnaps@132.177.252.163:50949;transport=tcp" at 132.177.253.22:5060;transport=tcp for 93 seconds
21 2 Adrian Georgescu
2011-10-24 10:44:11.420 Blink Pro[1668:6527] Account('ag01@cisco.sipit.net') registered contact "sip:ybqcnaps@132.177.252.163:50949;transport=tcp" at 132.177.253.22:5060;transport=tcp for 93 seconds
22 2 Adrian Georgescu
}}}
23 2 Adrian Georgescu
24 2 Adrian Georgescu
25 2 Adrian Georgescu
26 2 Adrian Georgescu
{{{
27 2 Adrian Georgescu
2011-10-24 10:31:00.239837: Notification name=SIPInvitationChangedState
28 2 Adrian Georgescu
sender=<sipsimple.core._core.Invitation object at 0x18c5ab10>
29 2 Adrian Georgescu
data=NotificationData(originator='local', body=None, prev_sub_state='normal',
30 2 Adrian Georgescu
timestamp=datetime.datetime(2011, 10, 24, 10, 31, 0, 232073), headers={'Via':
31 2 Adrian Georgescu
[FrozenViaHeader('tls', '132.177.252.163', 50951, frozendict({'rport': 0,
32 2 Adrian Georgescu
'branch': 'z9hG4bKPj5bKvhluLSr5OxNTM0vdb4umkCpVNtox8'}))], 'From':
33 2 Adrian Georgescu
FrozenFromHeader(FrozenSIPURI('cisco.sipit.net', 'ag01', None, None, False,
34 2 Adrian Georgescu
frozendict({}), frozendict({})), u'Adrian Georgescu', frozendict({'tag':
35 2 Adrian Georgescu
'kfOPAVWAfIHorykAJBu31vAmIZif780n'})), 'Route':
36 2 Adrian Georgescu
[FrozenRouteHeader(FrozenSIPURI('132.177.253.22',
37 2 Adrian Georgescu
'proxy-call-id=844482fa-fe1a-11e0-bd41-000c29ab0f7b', None, 5061, False,
38 2 Adrian Georgescu
frozendict({'lr': 1, 'transport': 'tls'}), frozendict({})), None,
39 2 Adrian Georgescu
frozendict({})), FrozenRouteHeader(FrozenSIPURI('132.177.253.22',
40 2 Adrian Georgescu
'proxy-call-id=844482fa-fe1a-11e0-bd41-000c29ab0f7b', None, 5061, False,
41 2 Adrian Georgescu
frozendict({'lr': 1, 'transport': 'tls'}), frozendict({})), None,
42 2 Adrian Georgescu
frozendict({}))], 'User-Agent': FrozenHeader('User-Agent', 'Blink Pro 1.3.1
43 2 Adrian Georgescu
(MacOSX)'), 'To': FrozenToHeader(FrozenSIPURI('cisco.sipit.net', 'ag02', None,
44 2 Adrian Georgescu
None, False, frozendict({}), frozendict({})), None, frozendict({'tag':
45 2 Adrian Georgescu
'-9Gm-krVFw154HwQh5W.UsZY12oHT9di'})), 'CSeq': (8401, 'BYE'), 'Call-ID':
46 2 Adrian Georgescu
FrozenHeader('Call-ID', 'JzYfmKI6hZg0iBD9t4WdpKNhW6SyQzlm'), 'Max-Forwards':
47 2 Adrian Georgescu
70}, state='disconnecting', prev_state='connected', method='BYE',
48 2 Adrian Georgescu
request_uri=FrozenSIPURI('132.177.252.111', 'qwbivsgz', None, 51564, False,
49 2 Adrian Georgescu
frozendict({'transport': 'tls'}), frozendict({})))
50 2 Adrian Georgescu
51 2 Adrian Georgescu
52 2 Adrian Georgescu
2011-10-24 10:31:00.259586: Notification name=SIPInvitationChangedState
53 2 Adrian Georgescu
sender=<sipsimple.core._core.Invitation object at 0x18c5ab10>
54 2 Adrian Georgescu
data=NotificationData(originator='local', disconnect_reason='user request',
55 2 Adrian Georgescu
state='disconnected', prev_state='disconnecting',
56 1 Adrian Georgescu
timestamp=datetime.datetime(2011, 10, 24, 10, 31, 0, 250102))
57 3 Adrian Georgescu
}}}
58 3 Adrian Georgescu
59 3 Adrian Georgescu
60 3 Adrian Georgescu
200 OK rdata seems to be none for received 200OK for the sent out BYE
61 3 Adrian Georgescu
62 3 Adrian Georgescu
63 3 Adrian Georgescu
=== UDP trace that works ===
64 3 Adrian Georgescu
65 3 Adrian Georgescu
{{{
66 3 Adrian Georgescu
2011-10-24 10:46:07.277414: Notification name=SIPInvitationChangedState
67 3 Adrian Georgescu
sender=<sipsimple.core._core.Invitation object at 0x18c5abf8>
68 3 Adrian Georgescu
data=NotificationData(originator='local', body=None, prev_sub_state='normal',
69 3 Adrian Georgescu
timestamp=datetime.datetime(2011, 10, 24, 10, 46, 7, 268879), headers={'Via':
70 3 Adrian Georgescu
[FrozenViaHeader('UDP', '132.177.252.163', 60653, frozendict({'rport': 0,
71 3 Adrian Georgescu
'branch': 'z9hG4bKPjVWjI8ftu8DW7rR5WhnOsbgpAWQFpbFYT'}))], 'From':
72 3 Adrian Georgescu
FrozenFromHeader(FrozenSIPURI('cisco.sipit.net', 'ag01', None, None, False,
73 3 Adrian Georgescu
frozendict({}), frozendict({})), u'Adrian Georgescu', frozendict({'tag':
74 3 Adrian Georgescu
'M5uaZcSknKymRnkGTjRG88C8DG99m5Hy'})), 'Route':
75 3 Adrian Georgescu
[FrozenRouteHeader(FrozenSIPURI('132.177.253.22',
76 3 Adrian Georgescu
'proxy-call-id=99e57f04-fe1c-11e0-ba17-000c29ab0f7b', None, 5060, False,
77 3 Adrian Georgescu
frozendict({'lr': 1, 'transport': 'udp'}), frozendict({})), None,
78 3 Adrian Georgescu
frozendict({})), FrozenRouteHeader(FrozenSIPURI('132.177.253.22',
79 3 Adrian Georgescu
'proxy-call-id=99e57f04-fe1c-11e0-ba17-000c29ab0f7b', None, 5060, False,
80 3 Adrian Georgescu
frozendict({'lr': 1, 'transport': 'tcp'}), frozendict({})), None,
81 3 Adrian Georgescu
frozendict({}))], 'User-Agent': FrozenHeader('User-Agent', 'Blink Pro 1.3.1
82 3 Adrian Georgescu
(MacOSX)'), 'To': FrozenToHeader(FrozenSIPURI('cisco.sipit.net', 'ag02', None,
83 3 Adrian Georgescu
None, False, frozendict({}), frozendict({})), None, frozendict({'tag':
84 3 Adrian Georgescu
'hNd9U3UKc.VP-1WWYP-S8MegH2yeRc5e'})), 'CSeq': (28697, 'BYE'), 'Call-ID':
85 3 Adrian Georgescu
FrozenHeader('Call-ID', '41QYdm0-Eny2uHKzgETWx57HhGq47xPl'), 'Max-Forwards':
86 3 Adrian Georgescu
70}, state='disconnecting', prev_state='connected', method='BYE',
87 3 Adrian Georgescu
request_uri=FrozenSIPURI('132.177.252.111', 'qwbivsgz', None, 51252, False,
88 3 Adrian Georgescu
frozendict({'transport': 'tcp'}), frozendict({})))
89 3 Adrian Georgescu
90 3 Adrian Georgescu
91 3 Adrian Georgescu
2011-10-24 10:46:07.293137: Notification name=SIPInvitationChangedState
92 3 Adrian Georgescu
sender=<sipsimple.core._core.Invitation object at 0x18c5abf8>
93 3 Adrian Georgescu
data=NotificationData(originator='remote', body=None, code=200,
94 3 Adrian Georgescu
disconnect_reason='user request', timestamp=datetime.datetime(2011, 10, 24, 10,
95 3 Adrian Georgescu
46, 7, 287860), state='disconnected', headers={'Content-Length': 0, 'Via':
96 3 Adrian Georgescu
[FrozenViaHeader('UDP', '132.177.252.163', 60653, frozendict({'received':
97 3 Adrian Georgescu
'132.177.252.163', 'ingress-zone': 'DefaultSubZone', 'rport': 60653, 'branch':
98 3 Adrian Georgescu
'z9hG4bKPjB6pOFsn58EsyG4sXhsB.72oClDLkXjEW'}))], 'From':
99 3 Adrian Georgescu
FrozenFromHeader(FrozenSIPURI('cisco.sipit.net', 'ag01', None, None, False,
100 3 Adrian Georgescu
frozendict({}), frozendict({})), u'Adrian Georgescu', frozendict({'tag':
101 3 Adrian Georgescu
'M5uaZcSknKymRnkGTjRG88C8DG99m5Hy'})), 'Server': FrozenHeader('Server', 'Blink
102 3 Adrian Georgescu
Pro 1.3.1 (MacOSX)'), 'To': FrozenToHeader(FrozenSIPURI('cisco.sipit.net',
103 3 Adrian Georgescu
'ag02', None, None, False, frozendict({}), frozendict({})), None,
104 3 Adrian Georgescu
frozendict({'tag': 'hNd9U3UKc.VP-1WWYP-S8MegH2yeRc5e'})), 'CSeq': (28698,
105 3 Adrian Georgescu
'BYE'), 'Call-ID': FrozenHeader('Call-ID', '41QYdm0-Eny2uHKzgETWx57HhGq47xPl')},
106 3 Adrian Georgescu
reason='OK', prev_state='disconnecting')
107 2 Adrian Georgescu
}}}