<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi All, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I think I have mostly solved my problems with the session establishments, at least from the SIP/MSRP direction towards the XMPP server. And basically you guys were right that the client I’m using is not sending the invites correctly. I
 will have to deal a bit later with that, together with the XMPP -> MSRP sessions.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However I have another problem now. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to make the following message flow: SIP/MSRP -> SYLK -> XMPP Server -> XMPP Backend for Facebook -> Facebook. That’s almost possible to be done, but the main problem I’m having is when I want to address message towards FaceBook
 user. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Currently facebook users appear in XMPP world if a backend is used the following way ( and we know they do not support federation )
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p>-739277318\40chat.facebook.com@facebook.testing.com<o:p></o:p></p>
<p class="MsoNormal">What I’m having as a problem of course is the address and particularly the “\” char over there. Do you have idea how the backslash should be represented correctly? As when I enter it as a escape character, Sylk Server complains about the
 SIP addressing:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m entering the address the following way:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p><a href="mailto:-739277318%5C40chat.facebook.com@facebook.testing.com">-739277318%5C40chat.facebook.com@facebook.testing.com</a><o:p></o:p></p>
<p><o:p> </o:p></p>
<p>Then Sylk complains with the following errors:<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>[xmppgateway] New incoming SIP MESSAGE from sip:alice@open-ims.test<o:p></o:p></p>
<p>Traceback (most recent call last):<o:p></o:p></p>
<p>  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 766, in runUntilCurrent<o:p></o:p></p>
<p>    f(*a, **kw)<o:p></o:p></p>
<p>  File "/usr/local/lib/python2.7/dist-packages/sylk/applications/__init__.py", line 137, in handle_notification<o:p></o:p></p>
<p>    handler(notification)<o:p></o:p></p>
<p>  File "/usr/local/lib/python2.7/dist-packages/sylk/applications/__init__.py", line 196, in _NH_SIPIncomingRequestGotRequest<o:p></o:p></p>
<p>    app.incoming_sip_message(request, notification.data)<o:p></o:p></p>
<p>  File "/usr/local/lib/python2.7/dist-packages/sylk/applications/xmppgateway/__init__.py", line 172, in incoming_sip_message<o:p></o:p></p>
<p>    recipient = Identity(FrozenURI.parse(to_uri))<o:p></o:p></p>
<p>  File "/usr/local/lib/python2.7/dist-packages/sylk/applications/xmppgateway/datatypes.py", line 62, in parse<o:p></o:p></p>
<p>    raise ValueError('invalid SIP uri: %s' % value)<o:p></o:p></p>
<p>ValueError: invalid SIP uri: sip:-739277318\40chat.facebook.com@facebook.testing.com<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And at the end basically in the Sylk  ( started with –no-fork ) the Value Error represents the address which I want to see sent towards the XMPP server<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks, <o:p></o:p></p>
<p class="MsoNormal">Tihomir<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">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.<br>
</font>
<br clear=all> 
</body>
</html>