I will check it, but in general the kemi function is executed by the native kamailio.cfg function, after it evaluates its parameters with kamailio pseudo-variables. It is nothing specific for the kemi function than just needing the string/int values of the parameters.