[OpenSIPS-Users] I need help to store the contact details after DB lookup and use the same value latter .

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Apr 4 11:50:08 EDT 2018


Hi Sasmita,

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.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
OpenSIPS Summit 2018
   http://www.opensips.org/events/Summit-2018Amsterdam

On 03/26/2018 02:55 PM, Sasmita Panda wrote:
> Hi All ,
>
>      I am using opensips-1.11.2 as a chat server .
>
> Below is the flow for chat .
> Browser ----> Openisps ------> Client
>
> 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 .
>
> 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 .
>
>
> 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 .
>
>
> 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 .
> So that comparing the same I can forward consecutive requests to the 
> same IP .
>
> How I will do this ? Any idea please help .
>
>
> */Thanks & Regards/*
> /Sasmita Panda/
> /Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180404/7a5dab9b/attachment.html>


More information about the Users mailing list