<p>Personally, I consider that <em>fixup_get_isvalue</em> would have a lot more value if it did had the option to do conversions internally, thus masking the whole flag &amp; pvar logic behind it. It should have a prototype such as:</p>

<p>int fixup_get_isvalue(struct sip_msg* msg, gparam_p gp, int_str *out, enum conv);</p>

<p>where conv could be { CONVERT_NONE, CONVERT_TO_INT, CONVERT_TO_STR }</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/OpenSIPS/opensips/commit/7870f22613f2c6873177b615326e81d217e141a9#commitcomment-5509080'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwOTAzMzUzNiwiZGF0YSI6eyJpZCI6MjY1ODIxNzV9fQ==--c75c81512ba51f4c4a0e419b71050001a5a19f7a.gif' height='1' width='1'></p>