[OpenSIPS-Users] Text Message Duplication

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Jun 20 10:09:59 CEST 2012


Hi Arjun,

It looks like your UAC is behind a NAT, and during each re-registration 
a different port is allocated on the external side of the NAT - check 
the port in the "received" field.

What you can do is to force the registration of only one contact, new 
contacts overwriting the existing ones.

How to do that:
     save("location","c1f");
see:
     http://www.opensips.org/html/docs/modules/1.8.x/registrar.html#id292725

c1 - limit to only one contact per user
f - overwrite existing one

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 06/20/2012 09:51 AM, Arjun Shankar K S wrote:
> Hi Bogdan,
>
> Thanks you very much for your response and time.
>
> You are correct. I see that there are multiple registrations of the 
> UAC as below,
>
> root at ubuntu:/home/ubuntu# opensipsctl ul show 2002
> Contact:: 
> <sip:2002 at 10.0.2.15:2292;line=2b9bd2931a28bec>;q=;expires=1140;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:56482>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 10.0.2.15:4241;line=d9258f9d45e7edb>;q=;expires=1378;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:56363>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 203.199.234.3:56363;line=d9258f9d45e7edb>;q=;expires=1378;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:56363>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 10.0.2.15:1314;line=227a18946deeb5c>;q=;expires=1744;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:7618>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 203.199.234.3:7618;line=227a18946deeb5c>;q=;expires=1745;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:7618>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 10.0.2.15:1532;line=d49e0d47bf6a7e6>;q=;expires=1843;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:11548>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 203.199.234.3:11548;line=d49e0d47bf6a7e6>;q=;expires=1843;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:11548>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 10.0.2.15:4148;line=b5596b919092c4d>;q=;expires=1943;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:28003>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 203.199.234.3:28003;line=b5596b919092c4d>;q=;expires=1943;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:28003>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 10.0.2.15:1474;line=2f36ab8544e1a5d>;q=;expires=2057;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:48797>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 203.199.234.3:48797;line=2f36ab8544e1a5d>;q=;expires=2057;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:48797>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 10.0.2.15:4181;line=2b97093967704a6>;q=;expires=2164;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:28377>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
> Contact:: 
> <sip:2002 at 10.0.2.15:2061;line=fe5be512921db8a>;q=;expires=2755;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<sip:203.199.234.3:53121>;user_agent=<Lockfone/3.4.0 
> (eXosip2/unknown)>
>
>
> In my opensips.cfg file, I have the following config regarding usrloc 
> module,
>
> # ----- usrloc params -----
> modparam("usrloc", "db_mode",   2)
> modparam("usrloc", "db_url",
>         "mysql://opensips:opensipsrw@localhost/opensips")
>
> Can you let me know what has to be done to resolve this issue.
>
> Also can you please clarify,
> 1. What does the q parameter in the SDP signify?
> 2. Why does the value of line param keep changing? Is it correct to 
> have it like that?
>
> I am a newbie to opensips and trying to understand its working so 
> please support me.
>
> Thanks and regards,
> Arjun
>
>
> ----- Original Message -----
> From: "Bogdan-Andrei Iancu" <bogdan at opensips.org>
> To: "OpenSIPS users mailling list" <users at lists.opensips.org>
> Cc: "Arjun Shankar K S" <arjun_ks at kalycito.com>
> Sent: Wednesday, June 20, 2012 1:38:41 AM GMT +05:30 Chennai, Kolkata, 
> Mumbai, New Delhi
> Subject: Re: [OpenSIPS-Users] Text Message Duplication
>
> Hi Arjun,
>
> A simple explanation is that your UAC might be registered twice with 
> opensips (has 2 records in usrloc) -> check with "opensipsctl ul show".
>
> If so, opensips will do parallel forking (for the received requests) 
> to all registered contacts.
>
> Regards,
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
> On 06/19/2012 01:24 PM, Arjun Shankar K S wrote:
>
>     Hi All,
>
>     Greeting to everyone!!!
>
>     I have installed opensips 1.7.1 with RTP Proxy. I am facing the
>     following issue, When I send a Text Message to any UAC, I receive
>     2 Messages instead of one at the receiver UAC. I have tried with
>     different SIP Clients but the problem persists.
>
>     I am newbie to opensips!! Any advice is sincerely appreciated.
>
>     Thanks,
>     Arjun
>
>
>     _______________________________________________
>     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/20120620/54a36152/attachment.htm>


More information about the Users mailing list