Module: kamailio Branch: master Commit: 737a09c2afcec9c737475ceae15652f99e60979d URL: https://github.com/kamailio/kamailio/commit/737a09c2afcec9c737475ceae15652f99e60979d
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2018-12-11T16:27:47+01:00 app_jsdt: support executing kemi functions with (str*, str*, int, int, str*) params --- Modified: src/modules/app_jsdt/app_jsdt_api.c --- Diff: https://github.com/kamailio/kamailio/commit/737a09c2afcec9c737475ceae15652f99e60979d.diff Patch: https://github.com/kamailio/kamailio/commit/737a09c2afcec9c737475ceae15652f99e60979d.patch --- diff --git a/src/modules/app_jsdt/app_jsdt_api.c b/src/modules/app_jsdt/app_jsdt_api.c index b542355172..907433573b 100644 --- a/src/modules/app_jsdt/app_jsdt_api.c +++ b/src/modules/app_jsdt/app_jsdt_api.c @@ -1300,6 +1300,16 @@ int sr_kemi_jsdt_exec_func_ex(duk_context *J, sr_kemi_t *ket) &vps[0].s, &vps[1].s, &vps[2].s, &vps[3].s, &vps[4].s); return sr_kemi_jsdt_return_int(J, ket, ret); + } else if(ket->ptypes[0]==SR_KEMIP_STR + && ket->ptypes[1]==SR_KEMIP_STR + && ket->ptypes[2]==SR_KEMIP_INT + && ket->ptypes[3]==SR_KEMIP_INT + && ket->ptypes[4]==SR_KEMIP_STR) { + ret = ((sr_kemi_fmssnns_f)(ket->func))(env_J->msg, + &vps[0].s, &vps[1].s, vps[2].n, vps[3].n, + &vps[4].s); + return sr_kemi_jsdt_return_int(J, ket, ret); + } else { LM_ERR("invalid parameters for: %.*s\n", fname->len, fname->s); _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev