[SIP Beyond VoIP] MSRP/XMPP Chat function doesn't work Sylk-serv 2.2.0
Hadzhiev, Tihomir
tihomir.hadzhiev at acision.com
Fri Nov 9 14:45:59 CET 2012
Hi Saul,
Thanks for the tip :) I had to indeed upgrade also the Ubuntu system after the upgrade of Sylk. So now it looks like working :)
Thanks a lot for the tip.
Cheers,
Tiho
-----Original Message-----
From: Saúl Ibarra Corretgé [mailto:saul at ag-projects.com]
Sent: 09 November 2012 13:58
To: Hadzhiev, Tihomir
Cc: sipbeyondvoip at lists.ag-projects.com
Subject: Re: MSRP/XMPP Chat function doesn't work Sylk-serv 2.2.0
Hi,
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:
>
> SIP<->XMPP
>
> What doesn't work for me is
>
> MSRP<->XMPP
>
> 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
> ('10.226.20.240', 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
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.
More information about the SIPBeyondVoIP
mailing list