Hello all,

While using KEMI with app_jsdt I noticed the following possible
regression between 5.5 and 5.6.

The following config is working ok on 5.5 but throws an error on 5.6:
ERROR: app_jsdt [app_jsdt_api.c:555]: app_jsdt_run_ex(): js loading
state not initialized (call: ksr_htable_event)

kamailio.cfg:
debug=2
children=1

log_facility=LOG_LOCAL0
log_name="k"

mpath="/home/osas/src/kamailio/src/modules"
loadmodule "htable/htable.so"
  modparam("htable", "event_callback", "ksr_htable_event")
  modparam("htable", "event_callback_mode", 1)
loadmodule "kemix/kemix.so"
loadmodule "app_jsdt/app_jsdt.so"
  modparam("app_jsdt", "load", "/usr/local/etc/kamailio/kamailio.js")
cfgengine "jsdt"

kamailio.js:
function ksr_htable_event(evname) {
    KSR.info("ksr_htable_event(" + evname + ")\n");
}

function ksr_request_route() {
    KSR.x.exit();
}

If we load the htable module after app_jsdt, then the error is gone.
Is there something new during init in 5.6 that requires specific
module loading order?

-ovidiu
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to