[SR-Users] sht_rm_name_re() question

Yufei Tao yufei.tao at gmail.com
Wed Apr 29 19:01:26 CEST 2015


Hi

I've hit a problem with sht_rm_name_re() in htable module. I was calling it
like this:

sht_rm_name_re("Dlg=>$var(callid)::tenant");

But when I used sipp to generate 600 concurrent calls for example, I called
this function when receiving BYE. But it removed more entries than it
should. Seems when removing removing some entry with callid
1-3798 at 192.168.60.80, it also removed entries for [1-9]1-3798 at 192.168.60.80.


How do I add '^' in front and '$' at the end of the regexp string when
calling this function please? Here I don't really need regexp in fact, just
want to do an exact match. But I didn't find any other functions for
deleting entries.

Thank you!
Yufei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150429/b6c43e79/attachment.html>


More information about the sr-users mailing list