Basically tested it from python script, by grepping for incoming commands on rtpengine side.
IMHO, a nice improvement to the kemi interface would be to detect the number of input parameters given from the script and call the proper function straight ahead.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/929
-- Commit Summary --
* rtpengine: Add kemi rtpengine_manage0/1
-- File Changes --
M src/modules/rtpengine/rtpengine.c (38)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/929.patch https://github.com/kamailio/kamailio/pull/929.diff
Thanks! Can be merged, but then I would rename rtpengine_manage1() to just rtpengine_manage(), to be in pair with rtpproxy kemi exports.
Variable number of arguments was in the plan, but iirc I couldn't find an easy way in python embed api to get the number of parameters (and didn't get much spare time to dig in more). Anyhow, I think in python it is always the same number of parameters given to a function call, just that those not provided explicitely have the default value specified when defining the function.
Merged #929.