<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Carsten,<div class="">a starting point could be:</div><div class="">modparam("db_redis", "keys", "pua=entry:etag&pres:pres_id,pres_uri”)</div><div class=""><br class=""></div><div class="">I’ve tested it on Kamailio 5.3.3, with default schema definition:</div><div class=""><div class=""># cat /etc/kamailio/db_redis/kamailio/pua</div><div class="">id/int,pres_uri/string,pres_id/string,event/int,expires/int,desired_expires/int,flag/int,etag/string,tuple_id/string,watcher_uri/string,call_id/string,to_tag/string,from_tag/string,cseq/int,record_route/string,contact/string,remote_contact/string,version/int,extra_headers/string,</div><div class="">7</div><div class=""><br class=""></div><div class="">and it seems to do the right thing, e.g. with having:</div><div class=""><div class="">modparam("pua", "db_url", "<a href="redis://localhost:6379/42" class="">redis://localhost:6379/42</a>”)</div><div class="">modparam("pua", "db_table", "pua")</div><div class="">modparam("pua", "db_mode", 2)</div><div class="">modparam("pua", "db_table_lock_write", 0)</div></div><div class=""><br class=""></div><div class="">the changes to database are reflected immediately, i.e. my dialoginfo and reginfo records are being written.</div><div class="">I have not checked yet what is the most efficient index structure for the pua but the BLF is working with db_redis for me.</div><div class=""><br class=""></div><div class="">Hope this helps,</div><div class="">Andrew</div><div><br class=""><blockquote type="cite" class=""><div class="">On 19.03.2020, at 13:04, Carsten Bock <<a href="mailto:carsten@ng-voice.com" class="">carsten@ng-voice.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">quick question:</div><div class="">Did anyone ever attempt to use PUA with the new db_redis? If yes, could someone share the definition for this?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Carsten<br clear="all" class=""><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">--</div><div dir="ltr" class="">Carsten Bock I CTO & Founder</div><div dir="ltr" class=""><br class=""><div style="margin: 0cm 0cm 0.0001pt; background-position: initial initial; background-repeat: initial initial;" class=""><span lang="EN-US" style="" class="">ng-voice GmbH</span><span lang="EN-US" style="color:rgb(0,112,192)" class=""><u class=""></u><u class=""></u></span></div><p style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm;background-image:initial;background-position:initial;background-repeat:initial" class=""><span lang="EN-US" style="" class="">Trostbrücke 1 I 20457 Hamburg I Germany<br class="">T +49 40 524 75 93-40 | M +49 179 2021244 I <a href="http://www.ng-voice.com/" style="color:rgb(17,85,204)" target="_blank" class=""><span style="" class="">www.ng-voice.com</span></a><u class=""></u><u class=""></u></span></p><div style="margin: 0cm 0cm 0.0001pt; background-position: initial initial; background-repeat: initial initial;" class=""><span lang="EN-US" style="" class="">Registry Office at Local Court Hamburg, HRB 120189<br class="">Managing Directors: Dr. David Bachmann, Carsten Bock</span></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br class="">Kamailio (SER) - Users Mailing List<br class=""><a href="mailto:sr-users@lists.kamailio.org" class="">sr-users@lists.kamailio.org</a><br class="">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<br class=""></div></blockquote></div><br class=""></div></body></html>