This patch fixes an issue with a erroneously set types during conversion within the usrloc module.
Patch with fix.
Honestly I'm not so sure about this patch. It's clear that vals2.type and vals2.type doe not match an actual val field used but maybe it's better to change vals2.type and vals2.type to DB_BITMAP type instead.
Looking at when the flags and cflags are loaded from DB to OpenSIPS mem, they are fetched as DB_BITMAP, so it would probably be better to also save them as DB_BITMAP to the db.
Again, this was a small inconsistency, things were working until now since the DB_INT and DB_BITMAP types are treated very similarly in the C code.
Patch was applied on OpenSIPS trunk
Thanks and Regards,
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.