<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi Arjun,<br>
      <br>
      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.<br>
      <br>
      What you can do is to force the registration of only one contact,
      new contacts overwriting the existing ones.<br>
      <br>
      How to do that:<br>
          save("location","c1f");<br>
      see:<br>
         
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.8.x/registrar.html#id292725">http://www.opensips.org/html/docs/modules/1.8.x/registrar.html#id292725</a><br>
      <br>
      c1 - limit to only one contact per user<br>
      f - overwrite existing one<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></pre>
    <br>
    On 06/20/2012 09:51 AM, Arjun Shankar K S wrote:
    <blockquote
      cite="mid:15697648.11891340175092218.JavaMail.root@mail.vlinksys.com"
      type="cite">
      <style type="text/css">p { margin: 0; }</style>
      <style type="text/css">body { font-family: 'Times New Roman'; font-size: 12pt; color: #000000}</style>Hi
      Bogdan,<br>
      <br>
      Thanks you very much for your response and time.<br>
      <br>
      You are correct. I see that there are multiple registrations of
      the UAC as below,<br>
      <br>
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">root@ubuntu:/home/ubuntu# opensipsctl ul show 2002</span><br
        style="font-family: Courier,Courier New,mono; font-style:
        italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@10.0.2.15:2292;line=2b9bd2931a28bec">&lt;sip:2002@10.0.2.15:2292;line=2b9bd2931a28bec&gt;</a>;q=;expires=1140;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:56482">&lt;sip:203.199.234.3:56482&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@10.0.2.15:4241;line=d9258f9d45e7edb">&lt;sip:2002@10.0.2.15:4241;line=d9258f9d45e7edb&gt;</a>;q=;expires=1378;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:56363">&lt;sip:203.199.234.3:56363&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@203.199.234.3:56363;line=d9258f9d45e7edb">&lt;sip:2002@203.199.234.3:56363;line=d9258f9d45e7edb&gt;</a>;q=;expires=1378;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:56363">&lt;sip:203.199.234.3:56363&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@10.0.2.15:1314;line=227a18946deeb5c">&lt;sip:2002@10.0.2.15:1314;line=227a18946deeb5c&gt;</a>;q=;expires=1744;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:7618">&lt;sip:203.199.234.3:7618&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@203.199.234.3:7618;line=227a18946deeb5c">&lt;sip:2002@203.199.234.3:7618;line=227a18946deeb5c&gt;</a>;q=;expires=1745;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:7618">&lt;sip:203.199.234.3:7618&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@10.0.2.15:1532;line=d49e0d47bf6a7e6">&lt;sip:2002@10.0.2.15:1532;line=d49e0d47bf6a7e6&gt;</a>;q=;expires=1843;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:11548">&lt;sip:203.199.234.3:11548&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@203.199.234.3:11548;line=d49e0d47bf6a7e6">&lt;sip:2002@203.199.234.3:11548;line=d49e0d47bf6a7e6&gt;</a>;q=;expires=1843;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:11548">&lt;sip:203.199.234.3:11548&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@10.0.2.15:4148;line=b5596b919092c4d">&lt;sip:2002@10.0.2.15:4148;line=b5596b919092c4d&gt;</a>;q=;expires=1943;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:28003">&lt;sip:203.199.234.3:28003&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@203.199.234.3:28003;line=b5596b919092c4d">&lt;sip:2002@203.199.234.3:28003;line=b5596b919092c4d&gt;</a>;q=;expires=1943;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:28003">&lt;sip:203.199.234.3:28003&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@10.0.2.15:1474;line=2f36ab8544e1a5d">&lt;sip:2002@10.0.2.15:1474;line=2f36ab8544e1a5d&gt;</a>;q=;expires=2057;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:48797">&lt;sip:203.199.234.3:48797&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@203.199.234.3:48797;line=2f36ab8544e1a5d">&lt;sip:2002@203.199.234.3:48797;line=2f36ab8544e1a5d&gt;</a>;q=;expires=2057;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:48797">&lt;sip:203.199.234.3:48797&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@10.0.2.15:4181;line=2b97093967704a6">&lt;sip:2002@10.0.2.15:4181;line=2b97093967704a6&gt;</a>;q=;expires=2164;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:28377">&lt;sip:203.199.234.3:28377&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">Contact::
        <a class="moz-txt-link-rfc2396E" href="sip:2002@10.0.2.15:2061;line=fe5be512921db8a">&lt;sip:2002@10.0.2.15:2061;line=fe5be512921db8a&gt;</a>;q=;expires=2755;flags=0x0;cflags=0xC0;socket=&lt;udp:10.202.93.216:5060&gt;;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="sip:203.199.234.3:53121">&lt;sip:203.199.234.3:53121&gt;</a>;user_agent=&lt;Lockfone/3.4.0
        (eXosip2/unknown)&gt;</span><br style="font-family:
        Courier,Courier New,mono; font-style: italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;"></span><br>
      <br>
      In my opensips.cfg file, I have the following config regarding
      usrloc module,<br>
      <br>
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;"># ----- usrloc params -----</span><br
        style="font-family: Courier,Courier New,mono; font-style:
        italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">modparam("usrloc", "db_mode",   2)</span><br
        style="font-family: Courier,Courier New,mono; font-style:
        italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">modparam("usrloc", "db_url",</span><br
        style="font-family: Courier,Courier New,mono; font-style:
        italic;">
      <span style="font-family: Courier,Courier New,mono; font-style:
        italic;">       
        "mysql://opensips:opensipsrw@localhost/opensips")</span><br>
      <br>
      Can you let me know what has to be done to resolve this issue.<br>
      <br>
      Also can you please clarify,<br>
      1. What does the q parameter in the SDP signify?<br>
      2. Why does the value of line param keep changing? Is it correct
      to have it like that?<br>
      <br>
      I am a newbie to opensips and trying to understand its working so
      please support me.<br>
      <br>
      Thanks and regards,<br>
      Arjun<br>
      <br>
      <br>
      ----- Original Message -----<br>
      From: "Bogdan-Andrei Iancu" <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org">&lt;bogdan@opensips.org&gt;</a><br>
      To: "OpenSIPS users mailling list"
      <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org">&lt;users@lists.opensips.org&gt;</a><br>
      Cc: "Arjun Shankar K S" <a class="moz-txt-link-rfc2396E" href="mailto:arjun_ks@kalycito.com">&lt;arjun_ks@kalycito.com&gt;</a><br>
      Sent: Wednesday, June 20, 2012 1:38:41 AM GMT +05:30 Chennai,
      Kolkata, Mumbai, New Delhi<br>
      Subject: Re: [OpenSIPS-Users] Text Message Duplication<br>
      <br>
      <link href="/zimbra/css/msgview.css?v=080321160509"
        rel="stylesheet">
      <tt>Hi Arjun,<br>
        <br>
        A simple explanation is that your UAC might be registered twice
        with opensips (has 2 records in usrloc) -&gt; check with
        "opensipsctl ul show".<br>
        <br>
        If so, opensips will do parallel forking (for the received
        requests) to all registered contacts.<br>
        <br>
        Regards, <br>
      </tt>
      <pre class="moz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
      <br>
      On 06/19/2012 01:24 PM, Arjun Shankar K S wrote:
      <blockquote
        cite="mid:2340363.3581340101492450.JavaMail.root@mail.vlinksys.com">
        <style>p { margin: 0; }</style>
        <style>body { font-family: 'Times New Roman'; font-size: 12pt; color: #000000}</style>Hi

        All,<br>
        <br>
        Greeting to everyone!!!<br>
        <br>
        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.<br>
        <br>
        I am newbie to opensips!! Any advice is sincerely appreciated.<br>
        <br>
        Thanks,<br>
        Arjun<br>
        <pre><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
      </blockquote>
    </blockquote>
  </body>
</html>