[sr-dev] [kamailio/kamailio] htable: add new functions sht_rm_name_re_pv and sht_rm_value_pv to support variables (#1121)

Emmanuel Schmidbauer notifications at github.com
Mon May 15 13:58:24 CEST 2017


problem scenario is: 
need to clear htable cache dynamically (using an event-route + nsq message)
but `sht_rm_name_re` and `sht_rm_value_re` do not support variables as parameters.
solution in patch:
allow variables by adding a 2nd parameter to each function
if called with one parameter like `sht_rm_value_re("ha=>.*");` 
traditional behavior is executed.
if passing a 2nd parameter like
 `sht_rm_value_re("$var(htable)", ".*$var(match)"); `
new behavior is executed which allows variables.
I hope that makes sense.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1121#issuecomment-301454269
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170515/9fe9058b/attachment.html>


More information about the sr-dev mailing list