You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the module sets the default value to Q_UNSPECIFIED.
The file qvalue.h has this comment:
Value Q_UNSPECIFIED (which is in fact -1) has a special meaning,
it means that the q value is not known and the parameter should not
be printed when printing Contacts, implementations will then use
implementation specific pre-defined values.
The problem is that the qval printed in a fired event is not able to be printed properly as shown when printing $param(qval)
The text was updated successfully, but these errors were encountered:
NormB
changed the title
[BUG] Documented default value for default_q is incorrect
[BUG] Documented default value for default_q is not 0 (per the doc). A useful value also isn't available in the event_route
Apr 12, 2024
NormB
changed the title
[BUG] Documented default value for default_q is not 0 (per the doc). A useful value also isn't available in the event_route
[BUG] Documented default value for default_q is not 0. A useful value also isn't available in the event_route
Apr 12, 2024
Treat the integer as signed when building the $param value
Many thanks to Norm Brandinger (@NormB on GitHub) for reporting it in #3367
(cherry picked from commit 999b8ac)
Treat the integer as signed when building the $param value
Many thanks to Norm Brandinger (@NormB on GitHub) for reporting it in #3367
(cherry picked from commit 999b8ac)
OpenSIPS version you are running
Describe the bug
The documentation for the default_q value is located here: https://opensips.org/html/docs/modules/devel/registrar.html#param_default_q
Specifically "Default value is 0.".
However, the module sets the default value to Q_UNSPECIFIED.
The file qvalue.h has this comment:
The problem is that the qval printed in a fired event is not able to be printed properly as shown when printing $param(qval)
NOTICE:[E_UL_CONTACT_UPDATE] qval[18446744073709551615]
To Reproduce
Expected behavior
Relevant System Logs
OS/environment information
Additional context
The text was updated successfully, but these errors were encountered: