[OpenSER-Users] Trouble with avp in openser 1.3.2

Robert Dyck rob.dyck at telus.net
Fri Jun 13 05:13:01 CEST 2008


With the following in cfg --

exec_avp("uname -s","$avp(s:test)");
xlog("L_NOTICE","test result is <$avp(s:test)>\n");

1.3.1 yields "test result is <linux>"
1.3.2 yields "test result is <>"

I also noticed that 1.3.2 handles an uninitialized $var differently than 
1.3.1. with the following in cfg --

if !$var(test) == "foo" {xlog("L_NOTICE", "test not equal to foo\n");};

1.3.1 yields "test not equal to foo"
1.3.2 yields "CRITICAL:core:comp_scriptvar: cannot get left var value"
                      "WARNING:core:do_action: error in expression"

Is this behaviour intentional

Thanks RD




More information about the Users mailing list