[SR-Users] Deleting extra location attribute(location_attrs table) when contact is expired

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 29 09:32:53 CEST 2019


Hello,

is the contact expired and not updated, or is about attributes set for a
REGISTER request that should be deleted with the next REGISTER updating
the expires for same contact?

Cheers,
Daniel

On 29.07.19 08:44, Pintu Lohar wrote:
>
> Hi All, 
>
>
> Regarding modparam("tm|usrloc", "xavp_contact", "ulattrs") 
>
>
> #ref
>https://www.kamailio.org/docs/modules/devel/modules/usrloc.html#usrloc.p.xavp_contact
> .
>
> There is some requirement where we need to save some extra location
> attributes to location_attrs
> <https://kamailio.org/docs/db-tables/kamailio-db-4.3.x.html#gen-db-location-attrs> tables 
> $xavp(ulattrs=>deviceIdentify)= "Some str values"  and calling
> save(“location”) , It works well and saved  location attribute table
> but  But when contact expired callback is received,
> udomain_contact_expired_db() does not it delete the extra location
> attribute from database but deleting the record from location table
> only ? 
>
> If not, is there any recommended approach to delete the extra location
> attributes from the database? or am I missing something to set?
>
>
> Alternate I was thinking could be running timer from Kamailio config
> and check last_modified time and delete those(based on our UAC expiry
> setting), is it the right approach.
>
> Kamailio Version: 5.2.0.
>
> Thanks for your valuable suggestion in advance.
>
> Regards 
>
> Pintu Lohar
>
>
>
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190729/49a9bc03/attachment.html>


More information about the sr-users mailing list