<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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</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=Section1>
<p class=MsoNormal>We have developed some middleware that handles some errors.
When it does, it reverses the from and to elements and adds an error element to
form an “error message”. But the jabber server is kicking the
remote user out of the chat room where the original message came from.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Original message:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><message xmlns="jabber:client" from="<b>relroom@conference.cglow.reldomain.com/reluser1</b>"
id="Gh7px-26" to="<b>secuser1@cghigh.secdomain.com/TransVerse</b>"
type="groupchat" xml:lang="en"><body
xml:lang="en">confidential message 9</body><x
xmlns="urn:us:gov:ic:ism:v2" classification="U"
declassManualReview="true" ownerProducer="USA"
x-label_bg_color="#006400" x-label_fg_color="#FFFFFF"
x-portionMarking="U" x-securityBanner="UNCLASSIFIED"
xml:lang="en"/><addresses
xmlns="http://jabber.org/protocol/address"><address
delivered="true" jid="reluser1@cglow.reldomain.com/BuddySpace2.5Plus
JFCOM/J9" type="to"/><address delivered="true"
jid="secuser1@cghigh.secdomain.com/TransVerse"
type="to"/></addresses></message><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>[Error detected and handled]<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Returned “error message”:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><message xmlns="jabber:client" from="<b>secuser1@cghigh.secdomain.com</b>/TransVerse"
id="Gh7px-26" to="<b>relroom@conference.cglow.reldomain.com</b>/reluser1"
type="error" xml:lang="en"><body
xml:lang="en">confidential message 9</body><addresses
xmlns="http://jabber.org/protocol/address"><address
delivered="true"
jid="reluser1@cglow.reldomain.com/BuddySpace2.5Plus JFCOM/J9"
type="to"/><address delivered="true"
jid="secuser1@cghigh.secdomain.com/TransVerse"
type="to"/></addresses<b>><error type="cancel"
code="404"><remote-server-not-found
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Message rejected by
DSG</text></error></b><x xmlns="urn:us:gov:ic:ism:v2"
classification="U" declassManualReview="true" ownerProducer="USA"
x-label_bg_color="#006400" x-label_fg_color="#FFFFFF"
x-portionMarking="U" x-securityBanner="UNCLASSIFIED"
xml:lang="en"/></message><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>The next packet that gets sent is a presence-unavailable
packet from the jabber server, kicking out remote user (<a
href="mailto:secuser1@cghigh.secdomain.com">secuser1@cghigh.secdomain.com</a>)
from the local chat room (<a
href="mailto:relroom@conference.cglow.reldomain.com">relroom@conference.cglow.reldomain.com</a>):<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><presence xmlns="jabber:client" from="<b>relroom@conference.cglow.reldomain.com/secuser1</b>"
id="heAq5-27" to="<b>reluser1@cglow.reldomain.com</b>/BuddySpace2.5Plus
JFCOM/J9" type="<b>unavailable</b>"
xml:lang="en"><status>Online</status><priority>0</priority><x
xmlns="http://jabber.org/protocol/muc#user"><item
affiliation="none" jid="secuser1@cghigh.secdomain.com/TransVerse"
role="none"/></x><x
xmlns="urn:us:gov:ic:ism:v2" classification="U"
ownerProducer="USA" x-label_bg_color="#006400"
x-label_fg_color="#FFFFFF" x-portionMarking="U"
x-securityBanner="UNCLASSIFIED"
xml:lang="en"/><addresses
xmlns="http://jabber.org/protocol/address"><address
delivered="true"
jid="reluser1@cglow.reldomain.com/BuddySpace2.5Plus JFCOM/J9"
type="to"/><address delivered="true"
jid="secuser1@cghigh.secdomain.com/TransVerse"
type="to"/></addresses></presence><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>It doesn’t seem to matter which error code I send
back, my remote user (secuser1) gets kicked out of my local chat room (relroom).
The “error message” never makes it to my XMPP client (Transverse).<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any ideas? What can I do so that the remote user
(secuser) doesn’t get kicked out and my “error message” makes
it to my XMPP client (Transverse)?<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>Tom K.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:16.0pt;font-family:"Comic Sans MS"'>Tom
Kalafut<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Comic Sans MS"'>I3/CG
Crew Member<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Comic Sans MS"'>Trident
Systems Inc.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Comic Sans MS"'><a
href="mailto:tommyk@tridsys.com"><span style='color:blue'>tommyk@tridsys.com</span></a><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Comic Sans MS"'>(919)388-1264<o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Comic Sans MS"'>============</span></b><b><span
style='font-size:12.0pt'><o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:10.0pt'>The opinions expressed in
this e-mail may not necessarily reflect the opinions of Trident Systems Inc.<o:p></o:p></span></b></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>