<div dir="ltr"><div><div>Hi <br></div><br>I've realised that I should put '^' after "Dlg=>" (rather than before), i.e. sht_rm_name_re("Dlg=>^$var(callid)::tenant"); - this works. <br><br>But it doesn't seem to like '$' at the end of the regexp - Kamailio failed to start up with error:<br>"ERROR: htable [ht_var.c:176]: pv_parse_ht_name(): wrong format". Any way to use the end-of-line symbol?<br><br></div><div>Cheers,<br></div>Yufei<br><div><div><div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
------------------------------<br>
<br>
Message: 10<br>
Date: Wed, 29 Apr 2015 18:01:26 +0100<br>
From: Yufei Tao <<a href="mailto:yufei.tao@gmail.com" target="_blank">yufei.tao@gmail.com</a>><br>
To: <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
Subject: [SR-Users] sht_rm_name_re() question<br>
Message-ID:<br>
        <<a href="mailto:CAJwP0iTwhcTj6SJWABHj%2BeGDqQv13wV_e1wC2s1Na2%2BWoSuJGA@mail.gmail.com" target="_blank">CAJwP0iTwhcTj6SJWABHj+eGDqQv13wV_e1wC2s1Na2+WoSuJGA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi<br>
<br>
I've hit a problem with sht_rm_name_re() in htable module. I was calling it<br>
like this:<br>
<br>
sht_rm_name_re("Dlg=>$var(callid)::tenant");<br>
<br>
But when I used sipp to generate 600 concurrent calls for example, I called<br>
this function when receiving BYE. But it removed more entries than it<br>
should. Seems when removing removing some entry with callid<br>
<a href="mailto:1-3798@192.168.60.80" target="_blank">1-3798@192.168.60.80</a>, it also removed entries for [1-9]<a href="mailto:1-3798@192.168.60.80" target="_blank">1-3798@192.168.60.80</a>.<br>
<br>
<br>
How do I add '^' in front and '$' at the end of the regexp string when<br>
calling this function please? Here I don't really need regexp in fact, just<br>
want to do an exact match. But I didn't find any other functions for<br>
deleting entries.<br>
<br>
Thank you!<br>
Yufei<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20150429/b6c43e79/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20150429/b6c43e79/attachment-0001.html</a>><br></blockquote></div></div></div></div></div></div>