We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug cond command returns wrong result for quoted strings:
cond
cond '12' >= '19' ? true : false give true but should returns false.
cond '12' >= '19' ? true : false
true
To Reproduce Steps to reproduce the behavior:
append to dialplan:
<action application="set" data="a=${cond('12' >= '19' ? true : false)}" />
FS log:
EXECUTE [depth=0] sofia/internal/00001@freeswitch set(a=true) 2025-01-10 02:18:42.150764 96.80% [DEBUG] mod_dptools.c:1671 SET sofia/internal/00001@freeswitch [a]=[true]
Expected behavior
Quoted strings should compares as a string, as documented: https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Modules/mod_commands_1966741/#cond
Package version or git hash
Seems the code is wrong:
freeswitch/src/mod/applications/mod_commands/mod_commands.c
Lines 2261 to 2265 in 6a5ac7e
Lines 2285 to 2287 in 6a5ac7e
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
cond
command returns wrong result for quoted strings:cond '12' >= '19' ? true : false
give
true
but should returns false.To Reproduce
Steps to reproduce the behavior:
append to dialplan:
FS log:
Expected behavior
Quoted strings should compares as a string, as documented:
https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Modules/mod_commands_1966741/#cond
Package version or git hash
Seems the code is wrong:
freeswitch/src/mod/applications/mod_commands/mod_commands.c
Lines 2261 to 2265 in 6a5ac7e
...
freeswitch/src/mod/applications/mod_commands/mod_commands.c
Lines 2285 to 2287 in 6a5ac7e
The text was updated successfully, but these errors were encountered: