<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML - förformaterad Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;
        mso-fareast-language:SV;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:SV;}
span.HTML-frformateradChar
        {mso-style-name:"HTML - förformaterad Char";
        mso-style-priority:99;
        mso-style-link:"HTML - förformaterad";
        font-family:Consolas;
        color:black;}
span.E-postmall22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-postmall23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=SV link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:windowtext'>Hi thanks for the patch, I will test this once we have updated to 2.4 in the middle of that atm.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:windowtext'>Br/Olle<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:windowtext'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='color:windowtext;mso-fareast-language:SV'>Från:</span></b><span style='color:windowtext;mso-fareast-language:SV'> Users [mailto:users-bounces@lists.opensips.org] <b>För </b>Liviu Chircu<br><b>Skickat:</b> den 24 maj 2018 08:26<br><b>Till:</b> users@lists.opensips.org<br><b>Ämne:</b> Re: [OpenSIPS-Users] Remove contacts frol location table with same SIP_instance ID<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p><tt><span style='font-size:10.0pt'>Hi Olle,</span></tt><span style='mso-fareast-language:SV'><o:p></o:p></span></p><p><tt><span style='font-size:10.0pt'>I pushed an additional filter for the remove() function on the development (master) branch -- "remove by sip.instance" [1]. If demand for this feature is popular (with all the PN setups nowadays), we may backport it to 2.4 during some future minor release.</span></tt><o:p></o:p></p><p><tt><span style='font-size:10.0pt'>Prior to this patch, you could not achieve this kind of filtering at all, as "+sip.instance" is a Contact header parameter, and not a Contact URI parameter. So when you do a lookup(), although you load up all contacts, you lose the "+sip.instance" semantics of each one because only the Contact URIs are relevant for the routing.</span></tt><o:p></o:p></p><p><tt><span style='font-size:10.0pt'>Please let me know if this works for you.</span></tt><o:p></o:p></p><p><tt><span style='font-size:10.0pt'>Best regards,</span></tt><o:p></o:p></p><p><tt><span style='font-size:10.0pt'>[1]: <a href="http://www.opensips.org/html/docs/modules/3.0.x/registrar.html#func_remove">http://www.opensips.org/html/docs/modules/3.0.x/registrar.html#func_remove</a></span></tt><o:p></o:p></p><pre>Liviu Chircu<o:p></o:p></pre><pre>OpenSIPS Developer<o:p></o:p></pre><pre><a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre><div><p class=MsoNormal>On 14.04.2018 17:55, Olle Frimanson wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US>I wonder if somebody can point me in the right direction. When mobile devices goes to background it’s fairly common with both iOS and Androids socket behavior that a unregister don’t reach the SIP server.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>We see a lot of multiple registrations from the same user with same SIP_instance ID.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>When a new registration comes in I would like to remove registrations from the same user and SIP_Instance ID but keep all others so calls can fork in the proper way.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>So if anybody can point me in the right direction it would be much appreciated.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>BR/Olle</span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:SV'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>Users mailing list<o:p></o:p></pre><pre><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre><pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='mso-fareast-language:SV'><o:p> </o:p></span></p></div></body></html>