Pass NULL as value to set_var_value when assigning a NULL or PV_VAL_NULL value to a pv with the VAR_TYPE_NULL flag set.
Previously assigning $null didn't work as expected:
`$vn(foo) = $null` would result in `$vn(foo)` being assigned `0` (this can be verified by either logging the value or testing with an if statement). You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/153
-- Commit Summary --
* pv: Fixed assigning $null to $vn(name) pvs
-- File Changes --
M modules/pv/pv_core.c (9)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/153.patch https://github.com/kamailio/kamailio/pull/153.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/153
Thanks!
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/153#issuecomment-100132532
Merged #153.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/153#event-299993966