[Kamailio-Users] Test a string concatenated with an AVP
Antonio Reale
ant.reale at gmail.com
Mon Nov 16 18:44:58 CET 2009
Sorry. I forgot to say that I'm using kamailio 1.4.4.
Regards.
--
Antonio.
2009/11/16 Antonio Reale <ant.reale at gmail.com>:
> Hi all,
> actually I test if the R-URI contains the value *44* with:
>
> if (uri=~"^sip:\*44\*[0-9]+@") {
> ...
> }
>
> Now I want to read the value 44 or *44* from an AVP.
> Tried using directly the avp or assigning it to a variable, without success.
> ex.:
> $var(x) = "sip:" + $avp(s:code) + "[0-9]+@";
>
> How can I solve this problem?
> Thank you very much.
> Regards.
>
> --
> Antonio
>
More information about the sr-users
mailing list