<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Sasmita,<br>
<br>
As MESSAGE does not create any dialog (at SIP level) and no
Contact hdr is present, you may rely only on transaction related
data, like to look in the VIA stack and identify the sender by the
last/bottom VIA header.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
<a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
<div class="moz-cite-prefix">On 03/26/2018 02:55 PM, Sasmita Panda
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALf-Q44mD9Yx+HfrmPJJn3_7cin+TSUM2TjoPByNfav=q4mtHw@mail.gmail.com">
<div dir="ltr">Hi All ,
<div><br>
</div>
<div> I am using opensips-1.11.2 as a chat server . </div>
<div><br>
</div>
<div>Below is the flow for chat . </div>
<div>Browser ----> Openisps ------> Client </div>
<div><br>
</div>
<div>When from browser chat get initiated , it generate a unique
ID and use that as From-user . If there is single Client then
there is no issue . After initiating chat other chats also get
delivered to the same client every time . </div>
<div><br>
</div>
<div>When there is 2 client registered from different location
and ready to take chat, Opensips send chat randomly . If 1st
Message delivered to Client1 then 2nd goes to Client2 . Which
creates problem for me . </div>
<div><br>
</div>
<div><br>
</div>
<div>I am not able to save anything as dialogue as Message
Request wont create any dialogue and also in message there is
no Contact Header added so that I can save this and forward
consecutive requests to the same contact . </div>
<div><br>
</div>
<div><br>
</div>
<div>What I need is , I wanted to save the destination IP after
DB look-up . And want to store that against the from-user of
browser who generated the first request . </div>
<div>So that comparing the same I can forward consecutive
requests to the same IP .</div>
<div><br>
</div>
<div>How I will do this ? Any idea please help . </div>
<div><br>
</div>
<div><br clear="all">
<div>
<div class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>