You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/modules/app_perl/doc/samples/pseudovars.pl

14 lines
251 B

use Kamailio::Constants;
sub pseudo {
my $m = shift;
my $varstring = "User: \$rU - UA: \$ua";
my $v = $m->pseudoVar($varstring);
Kamailio::log(L_INFO, "pseudovar substitution demo; original: '$varstring' - substituted: '$v'\n");
return 1;
}