<html><head><style type='text/css'>p { margin: 0; }</style><style type='text/css'>body { font-family: 'Times New Roman'; font-size: 12pt; color: #000000}</style></head><body>Hi Bogdan<br><br>Thanks you very much for the support. It solved the issue.<br><br>Can you suggest a proper tutorial for a better understanding of opensips 's working.<br><br>Thanks,<br>Arjun<br><br>----- Original Message -----<br>From: "Bogdan-Andrei Iancu" <bogdan@opensips.org><br>To: "Arjun Shankar K S" <arjun_ks@kalycito.com><br>Cc: "OpenSIPS users mailling list" <users@lists.opensips.org><br>Sent: Wednesday, June 20, 2012 1:39:59 PM 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>
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" target="_blank">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">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">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">
<style>p { margin: 0; }</style>
<style>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="about:blank" target="_blank"><sip:2002@10.0.2.15:2292;line=2b9bd2931a28bec></a>;q=;expires=1140;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:56482></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@10.0.2.15:4241;line=d9258f9d45e7edb></a>;q=;expires=1378;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:56363></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@203.199.234.3:56363;line=d9258f9d45e7edb></a>;q=;expires=1378;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:56363></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@10.0.2.15:1314;line=227a18946deeb5c></a>;q=;expires=1744;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:7618></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@203.199.234.3:7618;line=227a18946deeb5c></a>;q=;expires=1745;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:7618></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@10.0.2.15:1532;line=d49e0d47bf6a7e6></a>;q=;expires=1843;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:11548></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@203.199.234.3:11548;line=d49e0d47bf6a7e6></a>;q=;expires=1843;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:11548></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@10.0.2.15:4148;line=b5596b919092c4d></a>;q=;expires=1943;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:28003></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@203.199.234.3:28003;line=b5596b919092c4d></a>;q=;expires=1943;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:28003></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@10.0.2.15:1474;line=2f36ab8544e1a5d></a>;q=;expires=2057;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:48797></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@203.199.234.3:48797;line=2f36ab8544e1a5d></a>;q=;expires=2057;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:48797></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@10.0.2.15:4181;line=2b97093967704a6></a>;q=;expires=2164;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:28377></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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="about:blank" target="_blank"><sip:2002@10.0.2.15:2061;line=fe5be512921db8a></a>;q=;expires=2755;flags=0x0;cflags=0xC0;socket=<udp:10.202.93.216:5060>;methods=0xFFFFFFFF;received=<a class="moz-txt-link-rfc2396E" href="about:blank" target="_blank"><sip:203.199.234.3:53121></a>;user_agent=<Lockfone/3.4.0
(eXosip2/unknown)></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" target="_blank"><bogdan@opensips.org></a><br>
To: "OpenSIPS users mailling list"
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org" target="_blank"><users@lists.opensips.org></a><br>
Cc: "Arjun Shankar K S" <a class="moz-txt-link-rfc2396E" href="mailto:arjun_ks@kalycito.com" target="_blank"><arjun_ks@kalycito.com></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>
<tt>Hi Arjun,<br>
<br>
A simple explanation is that your UAC might be registered twice
with opensips (has 2 records in usrloc) -> 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 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 class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>