[SIP SIMPLE client] sylk is not relaying chat messages

Juha Heinanen jh at tutpro.com
Sat Apr 30 09:07:08 CEST 2011


Saúl Ibarra Corretgé writes:

> Hum, that message shouldn't be handled there, it should not be private. 
> I'll dig into that.

saul,

i added one more log call here:

                log.msg(u'recipient.uri/self.identity.uri=%s/%s' % (recipient.uri, self.identity.uri))
                if recipient.uri == self.identity.uri:
                    self.dispatch_message(session, data)
                else:
                    self.dispatch_private_message(session, data)

and got to syslog:

Apr 30 09:54:52 sip sylk-server[18300]: recipient.uri/self.identity.uri=sip:+35892345671*5393*2075 at cf.test.fi/sip:+35892345671*5393*2075 at test.fi

i.e., the two uris are not the same.  the reason is that when sipclient
joins chat conference like this:

/chat sip:+35892345671*5393*2075 at cf.test.fi

my sip proxy rewrites request uri and sends the invite to sylk like
this:

127.0.0.1:56824 -(SIP over tls)-> 127.0.0.1:5093
INVITE sip:+35892345671*5393*2075 at test.fi SIP/2.0
...
From: <sip:foo at test.fi>;tag=P.NestJIOwOen6cCgHekFk-ce5ztC4Hm
To: <sip:+35892345671*5393*2075 at cf.test.fi>

looks like sylkserver take take recipient.uri from To header of chat
INVITE.

when foo at test.fi types hello, MSRP request looks like this:

MSRP 67f6bc8806564bba SEND
To-Path: msrps://10.0.2.15:2855/684db6cfbf3b3440febf;tcp
From-Path: msrps://87.95.75.31:51223/5b50bbead879e24753d2;tcp
Message-ID: 24aaf301f5546d68
Byte-Range: 1-175/175
Success-Report: yes
Failure-Report: yes
Content-Type: message/cpim
From: <sip:foo at test.fi>
To: <sip:+35892345671*5393*2075 at cf.test.fi>
DateTime: 2011-04-30T09:46:00+03:00
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"

hello

MSRP To URI thus is the same as SIP To URI, but not the same as SIP
Request URI.  this should be ok, because proxies are allowed to rewrite
Request URI.

-- juha



More information about the SIPBeyondVoIP mailing list