Hi
I've realised that I should put '^' after "Dlg=>" (rather than
before),
i.e. sht_rm_name_re("Dlg=>^$var(callid)::tenant"); - this works.
But it doesn't seem to like '$' at the end of the regexp - Kamailio failed
to start up with error:
"ERROR: htable [ht_var.c:176]: pv_parse_ht_name(): wrong format". Any way
to use the end-of-line symbol?
Cheers,
Yufei
------------------------------
Message: 10
Date: Wed, 29 Apr 2015 18:01:26 +0100
From: Yufei Tao <yufei.tao(a)gmail.com>
To: sr-users(a)lists.sip-router.org
Subject: [SR-Users] sht_rm_name_re() question
Message-ID:
<
CAJwP0iTwhcTj6SJWABHj+eGDqQv13wV_e1wC2s1Na2+WoSuJGA(a)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(a)192.168.60.80, it also removed entries for [1-9]
1-3798(a)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