[OpenSER-Users] Trouble with avp in openser 1.3.2

Robert Dyck rob.dyck at telus.net
Fri Jun 13 07:03:58 CEST 2008


False alarm. I cleaned out some debug logs and it works the same as 1.3.1.
It's strange though. The debugs were not in the exec or avpops modules.

On Thursday 12 June 2008, Robert Dyck wrote:
> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users






More information about the Users mailing list