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