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....@gmail.com>
> To: sr-users@lists.sip-router.org
> Subject: [SR-Users] sht_rm_name_re() question
> Message-ID:
>         <
> cajwp0itwhctj6sjwabhj+egdqqv13wv_e1wc2s1na2+wosu...@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
> >
>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to