<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 29/04/15 19:01, Yufei Tao wrote:<br>
</div>
<blockquote
cite="mid:CAJwP0iTwhcTj6SJWABHj+eGDqQv13wV_e1wC2s1Na2+WoSuJGA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi<br>
<br>
</div>
I've hit a problem with sht_rm_name_re() in htable
module. I was calling it like this:<br>
<br>
sht_rm_name_re("Dlg=>$var(callid)::tenant");<br>
<br>
</div>
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 <a moz-do-not-send="true"
href="mailto:1-3798@192.168.60.80">1-3798@192.168.60.80</a>,
it also removed entries for [1-9]<a moz-do-not-send="true"
href="mailto:1-3798@192.168.60.80">1-3798@192.168.60.80</a>.
<br>
<br>
</div>
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.<br>
</div>
</div>
</div>
</blockquote>
The ^ has to be added after =>. For $, add $$ at the end, because
of variable evaluation a single $ will not work.<br>
<br>
Also, maybe you can try with the operators from $shtcn() -- there is
one for string comparison -- I don't recall if they are also for the
functions, but a test should be fast:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.kamailio.org/wiki/cookbooks/4.2.x/pseudovariables#shtcn_htable_exp">http://www.kamailio.org/wiki/cookbooks/4.2.x/pseudovariables#shtcn_htable_exp</a><br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>