Hi Alain,

yes, it was a fix in avp_db_query() - if you query for multiple columns in a row, and if one of these columns returns NULL, it will not be reported as empty AVP , but as an AVP holding "<null>" value :
https://github.com/OpenSIPS/opensips/commit/e1257269bcc30df56dd9b6bc90a243c5839d5922

Is was a must to properly handle multi row results with multiple columns.

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 09.11.2016 17:06, Alain Bieuzent wrote:

Hi All,

I’m trying to migrate form 1.11.5 to 1.11.9 and i have a problem to test the value of a mysql query when the reseult is null.

In 1.11.5 this test « if (!$avp(redirect) == NULL) » works, but doesn’t work in 1.11.9.

Is there a change in code ?

What is the corect way to test a null value from avp ?

Regards

Alain.



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to