[OpenSIPS-Devel] [opensips] mod_fix: new helper fixup function that returns string and/or int value from a gparam_t (7870f22)

Liviu Chircu notifications at github.com
Thu Feb 27 12:32:16 CET 2014


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

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

where conv could be { CONVERT_NONE, CONVERT_TO_INT, CONVERT_TO_STR }

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/commit/7870f22613f2c6873177b615326e81d217e141a9#commitcomment-5509080
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20140227/f472f220/attachment.htm>


More information about the Devel mailing list