Can you try by setting RET_ARRAY flag to RPC exports at:
* https://github.com/kamailio/kamailio/blob/master/modules/permissions/permiss...
Like at:
* https://github.com/kamailio/kamailio/blob/master/modules/corex/corex_rpc.c#L...
If works, it should be the desired implementation in such case.
Also, for the future, first line of the commit must be prefixed with the module name, see:
* https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md#com...