[SIP Beyond VoIP] MSRP/XMPP Chat function doesn't work Sylk-serv 2.2.0

Saúl Ibarra Corretgé saul at ag-projects.com
Fri Nov 9 13:58:05 CET 2012


On Nov 9, 2012, at 1:30 PM, Hadzhiev, Tihomir wrote:

> Hi All,
> I have today upgraded to the latest Sylk-server from source code, e.g. I’m at version 2.2.0. Have backed up the previous one, e.g. 2.0.0 which I was using up to date. I think there is a problem with the latest 2.2.0, or it might be problem with my setup. But if I rollback to the 2.0.0 the whole setup I’m having works.
> So what does work for me is:
> What doesn’t work for me is
> Here are the following errors thrown in the Sylk console if I:
> 1.       Try to establish chat sessions from IMS Client towards XMPP Client:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 773, in runUntilCurrent
>     f(*a, **kw)
>   File "/root/src/sylkserver/sylk/session.py", line 619, in handle_notification
>     session.init_incoming(notification.sender, notification.data)
>   File "/root/src/sylkserver/sylk/session.py", line 321, in init_incoming
>     stream = stream_type.new_from_sdp(self, remote_sdp, index)
>   File "/usr/lib/python2.7/dist-packages/sipsimple/streams/msrp.py", line 326, in new_from_sdp
>     expected_transport = 'TCP/TLS/MSRP' if account.msrp.transport=='tls' else 'TCP/MSRP'
> AttributeError: 'Session' object has no attribute 'msrp'
> I made a wireshark dump and I see the expected transport inside set as TCP/MSRP ( And I do definitely have the TLS disabled in the config.ini
> 2.       Try to establish chat sessions from XMPP Client towards IMS Client:
> Starting factory <sylk.applications.xmppgateway.xmpp.DeferredS2SClientFactory object at 0x7fc074acf750>
> /etc/resolv.conf changed, reparsing
> Resolver added ('', 53) to server list
> DNSDatagramProtocol starting on 15920
> Starting protocol <twisted.names.dns.DNSDatagramProtocol object at 0x7fc074adba50>
> (UDP Port 15920 Closed)
> Stopping protocol <twisted.names.dns.DNSDatagramProtocol object at 0x7fc074adba50>
> Incoming connection 0 from u'testing.com' to u'open-ims.test' established
> Stopping factory <sylk.applications.xmppgateway.xmpp.DeferredS2SClientFactory object at 0x7fc074acf750>
> 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 197, in _do_send
>     waiter.switch(result)
>   File "/usr/lib/python2.7/dist-packages/eventlib/api.py", line 235, in _spawn_startup
>     return cb(*args, **kw)
>   File "/root/src/sylkserver/sylk/applications/xmppgateway/im.py", line 137, in _start_outgoing_sip_session
>     self.msrp_stream = ChatStream()
> TypeError: __init__() takes at least 2 arguments (1 given)
> Again the same message flows are working for me with the old version.
> Please advise if you think I have a problem in my setup, or if something changed.

Do you have python-sipsimple 0.31.0 installed? There have been internal API changes. We'l make a new minor release for SylkServer soon, in the meanwhile you can use darcs to download the latest version.

PS: I cc'd the list, you got the email address wrong ;-)

Saúl Ibarra Corretgé
AG Projects

More information about the SIPBeyondVoIP mailing list