------------------------------
Message: 10
Date: Wed, 29 Apr 2015 18:01:26 +0100
From: Yufei Tao <yufei.tao@gmail.com>
To: sr-users@lists.sip-router.org
Subject: [SR-Users] sht_rm_name_re() question
Message-ID:
<CAJwP0iTwhcTj6SJWABHj+eGDqQv13wV_e1wC2s1Na2+WoSuJGA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
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@192.168.60.80, it also removed entries for [1-9]1-3798@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-0001.html>