New issue
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
KEMI: app_python and app_python3 handles function with 4 parameters and more incorrectly #1944
Comments
miconda
added a commit
that referenced
this issue
May 3, 2019
miconda
added a commit
that referenced
this issue
May 3, 2019
Can you try with latest master or 5.2 branch? The "ssii" parameter handler seemed ok, missing was "sssi"/ Anyhow, if still an issue, reopen. |
Perfect, thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
app_python and, in some places, app_python3 handles KEMI calls with 4 and more parameters incorrectly. It uses "or" operations instead of "and" and thus it will always tries to convert the call into a "str-str-str-str" invocation.
Also it's missing a "ssii" variant for calling e.g. KSR.htable.sht_setxi()
Reproduction
Try to call KSR.htable.sht_setxs() or KSR.htable.sht_setxi() with app_python.
Log Messages
Possible Solutions
Clean up app_python and app_python3 by changing "or" to "and" in lines like this one:
Further, app_python lacks a "ssii" parameter handler so using KSR.htable.sht_setxi() is not possible.
I could contribute a pull request if no core developer has time to fix it.
Additional Information
kamailio -v
The text was updated successfully, but these errors were encountered: