« Previous - Version 2/13 (diff) - Next » - Current version
Adrian Georgescu, 10/24/2011 10:45 am


= SIPIT 29 =

BYE exception when using TCP transport

{{{
2011-10-24 10:42:21.419 Blink Pro[1668:a0f] [Session with ] Ending session with audio stream
2011-10-24 10:42:21.457 Blink Pro[1668:6527] Traceback (most recent call last):
File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/twisted/internet/base.py", line 757, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/eventlet/coros.py", line 253, in _do_acquire
waiter.switch()
File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/eventlet/api.py", line 235, in _spawn_startup
return cb(*args, **kw)
File "/Users/adigeo/work/blink/build/Release/Blink Pro.app/Contents/Resources/lib/sipsimple/session.py", line 1904, in end
TimestampedNotificationData(originator='local', method='BYE', code=notification.data.code, reason=notification.data.reason))
AttributeError: 'NotificationData' object has no attribute 'code'
2011-10-24 10:42:21.474 Blink Pro[1668:a0f] [Session with ] Session will end (local)
2011-10-24 10:42:21.643 Blink Pro[1668:a0f] [Session with ] Audio stream ended
2011-10-24 10:43:08.301 Blink Pro[1668:6527] Account('') registered contact "sip::50949;transport=tcp" at 132.177.253.22:5060;transport=tcp for 93 seconds
2011-10-24 10:44:11.420 Blink Pro[1668:6527] Account('') registered contact "sip::50949;transport=tcp" at 132.177.253.22:5060;transport=tcp for 93 seconds
}}}

{{{
2011-10-24 10:31:00.239837: Notification name=SIPInvitationChangedState
sender=<sipsimple.core._core.Invitation object at 0x18c5ab10>
data=NotificationData(originator='local', body=None, prev_sub_state='normal',
timestamp=datetime.datetime(2011, 10, 24, 10, 31, 0, 232073), headers={'Via':
[FrozenViaHeader('tls', '132.177.252.163', 50951, frozendict({'rport': 0,
'branch': 'z9hG4bKPj5bKvhluLSr5OxNTM0vdb4umkCpVNtox8'}))], 'From':
FrozenFromHeader(FrozenSIPURI('cisco.sipit.net', 'ag01', None, None, False,
frozendict({}), frozendict({})), u'Adrian Georgescu', frozendict({'tag':
'kfOPAVWAfIHorykAJBu31vAmIZif780n'})), 'Route':
[FrozenRouteHeader(FrozenSIPURI('132.177.253.22',
'proxy-call-id=844482fa-fe1a-11e0-bd41-000c29ab0f7b', None, 5061, False,
frozendict({'lr': 1, 'transport': 'tls'}), frozendict({})), None,
frozendict({})), FrozenRouteHeader(FrozenSIPURI('132.177.253.22',
'proxy-call-id=844482fa-fe1a-11e0-bd41-000c29ab0f7b', None, 5061, False,
frozendict({'lr': 1, 'transport': 'tls'}), frozendict({})), None,
frozendict({}))], 'User-Agent': FrozenHeader('User-Agent', 'Blink Pro 1.3.1
(MacOSX)'), 'To': FrozenToHeader(FrozenSIPURI('cisco.sipit.net', 'ag02', None,
None, False, frozendict({}), frozendict({})), None, frozendict({'tag':
'-9Gm-krVFw154HwQh5W.UsZY12oHT9di'})), 'CSeq': (8401, 'BYE'), 'Call-ID':
FrozenHeader('Call-ID', 'JzYfmKI6hZg0iBD9t4WdpKNhW6SyQzlm'), 'Max-Forwards':
70}, state='disconnecting', prev_state='connected', method='BYE',
request_uri=FrozenSIPURI('132.177.252.111', 'qwbivsgz', None, 51564, False,
frozendict({'transport': 'tls'}), frozendict({})))

2011-10-24 10:31:00.259586: Notification name=SIPInvitationChangedState
sender=<sipsimple.core._core.Invitation object at 0x18c5ab10>
data=NotificationData(originator='local', disconnect_reason='user request',
state='disconnected', prev_state='disconnecting',
timestamp=datetime.datetime(2011, 10, 24, 10, 31, 0, 250102))
}}}