[OpenSIPS-Users] Remove contacts frol location table with same SIP_instance ID

Olle Frimanson olle at zaark.com
Thu Jun 28 09:13:58 EDT 2018


Hi thanks for the patch, I will test this once we have updated to 2.4 in the
middle of that atm.

 

Br/Olle

 

Från: Users [mailto:users-bounces at lists.opensips.org] För Liviu Chircu
Skickat: den 24 maj 2018 08:26
Till: users at lists.opensips.org
Ämne: Re: [OpenSIPS-Users] Remove contacts frol location table with same
SIP_instance ID

 

Hi Olle,

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.

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.

Please let me know if this works for you.

Best regards,

[1]:
http://www.opensips.org/html/docs/modules/3.0.x/registrar.html#func_remove

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 14.04.2018 17:55, Olle Frimanson wrote:

Hi,

 

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.

 

We see a lot of multiple registrations from the same user with same
SIP_instance ID.

 

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.

 

So if anybody can point me in the right direction it would be much
appreciated.

 

BR/Olle






_______________________________________________
Users mailing list
Users at lists.opensips.org <mailto: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/20180628/1015fa75/attachment-0001.html>


More information about the Users mailing list