[SR-Users] Replace number in pseudo variable

Bernhard Suttner bernhard.suttner at winet.ch
Mon Jan 3 15:56:17 CET 2011


Hi,

I try to replace the user-name of the Request URI and save that into a AVP later. 

I tried:
$var(old_user) = $oU;
$var(new_uri) = $(ou{re.subst,/$var(old_user)/004444444444/g});

and
$var(new_uri) = $(ou{re.subst,/$oU/004444444444/g});

Both did not work:
[lvalue.c:351]: non existing right pvar

I am using latest git version of kamailio.

Does someone has an idea?

Best regards,
Bernhard


Bernhard Suttner
Senior Entwickler
Entwicklung 
_______________________

Winet Network Solutions AG
Täfernstrasse 2a
CH-5405 Baden-Dättwil
 
E-Mail Winet:  info at winet.ch
E-Mail pers.:  bernhard.suttner at winet.ch
Voice:         +41 56 470 4626
Fax:           +41 56 470 4627






More information about the sr-users mailing list