[Kamailio-Users] Hor to strip() $rU dynamically
Iñaki Baz Castillo
ibc at aliax.net
Wed Mar 18 15:07:38 CET 2009
Hi, I receive INVITE like this:
INVITE sip:client_xxx2004 at domain.org SIP/2.0
and I get from an $avp(CLIENT) the value "client_xxx".
I need to strip from $rU the lenght of $avp(CLIENT), this is:
# Original $rU => client_xxx2004
strip($avp(CLIENT));
# New $rU => 2004
Unfortunatelly "strip()" doesn't accept a PV as parameter, but a static integer.
Any suggestion on how to achieve my goal?
Thanks a lot.
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the Users
mailing list