[SIP Beyond VoIP] Installation on Precise ubuntu - solved

Hadzhiev, Tihomir tihomir.hadzhiev at acision.com
Mon Sep 10 13:26:52 CEST 2012


Hi guys,

The Sylk runs now fine, however I have the following problems:


1.       XMPP domain towards SIP Domain ( SIP message ):

Sylk Debug logs:

2012-09-10T07:20:41.131721-04:00 [sylk-server 2722]: RECEIVED: Packet 11, +0:01:13.437134
<message from='tihoparvi at testing.com/psi' to='alice at open-ims.test' xml:lang='en' id='aad3a'>
<body>asdasd</body>
<nick xmlns='http://jabber.org/protocol/nick'>asd</nick>
</message>
--

==> notifications_trace.txt <==
2012-09-10 07:20:41.134500 [sylk-server 2722]: Notification name=XMPPGotNormalMessage sender=<wokkel.component.InternalComponent object at 0x7f36f8972990>
{'message': <sylk.applications.xmppgateway.xmpp.stanzas.NormalMessage object at 0x7f36f8ad0650>}
2012-09-10 07:20:41.134680 [sylk-server 2722]: Notification name=XMPPGotNormalMessage sender=<sylk.applications.xmppgateway.xmpp.XMPPManager object at 0x7f36f8969a10>
{'message': <sylk.applications.xmppgateway.xmpp.stanzas.NormalMessage object at 0x7f36f8ad0650>}

==> sip_trace.txt <==
2012-09-10 07:20:41.135101 [sylk-server 2722]: DNS lookup NAPTR open-ims.test succeeded, ttl=86400: 20 50 "s" "SIP+D2T" "" _sip._tcp.open-ims.test., 10 50 "s" "SIP+D2U" "" _sip._udp.open-ims.test.

==> notifications_trace.txt <==
2012-09-10 07:20:41.135881 [sylk-server 2722]: Notification name=DNSLookupTrace sender=<sipsimple.lookup.DNSLookup object at 0x7f36f89f4d10>
{'answer': <dns.resolver.Answer object at 0x7f36f89f4fd0>,
'context': 'lookup_sip_proxy',
'error': None,
'nameservers': ['10.226.20.240', '10.226.32.45'],
'query_name': 'open-ims.test',
'query_type': 'NAPTR',
'uri': SIPURI('open-ims.test', 'alice', None, None, False, {}, {})}
2012-09-10 07:20:41.136619 [sylk-server 2722]: Notification name=DNSLookupDidSucceed sender=<sipsimple.lookup.DNSLookup object at 0x7f36f89f4d10>
{'result': [Route('10.226.20.240', 5060, 'udp'),
            Route('10.226.20.240', 5060, 'tcp')]}


And SYLK throws the following in the console:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.7/dist-packages/eventlib/coros.py", line 199, in _do_send
    waiter.throw(*exc)
  File "/usr/lib/python2.7/dist-packages/eventlib/api.py", line 235, in _spawn_startup
    return cb(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/sylk/applications/xmppgateway/__init__.py", line 266, in _NH_XMPPGotNormalMessage
    sip_message_sender.send().wait()
  File "/usr/lib/python2.7/dist-packages/eventlib/coros.py", line 150, in wait
    return api.get_hub().switch()
  File "/usr/lib/python2.7/dist-packages/eventlib/hubs/twistedr.py", line 130, in switch
    return self.greenlet.switch()
  File "/usr/lib/python2.7/dist-packages/sipsimple/threading/green.py", line 85, in wrapped_func
    result = func(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/sylk/applications/xmppgateway/im.py", line 425, in send
    route_header = RouteHeader(route.get_uri())
AttributeError: 'Route' object has no attribute 'get_uri'






2.       SIP domain towards XMPP domain ( SIP Message ):

Where Logs are showing:

==> core_trace.txt <==
2012-09-10 07:25:44.612560 [sylk-server 2740] (5) sip_endpoint.c: Processing incoming message: Request msg MESSAGE/cseq=1 (rdata0x7f53f8163e78)

==> sip_trace.txt <==
2012-09-10 07:25:44.613358 [sylk-server 2740]: RECEIVED: Packet 1, +0:00:00
10.226.20.240:6060 -(SIP over UDP)-> 10.226.20.31:5070
MESSAGE sip:tihoparvi at testing.com SIP/2.0
Route: <sip:10.226.20.31:5070;lr>, <sip:iscmark at scscf.open-ims.test:6060;lr;s=1;h=0;d=0;a=7369703a616c696365406f70656e2d696d732e74657374>
Via: SIP/2.0/UDP 10.226.20.240:6060;branch=z9hG4bKb9d9.d70e38e1.0
Via: SIP/2.0/UDP 10.226.20.240:4060;branch=z9hG4bKb9d9.2d63d713.0
Via: SIP/2.0/UDP 10.226.20.16:1951;rport=1951;branch=z9hG4bK1347267336054
From: <sip:alice at open-ims.test>;tag=mercuro;visibleip=10.226.20.16
To: <sip:tihoparvi at testing.com>
Call-ID: 2951596758
CSeq: 1 MESSAGE
Max-Forwards: 15
Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER
User-Agent: IM-client/OMA1.0 Mercuro-Gold/v4.0.1631.0
Content-Type: text/plain; charset=utf-8
Accept-Contact: *;+g.oma.sip-im
P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000
Privacy: none
Supported: timer
Allow-Events: refer, presence, presence.winfo, xcap-diff, conference
Content-Length: 35
P-Asserted-Identity: <sip:alice at open-ims.test>
P-Charging-Vector: icid-value="P-CSCFabcd00000000504dce3900000012";icid-generated-at=10.226.20.240;orig-ioi="open-ims.test"

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
--

==> core_trace.txt <==
2012-09-10 07:25:44.613661 [sylk-server 2740] (5)       endpoint: Response msg 500/MESSAGE/cseq=1 (tdta0x7f53f00102f0) created
2012-09-10 07:25:44.613996 [sylk-server 2740] (5) tsx0x7f53f0011: Transaction created for Request msg MESSAGE/cseq=1 (rdata0x7f53f8163e78)
2012-09-10 07:25:44.614169 [sylk-server 2740] (5) tsx0x7f53f0011: Incoming Request msg MESSAGE/cseq=1 (rdata0x7f53f8163e78) in state Null
2012-09-10 07:25:44.614522 [sylk-server 2740] (5) tsx0x7f53f0011: State changed from Null to Trying, event=RX_MSG

==> notifications_trace.txt <==
2012-09-10 07:25:44.617014 [sylk-server 2740]: Notification name=SIPIncomingRequestGotRequest sender=<sipsimple.core._core.IncomingRequest object at 0x7f53f8445998>
{'body': 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'headers': {'Accept-Contact': FrozenHeader('Accept-Contact', '*;+g.oma.sip-im'),
             'Allow': ['INVITE',
                       'ACK',
                       'CANCEL',
                       'BYE',
                       'MESSAGE',
                       'OPTIONS',
                       'NOTIFY',
                       'PRACK',
                       'UPDATE',
                       'REFER'],
             'Allow-Events': ['refer',
                              'presence',
                              'presence.winfo',
                              'xcap-diff',
                              'conference'],
             'CSeq': (1, 'MESSAGE'),
             'Call-ID': FrozenHeader('Call-ID', '2951596758'),
             'Content-Length': 35,
             'Content-Type': FrozenContentTypeHeader('text/plain', frozendict({'charset': 'utf-8'})),
             'From': FrozenFromHeader(FrozenSIPURI('open-ims.test', 'alice', None, None, False, frozendict({}), frozendict({})), None, frozendict({'visibleip': '10.226.20.16', 'tag': 'mercuro'})),
             'Max-Forwards': 15,
             'P-Access-Network-Info': FrozenHeader('P-Access-Network-Info', 'ADSL;utran-cell-id-3gpp=00000000'),
             'P-Asserted-Identity': FrozenHeader('P-Asserted-Identity', '<sip:alice at open-ims.test>'),
             'P-Charging-Vector': FrozenHeader('P-Charging-Vector', 'icid-value="P-CSCFabcd00000000504dce3900000012";icid-generated-at=10.226.20.240;orig-ioi="open-ims.test"'),
             'Privacy': FrozenHeader('Privacy', 'none'),
             'Route': [FrozenRouteHeader(FrozenSIPURI('10.226.20.31', None, None, 5070, False, frozendict({'lr': None}), frozendict({})), None, frozendict({})),
                       FrozenRouteHeader(FrozenSIPURI('scscf.open-ims.test', 'iscmark', None, 6060, False, frozendict({'a': '7369703a616c696365406f70656e2d696d732e74657374', 'h': '0', 's': '1', 'lr': None, 'd': '0'}), frozendict({})), None, frozendict({}))],
             'Supported': ['timer'],
             'To': FrozenToHeader(FrozenSIPURI('testing.com', 'tihoparvi', None, None, False, frozendict({}), frozendict({})), None, frozendict({})),
             'User-Agent': FrozenHeader('User-Agent', 'IM-client/OMA1.0 Mercuro-Gold/v4.0.1631.0'),
             'Via': [FrozenViaHeader('UDP', '10.226.20.240', 6060, frozendict({'received': '10.226.20.240', 'branch': 'z9hG4bKb9d9.d70e38e1.0'})),
                     FrozenViaHeader('UDP', '10.226.20.240', 4060, frozendict({'branch': 'z9hG4bKb9d9.2d63d713.0'})),
                     FrozenViaHeader('UDP', '10.226.20.16', 1951, frozendict({'rport': 1951, 'branch': 'z9hG4bK1347267336054'}))]},
'method': 'MESSAGE',
'request_uri': FrozenSIPURI('testing.com', 'tihoparvi', None, None, False, frozendict({}), frozendict({}))}

==> core_trace.txt <==
2012-09-10 07:25:44.723235 [sylk-server 2740] (5) tsx0x7f53f0011: Request to terminate transaction
2012-09-10 07:25:44.724152 [sylk-server 2740] (5) tsx0x7f53f0011: State changed from Trying to Terminated, event=USER
2012-09-10 07:25:44.733477 [sylk-server 2740] (5) tdta0x7f53f001: Destroying txdata Response msg 500/MESSAGE/cseq=1 (tdta0x7f53f00102f0)
2012-09-10 07:25:44.733622 [sylk-server 2740] (5) tsx0x7f53f0011: Timeout timer event
2012-09-10 07:25:44.733783 [sylk-server 2740] (5) tsx0x7f53f0011: State changed from Terminated to Destroyed, event=TIMER
2012-09-10 07:25:44.733857 [sylk-server 2740] (5) tsx0x7f53f0011: Transaction destroyed!
2012-09-10 07:25:45.079583 [sylk-server 2740] (5) sip_endpoint.c: Processing incoming message: Request msg MESSAGE/cseq=1 (rdata0x7f53f0011e48)

==> sip_trace.txt <==
2012-09-10 07:25:45.082357 [sylk-server 2740]: RECEIVED: Packet 2, +0:00:00.468999
10.226.20.240:6060 -(SIP over UDP)-> 10.226.20.31:5070
MESSAGE sip:tihoparvi at testing.com SIP/2.0
Route: <sip:10.226.20.31:5070;lr>, <sip:iscmark at scscf.open-ims.test:6060;lr;s=1;h=0;d=0;a=7369703a616c696365406f70656e2d696d732e74657374>
Via: SIP/2.0/UDP 10.226.20.240:6060;branch=z9hG4bKb9d9.d70e38e1.0
Via: SIP/2.0/UDP 10.226.20.240:4060;branch=z9hG4bKb9d9.2d63d713.0
Via: SIP/2.0/UDP 10.226.20.16:1951;rport=1951;branch=z9hG4bK1347267336054
From: <sip:alice at open-ims.test>;tag=mercuro;visibleip=10.226.20.16
To: <sip:tihoparvi at testing.com>
Call-ID: 2951596758
CSeq: 1 MESSAGE
Max-Forwards: 15
Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER
User-Agent: IM-client/OMA1.0 Mercuro-Gold/v4.0.1631.0
Content-Type: text/plain; charset=utf-8
Accept-Contact: *;+g.oma.sip-im
P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000
Privacy: none
Supported: timer
Allow-Events: refer, presence, presence.winfo, xcap-diff, conference
Content-Length: 35
P-Asserted-Identity: <sip:alice at open-ims.test>
P-Charging-Vector: icid-value="P-CSCFabcd00000000504dce3900000012";icid-generated-at=10.226.20.240;orig-ioi="open-ims.test"

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
--

==> core_trace.txt <==
2012-09-10 07:25:45.085473 [sylk-server 2740] (5)       endpoint: Response msg 500/MESSAGE/cseq=1 (tdta0x7f53f0010320) created
2012-09-10 07:25:45.087516 [sylk-server 2740] (5) tsx0x7f53f0011: Transaction created for Request msg MESSAGE/cseq=1 (rdata0x7f53f0011e48)
2012-09-10 07:25:45.087708 [sylk-server 2740] (5) tsx0x7f53f0011: Incoming Request msg MESSAGE/cseq=1 (rdata0x7f53f0011e48) in state Null
2012-09-10 07:25:45.089639 [sylk-server 2740] (5) tsx0x7f53f0011: State changed from Null to Trying, event=RX_MSG

==> notifications_trace.txt <==
2012-09-10 07:25:45.094414 [sylk-server 2740]: Notification name=SIPIncomingRequestGotRequest sender=<sipsimple.core._core.IncomingRequest object at 0x7f53f89d0838>
{'body': 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'headers': {'Accept-Contact': FrozenHeader('Accept-Contact', '*;+g.oma.sip-im'),
             'Allow': ['INVITE',
                       'ACK',
                       'CANCEL',
                       'BYE',
                       'MESSAGE',
                       'OPTIONS',
                       'NOTIFY',
                       'PRACK',
                       'UPDATE',
                       'REFER'],
             'Allow-Events': ['refer',
                              'presence',
                              'presence.winfo',
                              'xcap-diff',
                              'conference'],
             'CSeq': (1, 'MESSAGE'),
             'Call-ID': FrozenHeader('Call-ID', '2951596758'),
             'Content-Length': 35,
             'Content-Type': FrozenContentTypeHeader('text/plain', frozendict({'charset': 'utf-8'})),
             'From': FrozenFromHeader(FrozenSIPURI('open-ims.test', 'alice', None, None, False, frozendict({}), frozendict({})), None, frozendict({'visibleip': '10.226.20.16', 'tag': 'mercuro'})),
             'Max-Forwards': 15,
             'P-Access-Network-Info': FrozenHeader('P-Access-Network-Info', 'ADSL;utran-cell-id-3gpp=00000000'),
             'P-Asserted-Identity': FrozenHeader('P-Asserted-Identity', '<sip:alice at open-ims.test>'),
             'P-Charging-Vector': FrozenHeader('P-Charging-Vector', 'icid-value="P-CSCFabcd00000000504dce3900000012";icid-generated-at=10.226.20.240;orig-ioi="open-ims.test"'),
             'Privacy': FrozenHeader('Privacy', 'none'),
             'Route': [FrozenRouteHeader(FrozenSIPURI('10.226.20.31', None, None, 5070, False, frozendict({'lr': None}), frozendict({})), None, frozendict({})),
                       FrozenRouteHeader(FrozenSIPURI('scscf.open-ims.test', 'iscmark', None, 6060, False, frozendict({'a': '7369703a616c696365406f70656e2d696d732e74657374', 'h': '0', 's': '1', 'lr': None, 'd': '0'}), frozendict({})), None, frozendict({}))],
             'Supported': ['timer'],
             'To': FrozenToHeader(FrozenSIPURI('testing.com', 'tihoparvi', None, None, False, frozendict({}), frozendict({})), None, frozendict({})),
             'User-Agent': FrozenHeader('User-Agent', 'IM-client/OMA1.0 Mercuro-Gold/v4.0.1631.0'),
             'Via': [FrozenViaHeader('UDP', '10.226.20.240', 6060, frozendict({'received': '10.226.20.240', 'branch': 'z9hG4bKb9d9.d70e38e1.0'})),
                     FrozenViaHeader('UDP', '10.226.20.240', 4060, frozendict({'branch': 'z9hG4bKb9d9.2d63d713.0'})),
                     FrozenViaHeader('UDP', '10.226.20.16', 1951, frozendict({'rport': 1951, 'branch': 'z9hG4bK1347267336054'}))]},
'method': 'MESSAGE',
'request_uri': FrozenSIPURI('testing.com', 'tihoparvi', None, None, False, frozendict({}), frozendict({}))}

==> core_trace.txt <==
2012-09-10 07:25:45.199109 [sylk-server 2740] (5) tsx0x7f53f0011: Request to terminate transaction
2012-09-10 07:25:45.199473 [sylk-server 2740] (5) tsx0x7f53f0011: State changed from Trying to Terminated, event=USER
2012-09-10 07:25:45.199624 [sylk-server 2740] (5) tdta0x7f53f001: Destroying txdata Response msg 500/MESSAGE/cseq=1 (tdta0x7f53f0010320)
2012-09-10 07:25:45.300690 [sylk-server 2740] (5) tsx0x7f53f0011: Timeout timer event
2012-09-10 07:25:45.301033 [sylk-server 2740] (5) tsx0x7f53f0011: State changed from Terminated to Destroyed, event=TIMER
2012-09-10 07:25:45.302236 [sylk-server 2740] (5) tsx0x7f53f0011: Transaction destroyed!

And Sylk throws the following in the console:


Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 773, in runUntilCurrent
    f(*a, **kw)
  File "/usr/lib/python2.7/dist-packages/sylk/applications/__init__.py", line 137, in handle_notification
    handler(notification)
  File "/usr/lib/python2.7/dist-packages/sylk/applications/__init__.py", line 196, in _NH_SIPIncomingRequestGotRequest
    app.incoming_sip_message(request, notification.data)
  File "/usr/lib/python2.7/dist-packages/sylk/applications/xmppgateway/__init__.py", line 139, in incoming_sip_message
    content_type = data.headers.get('Content-Type', Null)[0]
TypeError: 'sipsimple.core._core.FrozenContentTypeHeader' object does not support indexing
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 773, in runUntilCurrent
    f(*a, **kw)
  File "/usr/lib/python2.7/dist-packages/sylk/applications/__init__.py", line 137, in handle_notification
    handler(notification)
  File "/usr/lib/python2.7/dist-packages/sylk/applications/__init__.py", line 196, in _NH_SIPIncomingRequestGotRequest
    app.incoming_sip_message(request, notification.data)
  File "/usr/lib/python2.7/dist-packages/sylk/applications/xmppgateway/__init__.py", line 139, in incoming_sip_message
    content_type = data.headers.get('Content-Type', Null)[0]
TypeError: 'sipsimple.core._core.FrozenContentTypeHeader' object does not support indexing

Any help appreciated.

Thanks,
Tiho

________________________________
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20120910/8802e6cf/attachment-0001.html>


More information about the SIPBeyondVoIP mailing list