[SR-Users] sr-users Digest, Vol 119, Issue 28

Yufei Tao yufei.tao at gmail.com
Thu Apr 30 12:43:59 CEST 2015


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 at gmail.com>
> To: sr-users at lists.sip-router.org
> Subject: [SR-Users] sht_rm_name_re() question
> Message-ID:
>         <
> CAJwP0iTwhcTj6SJWABHj+eGDqQv13wV_e1wC2s1Na2+WoSuJGA at 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 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-0001.html
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150430/ccd11b2b/attachment.html>


More information about the sr-users mailing list