<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I guess that documentation needs to be updated because it appears NULL support was added to pseudo vars at some point. I traced down the pvar assignment in gdb where the flag was NULL and it was assigned str_null:<div class=""><br class=""></div><div class="">static char _str_null_hlp[7] = {'&lt;','n','u','l','l','&gt;',0};<br class="">static str str_null&nbsp;&nbsp;&nbsp;= { _str_null_hlp, 6 };<br class=""><br class="">The default used to by PV_VAL_INT I guess which always initialized to 0… however this may have posed a problem along the way when actually needing to represent a NULL value returned from a database or something else.</div><div class=""><br class=""></div><div class="">Jarrod</div><div class=""><br class=""></div><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Jul 2, 2015, at 9:20 PM, Podrigal, Aron &lt;<a href="mailto:aronp@guaranteedplus.com" class="">aronp@guaranteedplus.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">According to the documentation here&nbsp;[1] the value of&nbsp;$var(NAME) = NULL; should be the integer 0.<div class="">However when I test it with xlog, it does print &lt;null&gt;.</div><div class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class="">[1]&nbsp;<a href="http://www.opensips.org/Documentation/Script-CoreVar#toc1" class="">http://www.opensips.org/Documentation/Script-CoreVar#toc1</a><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class="">Aron Podrigal<div class="">-</div><div class="">//Be happy :-)</div></div></div>
</div></div></div>
_______________________________________________<br class="">Users mailing list<br class=""><a href="mailto:Users@lists.opensips.org" class="">Users@lists.opensips.org</a><br class="">http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br class=""></div></blockquote></div><br class=""></div></div></body></html>