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
apparently the code only handles strings for the == and != operators. The operators are for numeric values. Do you have a use case where need to know which string is greater?
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: