# KEMI Module Functions #
The following sections lists all exported KEMI functions. More information regarding the function can be found by clicking the KEMI prototype which will take you the original module's documentation.
## acc ##
The functions exported by `acc` module to KEMI are listed in the next sections.
The documentation of `acc` module is available online at:
* [acc.html](https://kamailio.org/docs/modules/devel/modules/acc.html)
#### KSR.acc.acc_db_request() ####
`int acc_db_request(str "comment", str "dbtable")`
Equivalent of native kamailio.cfg function: `acc_db_request("comment", "dbtable")`.
#### KSR.acc.acc_log_request() ####
`int acc_log_request(str "comment")`
Equivalent of native kamailio.cfg function: `acc_log_request("comment")`.
#### KSR.acc.acc_request() ####
`int acc_request(str "comment", str "dbtable")`
Equivalent of native kamailio.cfg function: `acc_request("comment", "dbtable")`.
## acc_radius ##
#### KSR.acc_radius.request() ####
`int request(str "comment")`
## alias_db ##
#### KSR.alias_db.lookup() ####
`int lookup(str "stable")`
#### KSR.alias_db.lookup_ex() ####
`int lookup_ex(str "stable", str "sflags")`
## app_jsdt ##
#### KSR.app_jsdt.dofile() ####
`int dofile(str "script")`
#### KSR.app_jsdt.dostring() ####
`int dostring(str "script")`
#### KSR.app_jsdt.run() ####
`int run(str "func")`
#### KSR.app_jsdt.run_p1() ####
`int run_p1(str "func", str "p1")`
#### KSR.app_jsdt.run_p2() ####
`int run_p2(str "func", str "p1", str "p2")`
#### KSR.app_jsdt.run_p3() ####
`int run_p3(str "func", str "p1", str "p2", str "p3")`
#### KSR.app_jsdt.runstring() ####
`int runstring(str "script")`
## app_lua ##
#### KSR.app_lua.dofile() ####
`int dofile(str "script")`
#### KSR.app_lua.dostring() ####
`int dostring(str "script")`
#### KSR.app_lua.run() ####
`int run(str "func")`
#### KSR.app_lua.run_p1() ####
`int run_p1(str "func", str "p1")`
#### KSR.app_lua.run_p2() ####
`int run_p2(str "func", str "p1", str "p2")`
#### KSR.app_lua.run_p3() ####
`int run_p3(str "func", str "p1", str "p2", str "p3")`
#### KSR.app_lua.runstring() ####
`int runstring(str "script")`
## app_python ##
#### KSR.app_python.exec() ####
`int exec(str "method")`
#### KSR.app_python.exec_p1() ####
`int exec_p1(str "method", str "p1")`
#### KSR.app_python.execx() ####
`int execx(str "method")`
## app_python3 ##
#### KSR.app_python3.exec() ####
`int exec(str "method")`
#### KSR.app_python3.exec_p1() ####
`int exec_p1(str "method", str "p1")`
#### KSR.app_python3.execx() ####
`int execx(str "method")`
## app_ruby ##
#### KSR.app_ruby.run() ####
`int run(str "func")`
#### KSR.app_ruby.run_p1() ####
`int run_p1(str "func", str "p1")`
#### KSR.app_ruby.run_p2() ####
`int run_p2(str "func", str "p1", str "p2")`
#### KSR.app_ruby.run_p3() ####
`int run_p3(str "func", str "p1", str "p2", str "p3")`
## app_sqlang ##
#### KSR.app_sqlang.dofile() ####
`int dofile(str "script")`
#### KSR.app_sqlang.dostring() ####
`int dostring(str "script")`
#### KSR.app_sqlang.run() ####
`int run(str "func")`
#### KSR.app_sqlang.run_p1() ####
`int run_p1(str "func", str "p1")`
#### KSR.app_sqlang.run_p2() ####
`int run_p2(str "func", str "p1", str "p2")`
#### KSR.app_sqlang.run_p3() ####
`int run_p3(str "func", str "p1", str "p2", str "p3")`
#### KSR.app_sqlang.runstring() ####
`int runstring(str "script")`
## async ##
#### KSR.async.route() ####
`int route(str "rn", int s)`
#### KSR.async.task_route() ####
`int task_route(str "rn")`
## auth ##
#### KSR.auth.auth_challenge() ####
`int auth_challenge(str "realm", int flags)`
#### KSR.auth.consume_credentials() ####
`int consume_credentials()`
#### KSR.auth.has_credentials() ####
`int has_credentials(str "srealm")`
#### KSR.auth.pv_auth_check() ####
`int pv_auth_check(str "srealm", str "spasswd", int vflags, int vchecks)`
## auth_db ##
#### KSR.auth_db.auth_check() ####
`int auth_check(str "srealm", str "stable", int iflags)`
#### KSR.auth_db.is_subscriber() ####
`int is_subscriber(str "suri", str "stable", int iflags)`
## auth_ephemeral ##
#### KSR.auth_ephemeral.autheph_authenticate() ####
`int autheph_authenticate(str "susername", str "spassword")`
#### KSR.auth_ephemeral.autheph_check() ####
`int autheph_check(str "srealm")`
#### KSR.auth_ephemeral.autheph_proxy() ####
`int autheph_proxy(str "srealm")`
#### KSR.auth_ephemeral.autheph_www() ####
`int autheph_www(str "srealm")`
#### KSR.auth_ephemeral.autheph_www_method() ####
`int autheph_www_method(str "srealm", str "smethod")`
## auth_radius ##
#### KSR.auth_radius.proxy_authorize() ####
`int proxy_authorize(str "srealm")`
#### KSR.auth_radius.proxy_authorize_user() ####
`int proxy_authorize_user(str "srealm", str "suser")`
#### KSR.auth_radius.www_authorize() ####
`int www_authorize(str "srealm")`
#### KSR.auth_radius.www_authorize_user() ####
`int www_authorize_user(str "srealm", str "suser")`
## auth_xkeys ##
#### KSR.auth_xkeys.auth_xkeys_add() ####
`int auth_xkeys_add(str "shdr", str "skey", str "salg", str "sdata")`
#### KSR.auth_xkeys.auth_xkeys_check() ####
`int auth_xkeys_check(str "shdr", str "skey", str "salg", str "sdata")`
## benchmark ##
#### KSR.benchmark.bm_log_timer() ####
`int bm_log_timer(str "tname")`
#### KSR.benchmark.bm_start_timer() ####
`int bm_start_timer(str "tname")`
## blst ##
#### KSR.blst.blst_add() ####
`int blst_add(int t)`
#### KSR.blst.blst_add_default() ####
`int blst_add_default()`
#### KSR.blst.blst_add_retry_after() ####
`int blst_add_retry_after(int t_min, int t_max)`
#### KSR.blst.blst_clear_ignore() ####
`int blst_clear_ignore(int mask)`
#### KSR.blst.blst_clear_ignore_all() ####
`int blst_clear_ignore_all()`
#### KSR.blst.blst_del() ####
`int blst_del()`
#### KSR.blst.blst_is_blacklisted() ####
`int blst_is_blacklisted()`
#### KSR.blst.blst_rpl_clear_ignore() ####
`int blst_rpl_clear_ignore(int mask)`
#### KSR.blst.blst_rpl_clear_ignore_all() ####
`int blst_rpl_clear_ignore_all()`
#### KSR.blst.blst_rpl_set_ignore() ####
`int blst_rpl_set_ignore(int mask)`
#### KSR.blst.blst_rpl_set_ignore_all() ####
`int blst_rpl_set_ignore_all()`
#### KSR.blst.blst_set_ignore() ####
`int blst_set_ignore(int mask)`
#### KSR.blst.blst_set_ignore_all() ####
`int blst_set_ignore_all()`
## call_control ##
#### KSR.call_control.call_control() ####
`int call_control()`
## call_obj ##
#### KSR.call_obj.free() ####
`int free(int num_obj)`
#### KSR.call_obj.get() ####
`int get()`
## cfgutils ##
#### KSR.cfgutils.abort() ####
`int abort()`
#### KSR.cfgutils.core_hash() ####
`int core_hash(str "s1", str "s2", int sz)`
#### KSR.cfgutils.lock() ####
`int lock(str "lkey")`
#### KSR.cfgutils.pkg_status() ####
`int pkg_status()`
#### KSR.cfgutils.pkg_summary() ####
`int pkg_summary()`
#### KSR.cfgutils.rand_event() ####
`int rand_event()`
#### KSR.cfgutils.rand_get_prob() ####
`int rand_get_prob()`
#### KSR.cfgutils.rand_reset_prob() ####
`int rand_reset_prob()`
#### KSR.cfgutils.rand_set_prob() ####
`int rand_set_prob(int percent_par)`
#### KSR.cfgutils.shm_status() ####
`int shm_status()`
#### KSR.cfgutils.shm_summary() ####
`int shm_summary()`
#### KSR.cfgutils.sleep() ####
`int sleep(int v)`
#### KSR.cfgutils.trylock() ####
`int trylock(str "lkey")`
#### KSR.cfgutils.unlock() ####
`int unlock(str "lkey")`
#### KSR.cfgutils.usleep() ####
`int usleep(int v)`
## cnxcc ##
#### KSR.cnxcc.get_channel_count() ####
`int get_channel_count(str "sclient", str "pvname")`
#### KSR.cnxcc.set_max_channels() ####
`int set_max_channels(str "sclient", int max_chan)`
#### KSR.cnxcc.set_max_credit() ####
`int set_max_credit(str "sclient", str "scredit", str "sconnect", str "scps", int initp, int finishp)`
#### KSR.cnxcc.set_max_time() ####
`int set_max_time(str "sclient", int max_secs)`
#### KSR.cnxcc.terminate_all() ####
`int terminate_all(str "sclient")`
#### KSR.cnxcc.update_max_time() ####
`int update_max_time(str "sclient", int secs)`
## corex ##
#### KSR.corex.append_branch() ####
`int append_branch()`
#### KSR.corex.append_branch_uri() ####
`int append_branch_uri(str "uri")`
#### KSR.corex.append_branch_uri_q() ####
`int append_branch_uri_q(str "uri", str "q")`
#### KSR.corex.has_ruri_user() ####
`int has_ruri_user()`
#### KSR.corex.has_user_agent() ####
`int has_user_agent()`
#### KSR.corex.is_faked_msg() ####
`int is_faked_msg()`
#### KSR.corex.isxflagset() ####
`int isxflagset(int fval)`
#### KSR.corex.resetxflag() ####
`int resetxflag(int fval)`
#### KSR.corex.send_data() ####
`int send_data(str "uri", str "data")`
#### KSR.corex.sendx() ####
`int sendx(str "uri", str "sock", str "data")`
#### KSR.corex.set_recv_socket() ####
`int set_recv_socket(str "ssock")`
#### KSR.corex.set_recv_socket_name() ####
`int set_recv_socket_name(str "ssock")`
#### KSR.corex.set_send_socket() ####
`int set_send_socket(str "ssock")`
#### KSR.corex.set_send_socket_name() ####
`int set_send_socket_name(str "ssock")`
#### KSR.corex.set_source_address() ####
`int set_source_address(str "saddr")`
#### KSR.corex.setxflag() ####
`int setxflag(int fval)`
#### KSR.corex.via_add_srvid() ####
`int via_add_srvid(int fval)`
#### KSR.corex.via_add_xavp_params() ####
`int via_add_xavp_params(int fval)`
#### KSR.corex.via_use_xavp_fields() ####
`int via_use_xavp_fields(int fval)`
## counters ##
#### KSR.counters.add() ####
`int add(str "sname", int v)`
#### KSR.counters.inc() ####
`int inc(str "sname")`
#### KSR.counters.reset() ####
`int reset(str "sname")`
## crypto ##
#### KSR.crypto.aes_decrypt() ####
`int aes_decrypt(str "ins", str "keys", str "dpv")`
#### KSR.crypto.aes_encrypt() ####
`int aes_encrypt(str "ins", str "keys", str "dpv")`
## debugger ##
#### KSR.debugger.dbg_pv_dump() ####
`int dbg_pv_dump()`
#### KSR.debugger.dbg_pv_dump_ex() ####
`int dbg_pv_dump_ex(int mask, int level)`
## dialog ##
#### KSR.dialog.dlg_bridge() ####
`int dlg_bridge(str "sfrom", str "sto", str "soproxy")`
#### KSR.dialog.dlg_bye() ####
`int dlg_bye(str "side")`
#### KSR.dialog.dlg_db_load_callid() ####
`int dlg_db_load_callid(str "callid")`
#### KSR.dialog.dlg_db_load_extra() ####
`int dlg_db_load_extra()`
#### KSR.dialog.dlg_get() ####
`int dlg_get(str "sc", str "sf", str "st")`
#### KSR.dialog.dlg_isflagset() ####
`int dlg_isflagset(int val)`
#### KSR.dialog.dlg_manage() ####
`int dlg_manage()`
#### KSR.dialog.dlg_reset_property() ####
`int dlg_reset_property(str "pval")`
#### KSR.dialog.dlg_resetflag() ####
`int dlg_resetflag(int val)`
#### KSR.dialog.dlg_set_property() ####
`int dlg_set_property(str "pval")`
#### KSR.dialog.dlg_set_timeout() ####
`int dlg_set_timeout(int to)`
#### KSR.dialog.dlg_set_timeout_id() ####
`int dlg_set_timeout_id(int to, int he, int hi)`
#### KSR.dialog.dlg_setflag() ####
`int dlg_setflag(int val)`
#### KSR.dialog.get_profile_size() ####
`int get_profile_size(str "sprofile", str "svalue", str "spv")`
#### KSR.dialog.get_profile_size_static() ####
`int get_profile_size_static(str "sprofile", str "spv")`
#### KSR.dialog.is_in_profile() ####
`int is_in_profile(str "sprofile", str "svalue")`
#### KSR.dialog.is_in_profile_static() ####
`int is_in_profile_static(str "sprofile")`
#### KSR.dialog.is_known_dlg() ####
`int is_known_dlg()`
#### KSR.dialog.set_dlg_profile() ####
`int set_dlg_profile(str "sprofile", str "svalue")`
#### KSR.dialog.set_dlg_profile_static() ####
`int set_dlg_profile_static(str "sprofile")`
#### KSR.dialog.unset_dlg_profile() ####
`int unset_dlg_profile(str "sprofile", str "svalue")`
#### KSR.dialog.unset_dlg_profile_static() ####
`int unset_dlg_profile_static(str "sprofile")`
#### KSR.dialog.var_get() ####
`xval var_get(str "name")`
#### KSR.dialog.var_gete() ####
`xval var_gete(str "name")`
#### KSR.dialog.var_getw() ####
`xval var_getw(str "name")`
#### KSR.dialog.var_is_null() ####
`int var_is_null(str "name")`
#### KSR.dialog.var_rm() ####
`int var_rm(str "name")`
#### KSR.dialog.var_sets() ####
`int var_sets(str "name", str "val")`
## dialplan ##
#### KSR.dialplan.dp_match() ####
`int dp_match(int dpid, str "src")`
#### KSR.dialplan.dp_replace() ####
`int dp_replace(int dpid, str "src", str "dst")`
## dispatcher ##
#### KSR.dispatcher.ds_is_from_list() ####
`int ds_is_from_list(int group)`
#### KSR.dispatcher.ds_is_from_list_mode() ####
`int ds_is_from_list_mode(int vset, int vmode)`
#### KSR.dispatcher.ds_is_from_list_uri() ####
`int ds_is_from_list_uri(int vset, int vmode, str "vuri")`
#### KSR.dispatcher.ds_is_from_lists() ####
`int ds_is_from_lists()`
#### KSR.dispatcher.ds_list_exists() ####
`int ds_list_exists(int set)`
#### KSR.dispatcher.ds_load_unset() ####
`int ds_load_unset()`
#### KSR.dispatcher.ds_load_update() ####
`int ds_load_update()`
#### KSR.dispatcher.ds_mark_dst() ####
`int ds_mark_dst()`
#### KSR.dispatcher.ds_mark_dst_state() ####
`int ds_mark_dst_state(str "sval")`
#### KSR.dispatcher.ds_next_domain() ####
`int ds_next_domain()`
#### KSR.dispatcher.ds_next_dst() ####
`int ds_next_dst()`
#### KSR.dispatcher.ds_reload() ####
`int ds_reload()`
#### KSR.dispatcher.ds_select() ####
`int ds_select(int set, int alg)`
#### KSR.dispatcher.ds_select_domain() ####
`int ds_select_domain(int set, int alg)`
#### KSR.dispatcher.ds_select_domain_limit() ####
`int ds_select_domain_limit(int set, int alg, int limit)`
#### KSR.dispatcher.ds_select_dst() ####
`int ds_select_dst(int set, int alg)`
#### KSR.dispatcher.ds_select_dst_limit() ####
`int ds_select_dst_limit(int set, int alg, int limit)`
#### KSR.dispatcher.ds_select_limit() ####
`int ds_select_limit(int set, int alg, int limit)`
#### KSR.dispatcher.ds_select_routes() ####
`int ds_select_routes(str "srules", str "smode")`
#### KSR.dispatcher.ds_select_routes_limit() ####
`int ds_select_routes_limit(str "srules", str "smode", int rlimit)`
#### KSR.dispatcher.ds_set_domain() ####
`int ds_set_domain()`
#### KSR.dispatcher.ds_set_dst() ####
`int ds_set_dst()`
## diversion ##
#### KSR.diversion.add_diversion() ####
`int add_diversion(str "reason")`
#### KSR.diversion.add_diversion_uri() ####
`int add_diversion_uri(str "reason", str "uri")`
## dmq ##
#### KSR.dmq.bcast_message() ####
`int bcast_message(str "peer_str", str "body_str", str "ct_str")`
#### KSR.dmq.handle_message() ####
`int handle_message()`
#### KSR.dmq.handle_message_rc() ####
`int handle_message_rc(int returnval)`
#### KSR.dmq.is_from_node() ####
`int is_from_node()`
#### KSR.dmq.send_message() ####
`int send_message(str "peer_str", str "to_str", str "body_str", str "ct_str")`
#### KSR.dmq.t_replicate() ####
`int t_replicate()`
#### KSR.dmq.t_replicate_mode() ####
`int t_replicate_mode(int mode)`
## domain ##
#### KSR.domain.is_domain_local() ####
`int is_domain_local(str "sdomain")`
#### KSR.domain.is_from_local() ####
`int is_from_local()`
#### KSR.domain.is_uri_host_local() ####
`int is_uri_host_local()`
#### KSR.domain.lookup_domain() ####
`int lookup_domain(str "_sdomain")`
#### KSR.domain.lookup_domain_prefix() ####
`int lookup_domain_prefix(str "_sdomain", str "_sprefix")`
## drouting ##
#### KSR.drouting.do_routing() ####
`int do_routing(int grp_id)`
#### KSR.drouting.do_routing_furi() ####
`int do_routing_furi()`
#### KSR.drouting.goes_to_gw() ####
`int goes_to_gw()`
#### KSR.drouting.goes_to_gw_type() ####
`int goes_to_gw_type(int type)`
#### KSR.drouting.is_from_gw() ####
`int is_from_gw()`
#### KSR.drouting.is_from_gw_type() ####
`int is_from_gw_type(int type)`
#### KSR.drouting.is_from_gw_type_flags() ####
`int is_from_gw_type_flags(int type, int flags)`
#### KSR.drouting.next_routing() ####
`int next_routing()`
#### KSR.drouting.use_next_gw() ####
`int use_next_gw()`
## enum ##
#### KSR.enum.enum_i_query_suffix() ####
`int enum_i_query_suffix(str "vsuffix")`
#### KSR.enum.enum_pv_query() ####
`int enum_pv_query(str "ve164")`
#### KSR.enum.enum_pv_query_suffix() ####
`int enum_pv_query_suffix(str "ve164", str "vsuffix")`
#### KSR.enum.enum_pv_query_suffix_service() ####
`int enum_pv_query_suffix_service(str "ve164", str "vsuffix", str "vservice")`
#### KSR.enum.enum_query() ####
`int enum_query()`
#### KSR.enum.enum_query_suffix() ####
`int enum_query_suffix(str "vsuffix")`
#### KSR.enum.enum_query_suffix_service() ####
`int enum_query_suffix_service(str "vsuffix", str "vservice")`
#### KSR.enum.i_enum_query() ####
`int i_enum_query()`
#### KSR.enum.i_enum_query_suffix_service() ####
`int i_enum_query_suffix_service(str "vsuffix", str "vservice")`
#### KSR.enum.is_from_user_enum() ####
`int is_from_user_enum()`
#### KSR.enum.is_from_user_enum_suffix() ####
`int is_from_user_enum_suffix(str "vsuffix")`
#### KSR.enum.is_from_user_enum_suffix_service() ####
`int is_from_user_enum_suffix_service(str "vsuffix", str "vservice")`
## evapi ##
#### KSR.evapi.async_relay() ####
`int async_relay(str "sdata")`
#### KSR.evapi.close() ####
`int close()`
#### KSR.evapi.relay() ####
`int relay(str "sdata")`
#### KSR.evapi.relay_multicast() ####
`int relay_multicast(str "sdata", str "stag")`
#### KSR.evapi.relay_unicast() ####
`int relay_unicast(str "sdata", str "stag")`
#### KSR.evapi.set_tag() ####
`int set_tag(str "stag")`
## exec ##
#### KSR.exec.exec_avp() ####
`int exec_avp(str "cmd")`
#### KSR.exec.exec_cmd() ####
`int exec_cmd(str "cmd")`
#### KSR.exec.exec_dset() ####
`int exec_dset(str "cmd")`
#### KSR.exec.exec_msg() ####
`int exec_msg(str "cmd")`
## geoip ##
#### KSR.geoip.match() ####
`int match(str "tomatch", str "pvclass")`
## geoip2 ##
#### KSR.geoip2.match() ####
`int match(str "tomatch", str "pvclass")`
## group ##
#### KSR.group.is_user_in() ####
`int is_user_in(str "uri", str "grp")`
## htable ##
Functions exported by `htable` module.
#### KSR.htable.sht_dec() ####
`int sht_dec(str "htname", str "itname")`
Do atomic decrement to the item value. It returns the new value or `-255`
if the hash table does not exist, or the item does not exist or the item value
is not integer.
#### KSR.htable.sht_get() ####
`xval sht_get(str "htname", str "itname")`
Return the integer or string value of the item.
If the item does not exists, it returns `NULL`. Note that `NULL` might be represented differently in various scripting languages, such as `nil` or `None`.
#### KSR.htable.sht_gete() ####
`xval sht_gete(str "htname", str "itname")`
Return the integer or string value of the item.
If the item does not exists, it returns an empty string.
#### KSR.htable.sht_getw() ####
`xval sht_getw(str "htname", str "itname")`
Return the integer or string value of the item.
If the item does not exists, it returns the string ``, suitable for use
when writing log messages.
#### KSR.htable.sht_inc() ####
`int sht_inc(str "htname", str "itname")`
Do atomic increment to the item value. It returns the new value or `-255`
if the hash table does not exist, or the item does not exist or the item value
is not integer.
#### KSR.htable.sht_is_null() ####
`int sht_is_null(str "htname", str "itname")`
#### KSR.htable.sht_iterator_end() ####
`int sht_iterator_end(str "iname")`
#### KSR.htable.sht_iterator_next() ####
`int sht_iterator_next(str "iname")`
#### KSR.htable.sht_iterator_start() ####
`int sht_iterator_start(str "iname", str "hname")`
#### KSR.htable.sht_lock() ####
`int sht_lock(str "htname", str "skey")`
#### KSR.htable.sht_match_name() ####
`int sht_match_name(str "sname", str "sop", str "sval")`
#### KSR.htable.sht_match_str_value() ####
`int sht_match_str_value(str "sname", str "sop", str "sval")`
#### KSR.htable.sht_reset() ####
`int sht_reset(str "hname")`
#### KSR.htable.sht_rm() ####
`int sht_rm(str "hname", str "iname")`
#### KSR.htable.sht_rm_name() ####
`int sht_rm_name(str "sname", str "sop", str "sval")`
#### KSR.htable.sht_rm_name_re() ####
`int sht_rm_name_re(str "htname", str "rexp")`
#### KSR.htable.sht_rm_value() ####
`int sht_rm_value(str "sname", str "sop", str "sval")`
#### KSR.htable.sht_rm_value_re() ####
`int sht_rm_value_re(str "htname", str "rexp")`
#### KSR.htable.sht_setex() ####
`int sht_setex(str "htname", str "itname", int itval)`
#### KSR.htable.sht_seti() ####
`int sht_seti(str "htname", str "itname", int itval)`
#### KSR.htable.sht_sets() ####
`int sht_sets(str "htname", str "itname", str "itval")`
#### KSR.htable.sht_setxi() ####
`int sht_setxi(str "htname", str "itname", int itval, int exval)`
#### KSR.htable.sht_setxs() ####
`int sht_setxs(str "htname", str "itname", str "itval", int exval)`
#### KSR.htable.sht_unlock() ####
`int sht_unlock(str "htname", str "skey")`
## http_async_client ##
#### KSR.http_async_client.query() ####
`int query(str "sdata", str "rn")`
## http_client ##
#### KSR.http_client.curl_connect() ####
`int curl_connect(str "con", str "url", str "dpv")`
#### KSR.http_client.curl_connect_post() ####
`int curl_connect_post(str "con", str "url", str "ctype", str "data", str "dpv")`
#### KSR.http_client.query() ####
`int query(str "url", str "dpv")`
#### KSR.http_client.query_post() ####
`int query_post(str "url", str "post", str "dpv")`
#### KSR.http_client.query_post_hdrs() ####
`int query_post_hdrs(str "url", str "post", str "hdrs", str "dpv")`
## imc ##
#### KSR.imc.imc_manager() ####
`int imc_manager()`
## ipops ##
#### KSR.ipops.compare_ips() ####
`int compare_ips(str "_sval1", str "_sval2")`
#### KSR.ipops.compare_pure_ips() ####
`int compare_pure_ips(str "_sval1", str "_sval2")`
#### KSR.ipops.detailed_ip_type() ####
`int detailed_ip_type(str "_sval", str "_dpv")`
#### KSR.ipops.detailed_ipv4_type() ####
`int detailed_ipv4_type(str "_sval", str "_dpv")`
#### KSR.ipops.detailed_ipv6_type() ####
`int detailed_ipv6_type(str "_sval", str "_dpv")`
#### KSR.ipops.dns_int_match_ip() ####
`int dns_int_match_ip(str "vhn", str "vip")`
#### KSR.ipops.dns_query() ####
`int dns_query(str "naptrname", str "pvid")`
#### KSR.ipops.dns_sys_match_ip() ####
`int dns_sys_match_ip(str "vhn", str "vip")`
#### KSR.ipops.ip_is_in_subnet() ####
`int ip_is_in_subnet(str "_sval1", str "_sval2")`
#### KSR.ipops.ip_type() ####
`int ip_type(str "sval")`
#### KSR.ipops.is_in_subnet() ####
`int is_in_subnet(str "_sval1", str "_sval2")`
#### KSR.ipops.is_ip() ####
`int is_ip(str "sval")`
#### KSR.ipops.is_ip4() ####
`int is_ip4(str "sval")`
#### KSR.ipops.is_ip6() ####
`int is_ip6(str "sval")`
#### KSR.ipops.is_ip6_reference() ####
`int is_ip6_reference(str "sval")`
#### KSR.ipops.is_ip_rfc1918() ####
`int is_ip_rfc1918(str "sval")`
#### KSR.ipops.is_pure_ip() ####
`int is_pure_ip(str "sval")`
#### KSR.ipops.naptr_query() ####
`int naptr_query(str "naptrname", str "pvid")`
#### KSR.ipops.srv_query() ####
`int srv_query(str "naptrname", str "pvid")`
## jansson ##
#### KSR.jansson.get() ####
`int get(str "spath", str "sdoc", str "spv")`
## jsonrpcs ##
#### KSR.jsonrpcs.exec() ####
`int exec(str "scmd")`
#### KSR.jsonrpcs.execx() ####
`int execx(str "scmd")`
#### KSR.jsonrpcs.response() ####
`xval response()`
## kafka ##
#### KSR.kafka.send() ####
`int send(str "s_topic", str "s_message")`
## keepalive ##
#### KSR.keepalive.add_destination() ####
`int add_destination(str "uri", str "owner")`
#### KSR.keepalive.del_destination() ####
`int del_destination(str "uri", str "owner")`
#### KSR.keepalive.is_alive() ####
`int is_alive(str "dest")`
## kex ##
#### KSR.kex.resetdebug() ####
`int resetdebug()`
#### KSR.kex.setdebug() ####
`int setdebug(int lval)`
## kx ##
Functions exported by `kemix` module. They aim to provide a convenient way to
retrieve string or integer values for most commonly used variables or runtime
environment attributes.
#### KSR.kx.get_au() ####
`xval get_au()`
#### KSR.kx.get_body() ####
`xval get_body()`
Return the body of the SIP message (the value of $rb).
#### KSR.kx.get_callid() ####
`xval get_callid()`
#### KSR.kx.get_conid() ####
`int get_conid()`
Return the connection id for TCP, TLS and WebSocket, or -1 if no stream connection corresponds to current SIP message.
#### KSR.kx.get_duri() ####
`xval get_duri()`
Return the value of destination URI ($du).
#### KSR.kx.get_fhost() ####
`xval get_fhost()`
Return From-URI domain ($fd).
#### KSR.kx.get_furi() ####
`xval get_furi()`
Return the From URI($fu).
#### KSR.kx.get_fuser() ####
`xval get_fuser()`
Return the From-URI username ($fU).
#### KSR.kx.get_method() ####
`xval get_method()`
Return the SIP method ($rm).
#### KSR.kx.get_nhuri() ####
`xval get_nhuri()`
#### KSR.kx.get_ouri() ####
`xval get_ouri()`
#### KSR.kx.get_proto() ####
`xval get_proto()`
#### KSR.kx.get_protoid() ####
`int get_protoid()`
#### KSR.kx.get_rcvip() ####
`xval get_rcvip()`
#### KSR.kx.get_rcvport() ####
`xval get_rcvport()`
#### KSR.kx.get_rhost() ####
`xval get_rhost()`
Return the Request URI host (domain) part ($rd).
#### KSR.kx.get_ruri() ####
`xval get_ruri()`
Return the Request URI ($ru).
#### KSR.kx.get_ruser() ####
`xval get_ruser()`
Return the Request URI user part ($rU).
#### KSR.kx.get_srcip() ####
`xval get_srcip()`
#### KSR.kx.get_srcport() ####
`xval get_srcport()`
#### KSR.kx.get_status() ####
`int get_status()`
#### KSR.kx.get_thost() ####
`xval get_thost()`
Return the To-URI host (domain) part ($td).
#### KSR.kx.get_timestamp() ####
`int get_timestamp()`
#### KSR.kx.get_turi() ####
`xval get_turi()`
Return the To URI ($tu).
#### KSR.kx.get_tuser() ####
`xval get_tuser()`
Return the To-URI user part ($tU).
#### KSR.kx.get_ua() ####
`xval get_ua()`
#### KSR.kx.gete_au() ####
`xval gete_au()`
#### KSR.kx.gete_body() ####
`xval gete_body()`
#### KSR.kx.gete_duri() ####
`xval gete_duri()`
#### KSR.kx.gete_fhost() ####
`xval gete_fhost()`
#### KSR.kx.gete_fuser() ####
`xval gete_fuser()`
#### KSR.kx.gete_rhost() ####
`xval gete_rhost()`
#### KSR.kx.gete_ruser() ####
`xval gete_ruser()`
#### KSR.kx.gete_thost() ####
`xval gete_thost()`
#### KSR.kx.gete_tuser() ####
`xval gete_tuser()`
#### KSR.kx.gete_ua() ####
`xval gete_ua()`
#### KSR.kx.gets_status() ####
`xval gets_status()`
#### KSR.kx.getw_au() ####
`xval getw_au()`
#### KSR.kx.getw_body() ####
`xval getw_body()`
#### KSR.kx.getw_duri() ####
`xval getw_duri()`
#### KSR.kx.getw_fhost() ####
`xval getw_fhost()`
#### KSR.kx.getw_fuser() ####
`xval getw_fuser()`
#### KSR.kx.getw_rhost() ####
`xval getw_rhost()`
#### KSR.kx.getw_ruser() ####
`xval getw_ruser()`
#### KSR.kx.getw_thost() ####
`xval getw_thost()`
#### KSR.kx.getw_tuser() ####
`xval getw_tuser()`
#### KSR.kx.getw_ua() ####
`xval getw_ua()`
## lcr ##
#### KSR.lcr.defunct_gw() ####
`int defunct_gw(int defunct_period)`
#### KSR.lcr.from_any_gw() ####
`int from_any_gw()`
#### KSR.lcr.from_any_gw_addr() ####
`int from_any_gw_addr(str "addr_str", int transport)`
#### KSR.lcr.from_gw() ####
`int from_gw(int lcr_id)`
#### KSR.lcr.from_gw_addr() ####
`int from_gw_addr(int lcr_id, str "addr_str", int transport)`
#### KSR.lcr.inactivate_gw() ####
`int inactivate_gw()`
#### KSR.lcr.load_gws() ####
`int load_gws(int lcr_id)`
#### KSR.lcr.load_gws_furi() ####
`int load_gws_furi(int lcr_id, str "ruri_user", str "from_uri")`
#### KSR.lcr.load_gws_ruser() ####
`int load_gws_ruser(int lcr_id, str "ruri_user")`
#### KSR.lcr.next_gw() ####
`int next_gw()`
#### KSR.lcr.to_any_gw() ####
`int to_any_gw()`
#### KSR.lcr.to_any_gw_addr() ####
`int to_any_gw_addr(str "addr_str", int transport)`
#### KSR.lcr.to_gw() ####
`int to_gw(int lcr_id)`
#### KSR.lcr.to_gw_addr() ####
`int to_gw_addr(int lcr_id, str "addr_str", int transport)`
## log_custom ##
#### KSR.log_custom.log_udp() ####
`int log_udp(str "txt")`
## log_systemd ##
#### KSR.log_systemd.sd_journal_print() ####
`int sd_journal_print(str "slev", str "stxt")`
#### KSR.log_systemd.sd_journal_send_xvap() ####
`int sd_journal_send_xvap(str "xname")`
## maxfwd ##
#### KSR.maxfwd.is_maxfwd_lt() ####
`int is_maxfwd_lt(int limit)`
#### KSR.maxfwd.process_maxfwd() ####
`int process_maxfwd(int limit)`
## mediaproxy ##
#### KSR.mediaproxy.end_media_session() ####
`int end_media_session()`
#### KSR.mediaproxy.engage_media_proxy() ####
`int engage_media_proxy()`
#### KSR.mediaproxy.use_media_proxy() ####
`int use_media_proxy()`
## misc_radius ##
#### KSR.misc_radius.does_uri_exist() ####
`int does_uri_exist()`
#### KSR.misc_radius.does_uri_exist_uval() ####
`int does_uri_exist_uval(str "suri")`
#### KSR.misc_radius.does_uri_user_exist() ####
`int does_uri_user_exist()`
#### KSR.misc_radius.does_uri_user_exist_uval() ####
`int does_uri_user_exist_uval(str "user")`
#### KSR.misc_radius.is_user_in() ####
`int is_user_in(str "user", str "group")`
#### KSR.misc_radius.load_callee_avps() ####
`int load_callee_avps(str "user")`
#### KSR.misc_radius.load_caller_avps() ####
`int load_caller_avps(str "user")`
## mqtt ##
#### KSR.mqtt.publish() ####
`int publish(str "topic", str "payload", int qos)`
#### KSR.mqtt.subscribe() ####
`int subscribe(str "topic", int qos)`
#### KSR.mqtt.unsubscribe() ####
`int unsubscribe(str "topic")`
## mqueue ##
#### KSR.mqueue.mq_add() ####
`int mq_add(str "mq", str "key", str "val")`
#### KSR.mqueue.mq_fetch() ####
`int mq_fetch(str "mq")`
#### KSR.mqueue.mq_pv_free() ####
`int mq_pv_free(str "mq")`
#### KSR.mqueue.mq_size() ####
`int mq_size(str "mq")`
#### KSR.mqueue.mqk_get() ####
`xval mqk_get(str "qname")`
#### KSR.mqueue.mqk_gete() ####
`xval mqk_gete(str "qname")`
#### KSR.mqueue.mqk_getw() ####
`xval mqk_getw(str "qname")`
#### KSR.mqueue.mqv_get() ####
`xval mqv_get(str "qname")`
#### KSR.mqueue.mqv_gete() ####
`xval mqv_gete(str "qname")`
#### KSR.mqueue.mqv_getw() ####
`xval mqv_getw(str "qname")`
## msilo ##
#### KSR.msilo.mdump() ####
`int mdump()`
#### KSR.msilo.mdump_uri() ####
`int mdump_uri(str "owner_s")`
#### KSR.msilo.mstore() ####
`int mstore()`
#### KSR.msilo.mstore_uri() ####
`int mstore_uri(str "owner_s")`
## msrp ##
#### KSR.msrp.cmap_lookup() ####
`int cmap_lookup()`
#### KSR.msrp.cmap_save() ####
`int cmap_save()`
#### KSR.msrp.is_reply() ####
`int is_reply()`
#### KSR.msrp.is_request() ####
`int is_request()`
#### KSR.msrp.relay() ####
`int relay()`
#### KSR.msrp.relay_flags() ####
`int relay_flags(int rtflags)`
#### KSR.msrp.reply() ####
`int reply(str "rcode", str "rtext", str "rhdrs")`
#### KSR.msrp.reply_flags() ####
`int reply_flags(int rtflags)`
#### KSR.msrp.set_dst() ####
`int set_dst(str "rtaddr", str "rfsock")`
## mtree ##
#### KSR.mtree.mt_match() ####
`int mt_match(str "tname", str "tomatch", int mval)`
## nat_traversal ##
#### KSR.nat_traversal.client_nat_test() ####
`int client_nat_test(int tests)`
#### KSR.nat_traversal.fix_contact() ####
`int fix_contact()`
#### KSR.nat_traversal.nat_keepalive() ####
`int nat_keepalive()`
## nathelper ##
#### KSR.nathelper.add_contact_alias() ####
`int add_contact_alias()`
#### KSR.nathelper.add_contact_alias_addr() ####
`int add_contact_alias_addr(str "ip_str", str "port_str", str "proto_str")`
#### KSR.nathelper.add_rcv_param() ####
`int add_rcv_param(int upos)`
#### KSR.nathelper.fix_nated_contact() ####
`int fix_nated_contact()`
#### KSR.nathelper.fix_nated_register() ####
`int fix_nated_register()`
#### KSR.nathelper.fix_nated_sdp() ####
`int fix_nated_sdp(int level)`
#### KSR.nathelper.fix_nated_sdp_ip() ####
`int fix_nated_sdp_ip(int level, str "ip")`
#### KSR.nathelper.handle_ruri_alias() ####
`int handle_ruri_alias()`
#### KSR.nathelper.is_rfc1918() ####
`int is_rfc1918(str "address")`
#### KSR.nathelper.nat_uac_test() ####
`int nat_uac_test(int tests)`
#### KSR.nathelper.set_alias_to_pv() ####
`int set_alias_to_pv(str "uri_avp")`
#### KSR.nathelper.set_contact_alias() ####
`int set_contact_alias()`
## ndb_mongodb ##
#### KSR.ndb_mongodb.exec() ####
`int exec(str "ssrv", str "sdname", str "scname", str "scmd", str "sres")`
#### KSR.ndb_mongodb.exec_simple() ####
`int exec_simple(str "ssrv", str "sdname", str "scname", str "scmd", str "sres")`
#### KSR.ndb_mongodb.execx() ####
`int execx(str "ssrv", str "sdname", str "scname", str "scmd", str "sres")`
#### KSR.ndb_mongodb.find() ####
`int find(str "ssrv", str "sdname", str "scname", str "scmd", str "sres")`
#### KSR.ndb_mongodb.find_one() ####
`int find_one(str "ssrv", str "sdname", str "scname", str "scmd", str "sres")`
#### KSR.ndb_mongodb.free_reply() ####
`int free_reply(str "name")`
#### KSR.ndb_mongodb.next_reply() ####
`int next_reply(str "name")`
## ndb_redis ##
#### KSR.ndb_redis.redis_cmd() ####
`int redis_cmd(str "srv", str "rcmd", str "sres")`
#### KSR.ndb_redis.redis_cmd_p1() ####
`int redis_cmd_p1(str "srv", str "rcmd", str "p1", str "sres")`
#### KSR.ndb_redis.redis_cmd_p2() ####
`int redis_cmd_p2(str "srv", str "rcmd", str "p1", str "p2", str "sres")`
#### KSR.ndb_redis.redis_cmd_p3() ####
`int redis_cmd_p3(str "srv", str "rcmd", str "p1", str "p2", str "p3", str "sres")`
#### KSR.ndb_redis.redis_free() ####
`int redis_free(str "name")`
## path ##
#### KSR.path.add_path() ####
`int add_path()`
#### KSR.path.add_path_received() ####
`int add_path_received()`
#### KSR.path.add_path_received_user() ####
`int add_path_received_user(str "_user")`
#### KSR.path.add_path_received_user_params() ####
`int add_path_received_user_params(str "_user", str "_params")`
#### KSR.path.add_path_user() ####
`int add_path_user(str "_user")`
#### KSR.path.add_path_user_params() ####
`int add_path_user_params(str "_user", str "_params")`
## pdt ##
#### KSR.pdt.pd_translate() ####
`int pd_translate(str "sd", int md)`
#### KSR.pdt.pprefix2domain() ####
`int pprefix2domain(int m, int s)`
## permissions ##
#### KSR.permissions.allow_address() ####
`int allow_address(int addr_group, str "ips", int port)`
#### KSR.permissions.allow_address_group() ####
`int allow_address_group(str "_addr", int _port)`
#### KSR.permissions.allow_source_address() ####
`int allow_source_address(int addr_group)`
#### KSR.permissions.allow_source_address_group() ####
`int allow_source_address_group()`
## phonenum ##
#### KSR.phonenum.match() ####
`int match(str "tomatch", str "pvclass")`
## pike ##
#### KSR.pike.pike_check_req() ####
`int pike_check_req()`
## pipelimit ##
#### KSR.pipelimit.pl_check() ####
`int pl_check(str "pipeid")`
#### KSR.pipelimit.pl_check_limit() ####
`int pl_check_limit(str "pipeid", str "alg", int limit)`
#### KSR.pipelimit.pl_drop() ####
`int pl_drop()`
#### KSR.pipelimit.pl_drop_range() ####
`int pl_drop_range(int rmin, int rmax)`
#### KSR.pipelimit.pl_drop_retry() ####
`int pl_drop_retry(int rafter)`
## prefix_route ##
#### KSR.prefix_route.prefix_route() ####
`int prefix_route(str "ruser")`
#### KSR.prefix_route.prefix_route_uri() ####
`int prefix_route_uri()`
## presence ##
#### KSR.presence.handle_publish() ####
`int handle_publish()`
#### KSR.presence.handle_publish_uri() ####
`int handle_publish_uri(str "sender_uri")`
#### KSR.presence.handle_subscribe() ####
`int handle_subscribe()`
#### KSR.presence.handle_subscribe_uri() ####
`int handle_subscribe_uri(str "wuri")`
#### KSR.presence.pres_auth_status() ####
`int pres_auth_status(str "watcher_uri", str "presentity_uri")`
#### KSR.presence.pres_has_subscribers() ####
`int pres_has_subscribers(str "pres_uri", str "wevent")`
#### KSR.presence.pres_refresh_watchers() ####
`int pres_refresh_watchers(str "pres", str "event", int type)`
#### KSR.presence.pres_refresh_watchers_file() ####
`int pres_refresh_watchers_file(str "pres", str "event", int type, str "file_uri", str "filename")`
#### KSR.presence.pres_update_watchers() ####
`int pres_update_watchers(str "pres_uri", str "event")`
## presence_xml ##
#### KSR.presence_xml.pres_check_activities() ####
`int pres_check_activities(str "pres_uri", str "activity")`
#### KSR.presence_xml.pres_check_basic() ####
`int pres_check_basic(str "pres_uri", str "status")`
## pua ##
#### KSR.pua.pua_set_publish() ####
`int pua_set_publish()`
#### KSR.pua.pua_update_contact() ####
`int pua_update_contact()`
## pv_headers ##
#### KSR.pv_headers.pvh_append_header() ####
`int pvh_append_header(str "hname", str "hvalue")`
#### KSR.pv_headers.pvh_apply_headers() ####
`int pvh_apply_headers()`
#### KSR.pv_headers.pvh_check_header() ####
`int pvh_check_header(str "hname")`
#### KSR.pv_headers.pvh_collect_headers() ####
`int pvh_collect_headers()`
#### KSR.pv_headers.pvh_modify_header() ####
`int pvh_modify_header(str "hname", str "hvalue", int indx)`
#### KSR.pv_headers.pvh_remove_header() ####
`int pvh_remove_header(str "hname", int indx)`
#### KSR.pv_headers.pvh_reset_headers() ####
`int pvh_reset_headers()`
## pvx ##
#### KSR.pvx.avp_get() ####
`xval avp_get(str "xname")`
#### KSR.pvx.avp_gete() ####
`xval avp_gete(str "xname")`
#### KSR.pvx.avp_getw() ####
`xval avp_getw(str "xname")`
#### KSR.pvx.avp_is_null() ####
`int avp_is_null(str "xname")`
#### KSR.pvx.avp_rm() ####
`int avp_rm(str "xname")`
#### KSR.pvx.avp_seti() ####
`int avp_seti(str "xname", int vn)`
#### KSR.pvx.avp_sets() ####
`int avp_sets(str "xname", str "vs")`
#### KSR.pvx.evalx() ####
`int evalx(str "dst", str "fmt")`
#### KSR.pvx.pv_var_to_xavp() ####
`int pv_var_to_xavp(str "varname", str "xname")`
#### KSR.pvx.pv_xavp_print() ####
`int pv_xavp_print()`
#### KSR.pvx.pv_xavp_to_var() ####
`int pv_xavp_to_var(str "xname")`
#### KSR.pvx.pv_xavu_print() ####
`int pv_xavu_print()`
#### KSR.pvx.sbranch_append() ####
`int sbranch_append()`
#### KSR.pvx.sbranch_reset() ####
`int sbranch_reset()`
#### KSR.pvx.sbranch_set_ruri() ####
`int sbranch_set_ruri()`
#### KSR.pvx.shv_get() ####
`xval shv_get(str "vname")`
#### KSR.pvx.shv_seti() ####
`int shv_seti(str "vname", int ival)`
#### KSR.pvx.shv_sets() ####
`int shv_sets(str "vname", str "sval")`
#### KSR.pvx.var_get() ####
`xval var_get(str "vname")`
#### KSR.pvx.var_seti() ####
`int var_seti(str "vname", int ival)`
#### KSR.pvx.var_sets() ####
`int var_sets(str "vname", str "sval")`
#### KSR.pvx.xavp_child_get() ####
`xval xavp_child_get(str "rname", str "cname")`
#### KSR.pvx.xavp_child_gete() ####
`xval xavp_child_gete(str "rname", str "cname")`
#### KSR.pvx.xavp_child_getw() ####
`xval xavp_child_getw(str "rname", str "cname")`
#### KSR.pvx.xavp_child_is_null() ####
`int xavp_child_is_null(str "rname", str "cname")`
#### KSR.pvx.xavp_child_rm() ####
`int xavp_child_rm(str "rname", str "cname")`
#### KSR.pvx.xavp_child_seti() ####
`int xavp_child_seti(str "rname", str "cname", int ival)`
#### KSR.pvx.xavp_child_sets() ####
`int xavp_child_sets(str "rname", str "cname", str "sval")`
#### KSR.pvx.xavp_copy() ####
`int xavp_copy(str "src_name", int src_idx, str "dst_name")`
#### KSR.pvx.xavp_copy_dst() ####
`int xavp_copy_dst(str "src_name", int src_idx, str "dst_name", int dst_idx)`
#### KSR.pvx.xavp_get() ####
`xval xavp_get(str "rname")`
#### KSR.pvx.xavp_get_keys() ####
`xval xavp_get_keys(str "rname", int indx)`
#### KSR.pvx.xavp_getd() ####
`xval xavp_getd(str "rname")`
#### KSR.pvx.xavp_getd_p1() ####
`xval xavp_getd_p1(str "rname", int indx)`
#### KSR.pvx.xavp_gete() ####
`xval xavp_gete(str "rname")`
#### KSR.pvx.xavp_getw() ####
`xval xavp_getw(str "rname")`
#### KSR.pvx.xavp_is_null() ####
`int xavp_is_null(str "rname")`
#### KSR.pvx.xavp_params_explode() ####
`int xavp_params_explode(str "sparams", str "sxname")`
#### KSR.pvx.xavp_params_implode() ####
`int xavp_params_implode(str "sxname", str "svname")`
#### KSR.pvx.xavp_rm() ####
`int xavp_rm(str "rname")`
#### KSR.pvx.xavp_seti() ####
`int xavp_seti(str "rname", int ival)`
#### KSR.pvx.xavp_sets() ####
`int xavp_sets(str "rname", str "sval")`
#### KSR.pvx.xavu_child_get() ####
`xval xavu_child_get(str "rname", str "cname")`
#### KSR.pvx.xavu_child_gete() ####
`xval xavu_child_gete(str "rname", str "cname")`
#### KSR.pvx.xavu_child_getw() ####
`xval xavu_child_getw(str "rname", str "cname")`
#### KSR.pvx.xavu_child_is_null() ####
`int xavu_child_is_null(str "rname", str "cname")`
#### KSR.pvx.xavu_child_rm() ####
`int xavu_child_rm(str "rname", str "cname")`
#### KSR.pvx.xavu_child_seti() ####
`int xavu_child_seti(str "rname", str "cname", int ival)`
#### KSR.pvx.xavu_child_sets() ####
`int xavu_child_sets(str "rname", str "cname", str "sval")`
#### KSR.pvx.xavu_get() ####
`xval xavu_get(str "rname")`
#### KSR.pvx.xavu_gete() ####
`xval xavu_gete(str "rname")`
#### KSR.pvx.xavu_getw() ####
`xval xavu_getw(str "rname")`
#### KSR.pvx.xavu_is_null() ####
`int xavu_is_null(str "rname")`
#### KSR.pvx.xavu_rm() ####
`int xavu_rm(str "rname")`
#### KSR.pvx.xavu_seti() ####
`int xavu_seti(str "rname", int ival)`
#### KSR.pvx.xavu_sets() ####
`int xavu_sets(str "rname", str "sval")`
## rabbitmq ##
#### KSR.rabbitmq.publish() ####
`int publish(str "exchange", str "routingkey", str "contenttype", str "messagebody")`
#### KSR.rabbitmq.publish_consume() ####
`int publish_consume(str "exchange", str "routingkey", str "contenttype", str "messagebody", str "dpv")`
## regex ##
#### KSR.regex.pcre_match() ####
`int pcre_match(str "string", str "regex")`
#### KSR.regex.pcre_match_group() ####
`int pcre_match_group(str "string", int num_pcre)`
## registrar ##
#### KSR.registrar.add_sock_hdr() ####
`int add_sock_hdr(str "hdr_name")`
#### KSR.registrar.lookup() ####
`int lookup(str "table")`
#### KSR.registrar.lookup_branches() ####
`int lookup_branches(str "_dtable")`
#### KSR.registrar.lookup_to_dset() ####
`int lookup_to_dset(str "table", str "uri")`
#### KSR.registrar.lookup_uri() ####
`int lookup_uri(str "table", str "uri")`
#### KSR.registrar.reg_fetch_contacts() ####
`int reg_fetch_contacts(str "dtable", str "uri", str "profile")`
#### KSR.registrar.reg_free_contacts() ####
`int reg_free_contacts(str "profile")`
#### KSR.registrar.reg_send_reply() ####
`int reg_send_reply()`
#### KSR.registrar.registered() ####
`int registered(str "table")`
#### KSR.registrar.registered_action() ####
`int registered_action(str "_dtable", str "_uri", int _f, int _aflags)`
#### KSR.registrar.registered_flags() ####
`int registered_flags(str "_dtable", str "_uri", int _f)`
#### KSR.registrar.registered_uri() ####
`int registered_uri(str "_dtable", str "_uri")`
#### KSR.registrar.save() ####
`int save(str "table", int flags)`
#### KSR.registrar.save_uri() ####
`int save_uri(str "table", int flags, str "uri")`
#### KSR.registrar.set_q_override() ####
`int set_q_override(str "new_q")`
#### KSR.registrar.unregister() ####
`int unregister(str "_dtable", str "_uri")`
#### KSR.registrar.unregister_ruid() ####
`int unregister_ruid(str "_dtable", str "_uri", str "_ruid")`
## rls ##
#### KSR.rls.handle_notify() ####
`int handle_notify()`
#### KSR.rls.handle_subscribe() ####
`int handle_subscribe()`
#### KSR.rls.handle_subscribe_uri() ####
`int handle_subscribe_uri(str "wuri")`
#### KSR.rls.update_subs() ####
`int update_subs(str "uri", str "event")`
## rr ##
#### KSR.rr.add_rr_param() ####
`int add_rr_param(str "sparam")`
#### KSR.rr.check_route_param() ####
`int check_route_param(str "sre")`
#### KSR.rr.is_direction() ####
`int is_direction(str "dir")`
#### KSR.rr.loose_route() ####
`int loose_route()`
#### KSR.rr.loose_route_preloaded() ####
`int loose_route_preloaded()`
#### KSR.rr.next_hop_route() ####
`int next_hop_route()`
#### KSR.rr.record_route() ####
`int record_route()`
#### KSR.rr.record_route_advertised_address() ####
`int record_route_advertised_address(str "addr")`
#### KSR.rr.record_route_params() ####
`int record_route_params(str "sparams")`
#### KSR.rr.record_route_preset() ####
`int record_route_preset(str "addr1", str "addr2")`
#### KSR.rr.record_route_preset_one() ####
`int record_route_preset_one(str "addr1")`
#### KSR.rr.remove_record_route() ####
`int remove_record_route()`
## rtjson ##
#### KSR.rtjson.init_routes() ####
`int init_routes(str "srdoc")`
#### KSR.rtjson.next_route() ####
`int next_route()`
#### KSR.rtjson.push_routes() ####
`int push_routes()`
#### KSR.rtjson.update_branch() ####
`int update_branch()`
## rtpengine ##
This module enables media streams to be proxied via an RTPproxy.
#### KSR.rtpengine.rtpengine_answer() ####
`int rtpengine_answer(str "flags")`
#### KSR.rtpengine.rtpengine_answer0() ####
`int rtpengine_answer0()`
#### KSR.rtpengine.rtpengine_delete() ####
`int rtpengine_delete(str "flags")`
#### KSR.rtpengine.rtpengine_delete0() ####
`int rtpengine_delete0()`
#### KSR.rtpengine.rtpengine_manage() ####
`int rtpengine_manage(str "flags")`
#### KSR.rtpengine.rtpengine_manage0() ####
`int rtpengine_manage0()`
#### KSR.rtpengine.rtpengine_offer() ####
`int rtpengine_offer(str "flags")`
#### KSR.rtpengine.rtpengine_offer0() ####
`int rtpengine_offer0()`
#### KSR.rtpengine.rtpengine_query() ####
`int rtpengine_query(str "flags")`
#### KSR.rtpengine.rtpengine_query0() ####
`int rtpengine_query0()`
#### KSR.rtpengine.set_rtpengine_set() ####
`int set_rtpengine_set(int r1)`
#### KSR.rtpengine.set_rtpengine_set2() ####
`int set_rtpengine_set2(int r1, int r2)`
This function is the sibling function to [set_rtpengine_set()](#ksrrtpengineset_rtpengine_set). The original module function is declared as
`set_rtpengine_set(setid[, setid2])`.
In KEMI set_rtpengine_set() takes only the first parameter and set_rtpengine_set2() allows for the second optional parameter to be passed.
```
KSR.rtpengine.set_rtpengine_set2(2, 1);
KSR.rtpengine.rtpengine_offer();
```
Please review the documentation for [set_rtpengine_set()](#ksrrtpengineset_rtpengine_set) for more information.
#### KSR.rtpengine.start_recording() ####
`int start_recording()`
#### KSR.rtpengine.stop_recording() ####
`int stop_recording()`
## rtpproxy ##
#### KSR.rtpproxy.rtpproxy_answer() ####
`int rtpproxy_answer(str "flags")`
#### KSR.rtpproxy.rtpproxy_answer0() ####
`int rtpproxy_answer0()`
#### KSR.rtpproxy.rtpproxy_answer_ip() ####
`int rtpproxy_answer_ip(str "flags", str "mip")`
#### KSR.rtpproxy.rtpproxy_destroy() ####
`int rtpproxy_destroy(str "flags")`
#### KSR.rtpproxy.rtpproxy_destroy0() ####
`int rtpproxy_destroy0()`
#### KSR.rtpproxy.rtpproxy_manage() ####
`int rtpproxy_manage(str "flags")`
#### KSR.rtpproxy.rtpproxy_manage0() ####
`int rtpproxy_manage0()`
#### KSR.rtpproxy.rtpproxy_manage_ip() ####
`int rtpproxy_manage_ip(str "flags", str "mip")`
#### KSR.rtpproxy.rtpproxy_offer() ####
`int rtpproxy_offer(str "flags")`
#### KSR.rtpproxy.rtpproxy_offer0() ####
`int rtpproxy_offer0()`
#### KSR.rtpproxy.rtpproxy_offer_ip() ####
`int rtpproxy_offer_ip(str "flags", str "mip")`
#### KSR.rtpproxy.rtpproxy_stop_stream2uac() ####
`int rtpproxy_stop_stream2uac()`
#### KSR.rtpproxy.rtpproxy_stop_stream2uas() ####
`int rtpproxy_stop_stream2uas()`
#### KSR.rtpproxy.rtpproxy_stream2uac() ####
`int rtpproxy_stream2uac(str "pname", int count)`
#### KSR.rtpproxy.rtpproxy_stream2uas() ####
`int rtpproxy_stream2uas(str "pname", int count)`
#### KSR.rtpproxy.set_rtpproxy_set() ####
`int set_rtpproxy_set(int rset)`
#### KSR.rtpproxy.start_recording() ####
`int start_recording()`
## sanity ##
#### KSR.sanity.sanity_check() ####
`int sanity_check(int mflags, int uflags)`
#### KSR.sanity.sanity_check_defaults() ####
`int sanity_check_defaults()`
#### KSR.sanity.sanity_reply() ####
`int sanity_reply()`
## sca ##
#### KSR.sca.call_info_update() ####
`int call_info_update(int update_mask, str "uri_to", str "uri_from")`
#### KSR.sca.call_info_update_default() ####
`int call_info_update_default()`
#### KSR.sca.call_info_update_mask() ####
`int call_info_update_mask(int umask)`
#### KSR.sca.call_info_update_turi() ####
`int call_info_update_turi(int umask, str "sto")`
#### KSR.sca.handle_subscribe() ####
`int handle_subscribe()`
## sdpops ##
#### KSR.sdpops.keep_codecs_by_id() ####
`int keep_codecs_by_id(str "codecs", str "media")`
#### KSR.sdpops.keep_codecs_by_name() ####
`int keep_codecs_by_name(str "codecs", str "media")`
#### KSR.sdpops.remove_codecs_by_id() ####
`int remove_codecs_by_id(str "codecs", str "media")`
#### KSR.sdpops.remove_codecs_by_name() ####
`int remove_codecs_by_name(str "codecs", str "media")`
#### KSR.sdpops.remove_line_by_prefix() ####
`int remove_line_by_prefix(str "prefix", str "media")`
#### KSR.sdpops.remove_media() ####
`int remove_media(str "media")`
#### KSR.sdpops.sdp_content() ####
`int sdp_content()`
#### KSR.sdpops.sdp_content_flags() ####
`int sdp_content_flags(int flags)`
#### KSR.sdpops.sdp_get() ####
`int sdp_get(str "avp")`
#### KSR.sdpops.sdp_get_line_startswith() ####
`int sdp_get_line_startswith(str "aname", str "sline")`
#### KSR.sdpops.sdp_print() ####
`int sdp_print(int llevel)`
#### KSR.sdpops.sdp_transport() ####
`int sdp_transport(str "avp")`
#### KSR.sdpops.sdp_with_active_media() ####
`int sdp_with_active_media(str "media")`
#### KSR.sdpops.sdp_with_codecs_by_id() ####
`int sdp_with_codecs_by_id(str "codecs")`
#### KSR.sdpops.sdp_with_codecs_by_name() ####
`int sdp_with_codecs_by_name(str "codecs")`
#### KSR.sdpops.sdp_with_ice() ####
`int sdp_with_ice()`
#### KSR.sdpops.sdp_with_media() ####
`int sdp_with_media(str "media")`
#### KSR.sdpops.sdp_with_transport() ####
`int sdp_with_transport(str "transport")`
#### KSR.sdpops.sdp_with_transport_like() ####
`int sdp_with_transport_like(str "transport")`
## secsipid ##
#### KSR.secsipid.secsipid_add_identity() ####
`int secsipid_add_identity(str "origtn", str "desttn", str "attest", str "origid", str "x5u", str "keypath")`
#### KSR.secsipid.secsipid_check_identity() ####
`int secsipid_check_identity(str "keypath")`
## sipcapture ##
#### KSR.sipcapture.float2int() ####
`int float2int(str "_val", str "_coof")`
#### KSR.sipcapture.report_capture() ####
`int report_capture(str "_table")`
#### KSR.sipcapture.report_capture_cid() ####
`int report_capture_cid(str "_table", str "_cid")`
#### KSR.sipcapture.report_capture_data() ####
`int report_capture_data(str "_table", str "_cid", str "_data")`
#### KSR.sipcapture.sip_capture() ####
`int sip_capture()`
#### KSR.sipcapture.sip_capture_forward() ####
`int sip_capture_forward(str "puri")`
#### KSR.sipcapture.sip_capture_mode() ####
`int sip_capture_mode(str "_table", str "_cmdata")`
#### KSR.sipcapture.sip_capture_table() ####
`int sip_capture_table(str "_table")`
## sipdump ##
#### KSR.sipdump.get_buf() ####
`xval get_buf()`
#### KSR.sipdump.get_dst_ip() ####
`xval get_dst_ip()`
#### KSR.sipdump.get_src_ip() ####
`xval get_src_ip()`
#### KSR.sipdump.get_tag() ####
`xval get_tag()`
#### KSR.sipdump.send() ####
`int send(str "stag")`
## sipjson ##
#### KSR.sipjson.sj_serialize() ####
`int sj_serialize(str "smode", str "pvn")`
## siptrace ##
#### KSR.siptrace.hlog() ####
`int hlog(str "message")`
#### KSR.siptrace.hlog_cid() ####
`int hlog_cid(str "correlationid", str "message")`
#### KSR.siptrace.sip_trace() ####
`int sip_trace()`
#### KSR.siptrace.sip_trace_dst() ####
`int sip_trace_dst(str "duri")`
#### KSR.siptrace.sip_trace_dst_cid() ####
`int sip_trace_dst_cid(str "duri", str "cid")`
#### KSR.siptrace.sip_trace_dst_cid_type() ####
`int sip_trace_dst_cid_type(str "duri", str "cid", str "sflag")`
#### KSR.siptrace.sip_trace_mode() ####
`int sip_trace_mode(str "smode")`
## siputils ##
#### KSR.siputils.decode_contact() ####
`int decode_contact()`
#### KSR.siputils.decode_contact_header() ####
`int decode_contact_header()`
#### KSR.siputils.encode_contact() ####
`int encode_contact(str "eprefix", str "eaddr")`
#### KSR.siputils.has_totag() ####
`int has_totag()`
#### KSR.siputils.is_alphanum() ####
`int is_alphanum(str "tval")`
#### KSR.siputils.is_alphanumex() ####
`int is_alphanumex(str "tval", str "eset")`
#### KSR.siputils.is_first_hop() ####
`int is_first_hop()`
#### KSR.siputils.is_numeric() ####
`int is_numeric(str "tval")`
#### KSR.siputils.is_reply() ####
`int is_reply()`
#### KSR.siputils.is_request() ####
`int is_request()`
#### KSR.siputils.is_tel_number() ####
`int is_tel_number(str "tval")`
#### KSR.siputils.is_uri() ####
`int is_uri(str "suri")`
#### KSR.siputils.is_user() ####
`int is_user(str "suser")`
#### KSR.siputils.options_reply() ####
`int options_reply()`
#### KSR.siputils.uri_param() ####
`int uri_param(str "sparam")`
#### KSR.siputils.uri_param_value() ####
`int uri_param_value(str "sparam", str "svalue")`
## sl ##
#### KSR.sl.send_reply() ####
`int send_reply(int code, str "reason")`
#### KSR.sl.sl_forward_reply() ####
`int sl_forward_reply(str "code", str "reason")`
#### KSR.sl.sl_reply_error() ####
`int sl_reply_error()`
#### KSR.sl.sl_send_reply() ####
`int sl_send_reply(int code, str "reason")`
## speeddial ##
#### KSR.speeddial.lookup() ####
`int lookup(str "stable")`
#### KSR.speeddial.lookup_owner() ####
`int lookup_owner(str "stable", str "sowner")`
## sqlops ##
#### KSR.sqlops.sql_is_null() ####
`int sql_is_null(str "sres", int i, int j)`
#### KSR.sqlops.sql_num_columns() ####
`int sql_num_columns(str "sres")`
#### KSR.sqlops.sql_num_rows() ####
`int sql_num_rows(str "sres")`
#### KSR.sqlops.sql_query() ####
`int sql_query(str "scon", str "squery", str "sres")`
#### KSR.sqlops.sql_query_async() ####
`int sql_query_async(str "scon", str "squery")`
#### KSR.sqlops.sql_result_free() ####
`int sql_result_free(str "sres")`
#### KSR.sqlops.sql_result_get() ####
`xval sql_result_get(str "resid", int row, int col)`
#### KSR.sqlops.sql_result_gete() ####
`xval sql_result_gete(str "resid", int row, int col)`
#### KSR.sqlops.sql_result_getz() ####
`xval sql_result_getz(str "resid", int row, int col)`
#### KSR.sqlops.sql_xquery() ####
`int sql_xquery(str "scon", str "squery", str "xavp")`
## ss7ops ##
#### KSR.ss7ops.isup_to_json() ####
`int isup_to_json(int proto)`
## sst ##
#### KSR.sst.sst_check_min() ####
`int sst_check_min(int flag)`
## statistics ##
#### KSR.statistics.reset_stat() ####
`int reset_stat(str "sname")`
#### KSR.statistics.update_stat() ####
`int update_stat(str "sname", int sval)`
## statsc ##
#### KSR.statsc.statsc_reset() ####
`int statsc_reset()`
## statsd ##
#### KSR.statsd.statsd_decr() ####
`int statsd_decr(str "key")`
#### KSR.statsd.statsd_gauge() ####
`int statsd_gauge(str "key", str "val")`
#### KSR.statsd.statsd_incr() ####
`int statsd_incr(str "key")`
#### KSR.statsd.statsd_set() ####
`int statsd_set(str "key", str "val")`
#### KSR.statsd.statsd_start() ####
`int statsd_start(str "key")`
#### KSR.statsd.statsd_stop() ####
`int statsd_stop(str "key")`
## tcpops ##
#### KSR.tcpops.tcp_conid_alive() ####
`int tcp_conid_alive(int i_conid)`
#### KSR.tcpops.tcp_conid_state() ####
`int tcp_conid_state(int i_conid)`
#### KSR.tcpops.tcp_enable_closed_event() ####
`int tcp_enable_closed_event()`
#### KSR.tcpops.tcp_enable_closed_event_cid() ####
`int tcp_enable_closed_event_cid(int i_conid)`
#### KSR.tcpops.tcp_keepalive_disable() ####
`int tcp_keepalive_disable()`
#### KSR.tcpops.tcp_keepalive_disable_cid() ####
`int tcp_keepalive_disable_cid(int i_con)`
#### KSR.tcpops.tcp_keepalive_enable() ####
`int tcp_keepalive_enable(int i_idle, int i_cnt, int i_intvl)`
#### KSR.tcpops.tcp_keepalive_enable_cid() ####
`int tcp_keepalive_enable_cid(int i_con, int i_idle, int i_cnt, int i_intvl)`
#### KSR.tcpops.tcp_set_connection_lifetime() ####
`int tcp_set_connection_lifetime(int i_time)`
#### KSR.tcpops.tcp_set_connection_lifetime_cid() ####
`int tcp_set_connection_lifetime_cid(int i_conid, int i_time)`
#### KSR.tcpops.tcp_set_otcpid() ####
`int tcp_set_otcpid(int vconid)`
#### KSR.tcpops.tcp_set_otcpid_flag() ####
`int tcp_set_otcpid_flag(int vmode)`
## textops ##
#### KSR.textops.append_body_part() ####
`int append_body_part(str "txt", str "ct")`
#### KSR.textops.append_body_part_cd() ####
`int append_body_part_cd(str "txt", str "ct", str "cd")`
#### KSR.textops.append_body_part_hex() ####
`int append_body_part_hex(str "txt", str "ct")`
#### KSR.textops.append_body_part_hex_cd() ####
`int append_body_part_hex_cd(str "htxt", str "ct", str "cd")`
#### KSR.textops.cmp_istr() ####
`int cmp_istr(str "s1", str "s2")`
#### KSR.textops.cmp_str() ####
`int cmp_str(str "s1", str "s2")`
#### KSR.textops.filter_body() ####
`int filter_body(str "content_type")`
#### KSR.textops.get_body_part() ####
`int get_body_part(str "ctype", str "pvname")`
#### KSR.textops.get_body_part_raw() ####
`int get_body_part_raw(str "ctype", str "pvname")`
#### KSR.textops.has_body() ####
`int has_body()`
#### KSR.textops.has_body_type() ####
`int has_body_type(str "ctype")`
#### KSR.textops.in_list() ####
`int in_list(str "subject", str "list", str "vsep")`
#### KSR.textops.in_list_prefix() ####
`int in_list_prefix(str "subject", str "list", str "vsep")`
#### KSR.textops.is_audio_on_hold() ####
`int is_audio_on_hold()`
#### KSR.textops.is_present_hf() ####
`int is_present_hf(str "hname")`
#### KSR.textops.is_present_hf_re() ####
`int is_present_hf_re(str "ematch")`
#### KSR.textops.is_privacy() ####
`int is_privacy(str "privacy")`
#### KSR.textops.regex_substring() ####
`int regex_substring(str "input", str "regex", int mindex, int nmatch, str "dst")`
#### KSR.textops.remove_body_part() ####
`int remove_body_part(str "content_type")`
#### KSR.textops.remove_hf_exp() ####
`int remove_hf_exp(str "ematch", str "eskip")`
#### KSR.textops.remove_hf_re() ####
`int remove_hf_re(str "ematch")`
#### KSR.textops.replace() ####
`int replace(str "sre", str "sval")`
#### KSR.textops.replace_all() ####
`int replace_all(str "sre", str "sval")`
#### KSR.textops.replace_body() ####
`int replace_body(str "sre", str "sval")`
#### KSR.textops.replace_body_all() ####
`int replace_body_all(str "sre", str "sval")`
#### KSR.textops.replace_body_atonce() ####
`int replace_body_atonce(str "sre", str "sval")`
#### KSR.textops.replace_body_str() ####
`int replace_body_str(str "mkey", str "rval", str "rmode")`
#### KSR.textops.replace_hdrs() ####
`int replace_hdrs(str "sre", str "sval")`
#### KSR.textops.replace_hdrs_str() ####
`int replace_hdrs_str(str "mkey", str "rval", str "rmode")`
#### KSR.textops.replace_str() ####
`int replace_str(str "mkey", str "rval", str "rmode")`
#### KSR.textops.search() ####
`int search(str "sre")`
#### KSR.textops.search_append() ####
`int search_append(str "ematch", str "val")`
#### KSR.textops.search_append_body() ####
`int search_append_body(str "ematch", str "val")`
#### KSR.textops.search_body() ####
`int search_body(str "sre")`
#### KSR.textops.search_hf() ####
`int search_hf(str "hname", str "sre", str "flags")`
#### KSR.textops.set_body() ####
`int set_body(str "nb", str "nc")`
#### KSR.textops.set_body_multipart() ####
`int set_body_multipart(str "nbody", str "ctype", str "boundary")`
#### KSR.textops.set_body_multipart_boundary() ####
`int set_body_multipart_boundary(str "boundary")`
#### KSR.textops.set_body_multipart_content() ####
`int set_body_multipart_content(str "nbody", str "ctype")`
#### KSR.textops.set_body_multipart_mode() ####
`int set_body_multipart_mode()`
#### KSR.textops.set_reply_body() ####
`int set_reply_body(str "nb", str "nc")`
#### KSR.textops.starts_with() ####
`int starts_with(str "s1", str "s2")`
#### KSR.textops.subst() ####
`int subst(str "subst")`
#### KSR.textops.subst_body() ####
`int subst_body(str "subst")`
#### KSR.textops.subst_hf() ####
`int subst_hf(str "hname", str "subst", str "flags")`
#### KSR.textops.subst_uri() ####
`int subst_uri(str "subst")`
#### KSR.textops.subst_user() ####
`int subst_user(str "subst")`
## textopsx ##
#### KSR.textopsx.append_hf_value() ####
`int append_hf_value(str "hexp", str "val")`
#### KSR.textopsx.assign_hf_value() ####
`int assign_hf_value(str "hexp", str "val")`
#### KSR.textopsx.assign_hf_value2() ####
`int assign_hf_value2(str "hexp", str "val")`
#### KSR.textopsx.change_reply_status() ####
`int change_reply_status(int code, str "reason")`
#### KSR.textopsx.exclude_hf_value() ####
`int exclude_hf_value(str "hexp", str "val")`
#### KSR.textopsx.fnmatch() ####
`int fnmatch(str "val", str "match")`
#### KSR.textopsx.fnmatch_ex() ####
`int fnmatch_ex(str "val", str "match", str "flags")`
#### KSR.textopsx.hf_value_exists() ####
`int hf_value_exists(str "hexp", str "val")`
#### KSR.textopsx.include_hf_value() ####
`int include_hf_value(str "hexp", str "val")`
#### KSR.textopsx.insert_hf_value() ####
`int insert_hf_value(str "hexp", str "val")`
#### KSR.textopsx.keep_hf() ####
`int keep_hf()`
#### KSR.textopsx.keep_hf_re() ####
`int keep_hf_re(str "sre")`
#### KSR.textopsx.msg_apply_changes() ####
`int msg_apply_changes()`
#### KSR.textopsx.msg_set_buffer() ####
`int msg_set_buffer(str "obuf")`
#### KSR.textopsx.remove_body() ####
`int remove_body()`
#### KSR.textopsx.remove_hf_value() ####
`int remove_hf_value(str "hexp")`
#### KSR.textopsx.remove_hf_value2() ####
`int remove_hf_value2(str "hexp", str "val")`
## tls ##
#### KSR.tls.is_peer_verified() ####
`int is_peer_verified()`
## tm ##
#### KSR.tm.ki_t_load_contacts_mode() ####
`int ki_t_load_contacts_mode(int mode)`
#### KSR.tm.t_any_replied() ####
`int t_any_replied()`
#### KSR.tm.t_any_timeout() ####
`int t_any_timeout()`
#### KSR.tm.t_branch_replied() ####
`int t_branch_replied()`
#### KSR.tm.t_branch_timeout() ####
`int t_branch_timeout()`
#### KSR.tm.t_check_status() ####
`int t_check_status(str "sexp")`
#### KSR.tm.t_check_trans() ####
`int t_check_trans()`
#### KSR.tm.t_clean() ####
`int t_clean()`
#### KSR.tm.t_drop_replies() ####
`int t_drop_replies(str "mode")`
#### KSR.tm.t_drop_replies_all() ####
`int t_drop_replies_all()`
#### KSR.tm.t_get_branch_index() ####
`int t_get_branch_index()`
#### KSR.tm.t_get_status_code() ####
`int t_get_status_code()`
#### KSR.tm.t_grep_status() ####
`int t_grep_status(int code)`
#### KSR.tm.t_is_canceled() ####
`int t_is_canceled()`
#### KSR.tm.t_is_expired() ####
`int t_is_expired()`
#### KSR.tm.t_is_retr_async_reply() ####
`int t_is_retr_async_reply()`
#### KSR.tm.t_is_set() ####
`int t_is_set(str "target")`
#### KSR.tm.t_load_contacts() ####
`int t_load_contacts()`
#### KSR.tm.t_lookup_cancel() ####
`int t_lookup_cancel()`
#### KSR.tm.t_lookup_cancel_flags() ####
`int t_lookup_cancel_flags(int flags)`
#### KSR.tm.t_lookup_request() ####
`int t_lookup_request()`
#### KSR.tm.t_newtran() ####
`int t_newtran()`
#### KSR.tm.t_next_contact_flow() ####
`int t_next_contact_flow()`
#### KSR.tm.t_next_contacts() ####
`int t_next_contacts()`
#### KSR.tm.t_on_branch() ####
`int t_on_branch(str "rname")`
#### KSR.tm.t_on_branch_failure() ####
`int t_on_branch_failure(str "rname")`
#### KSR.tm.t_on_failure() ####
`int t_on_failure(str "rname")`
#### KSR.tm.t_on_reply() ####
`int t_on_reply(str "rname")`
#### KSR.tm.t_relay() ####
`int t_relay()`
#### KSR.tm.t_relay_to_flags() ####
`int t_relay_to_flags(int rflags)`
#### KSR.tm.t_relay_to_proxy() ####
`int t_relay_to_proxy(str "sproxy")`
#### KSR.tm.t_relay_to_proxy_flags() ####
`int t_relay_to_proxy_flags(str "sproxy", int rflags)`
#### KSR.tm.t_release() ####
`int t_release()`
#### KSR.tm.t_replicate() ####
`int t_replicate(str "suri")`
#### KSR.tm.t_reply() ####
`int t_reply(int code, str "reason")`
#### KSR.tm.t_reset_fr() ####
`int t_reset_fr()`
#### KSR.tm.t_reset_max_lifetime() ####
`int t_reset_max_lifetime()`
#### KSR.tm.t_reset_retr() ####
`int t_reset_retr()`
#### KSR.tm.t_retransmit_reply() ####
`int t_retransmit_reply()`
#### KSR.tm.t_save_lumps() ####
`int t_save_lumps()`
#### KSR.tm.t_send_reply() ####
`int t_send_reply(int code, str "reason")`
#### KSR.tm.t_set_auto_inv_100() ####
`int t_set_auto_inv_100(int state)`
#### KSR.tm.t_set_disable_6xx() ####
`int t_set_disable_6xx(int state)`
#### KSR.tm.t_set_disable_failover() ####
`int t_set_disable_failover(int state)`
#### KSR.tm.t_set_disable_internal_reply() ####
`int t_set_disable_internal_reply(int state)`
#### KSR.tm.t_set_fr() ####
`int t_set_fr(int fr_inv, int fr)`
#### KSR.tm.t_set_fr_inv() ####
`int t_set_fr_inv(int fr_inv)`
#### KSR.tm.t_set_max_lifetime() ####
`int t_set_max_lifetime(int t1, int t2)`
#### KSR.tm.t_set_no_e2e_cancel_reason() ####
`int t_set_no_e2e_cancel_reason(int state)`
#### KSR.tm.t_set_retr() ####
`int t_set_retr(int t1, int t2)`
#### KSR.tm.t_uac_send() ####
`int t_uac_send(str "method", str "ruri", str "nexthop", str "ssock", str "hdrs", str "body")`
#### KSR.tm.t_use_uac_headers() ####
`int t_use_uac_headers()`
## tmrec ##
#### KSR.tmrec.is_leap_year() ####
`int is_leap_year(int y)`
#### KSR.tmrec.is_leap_year_now() ####
`int is_leap_year_now()`
#### KSR.tmrec.match() ####
`int match(str "rv")`
#### KSR.tmrec.match_timestamp() ####
`int match_timestamp(str "rv", int ti)`
#### KSR.tmrec.time_period_match() ####
`int time_period_match(str "period")`
#### KSR.tmrec.time_period_match_timestamp() ####
`int time_period_match_timestamp(str "period", int ti)`
## tmx ##
#### KSR.tmx.t_cancel_branches() ####
`int t_cancel_branches(str "mode")`
#### KSR.tmx.t_cancel_callid() ####
`int t_cancel_callid(str "callid_s", str "cseq_s", int fl)`
#### KSR.tmx.t_cancel_callid_reason() ####
`int t_cancel_callid_reason(str "callid_s", str "cseq_s", int fl, int rcode)`
#### KSR.tmx.t_continue() ####
`int t_continue(int tindex, int tlabel, str "cbname")`
#### KSR.tmx.t_drop() ####
`int t_drop()`
#### KSR.tmx.t_drop_rcode() ####
`int t_drop_rcode(int rcode)`
#### KSR.tmx.t_flush_flags() ####
`int t_flush_flags()`
#### KSR.tmx.t_flush_xflags() ####
`int t_flush_xflags()`
#### KSR.tmx.t_is_branch_route() ####
`int t_is_branch_route()`
#### KSR.tmx.t_is_failure_route() ####
`int t_is_failure_route()`
#### KSR.tmx.t_is_reply_route() ####
`int t_is_reply_route()`
#### KSR.tmx.t_is_request_route() ####
`int t_is_request_route()`
#### KSR.tmx.t_precheck_trans() ####
`int t_precheck_trans()`
#### KSR.tmx.t_reply_callid() ####
`int t_reply_callid(str "callid_s", str "cseq_s", int code, str "status_s")`
#### KSR.tmx.t_reuse_branch() ####
`int t_reuse_branch()`
#### KSR.tmx.t_suspend() ####
`int t_suspend()`
## tsilo ##
#### KSR.tsilo.ts_append() ####
`int ts_append(str "_table", str "_ruri")`
#### KSR.tsilo.ts_append_to() ####
`int ts_append_to(int tindex, int tlabel, str "_table")`
#### KSR.tsilo.ts_append_to_uri() ####
`int ts_append_to_uri(int tindex, int tlabel, str "_table", str "_uri")`
#### KSR.tsilo.ts_store() ####
`int ts_store()`
#### KSR.tsilo.ts_store_uri() ####
`int ts_store_uri(str "puri")`
## uac ##
#### KSR.uac.uac_auth() ####
`int uac_auth()`
#### KSR.uac.uac_auth_mode() ####
`int uac_auth_mode(int mode)`
#### KSR.uac.uac_reg_disable() ####
`int uac_reg_disable(str "attr", str "val")`
#### KSR.uac.uac_reg_enable() ####
`int uac_reg_enable(str "attr", str "val")`
#### KSR.uac.uac_reg_lookup() ####
`int uac_reg_lookup(str "userid", str "sdst")`
#### KSR.uac.uac_reg_refresh() ####
`int uac_reg_refresh(str "l_uuid")`
#### KSR.uac.uac_reg_request_to() ####
`int uac_reg_request_to(str "userid", int imode)`
#### KSR.uac.uac_reg_status() ####
`int uac_reg_status(str "sruuid")`
#### KSR.uac.uac_replace_from() ####
`int uac_replace_from(str "pdsp", str "puri")`
#### KSR.uac.uac_replace_from_uri() ####
`int uac_replace_from_uri(str "puri")`
#### KSR.uac.uac_replace_to() ####
`int uac_replace_to(str "pdsp", str "puri")`
#### KSR.uac.uac_replace_to_uri() ####
`int uac_replace_to_uri(str "puri")`
#### KSR.uac.uac_req_send() ####
`int uac_req_send()`
#### KSR.uac.uac_restore_from() ####
`int uac_restore_from()`
#### KSR.uac.uac_restore_to() ####
`int uac_restore_to()`
## uac_redirect ##
#### KSR.uac_redirect.get_redirects() ####
`int get_redirects(int max_c, int max_b)`
#### KSR.uac_redirect.get_redirects_acc() ####
`int get_redirects_acc(int max_c, int max_b, str "reason")`
#### KSR.uac_redirect.get_redirects_all() ####
`int get_redirects_all()`
## uri_db ##
#### KSR.uri_db.check_from() ####
`int check_from()`
#### KSR.uri_db.check_to() ####
`int check_to()`
#### KSR.uri_db.check_uri() ####
`int check_uri(str "suri")`
#### KSR.uri_db.check_uri_realm() ####
`int check_uri_realm(str "suri", str "susername", str "srealm")`
#### KSR.uri_db.does_uri_exist() ####
`int does_uri_exist()`
## userblacklist ##
#### KSR.userblacklist.check_blacklist() ####
`int check_blacklist(str "stable")`
#### KSR.userblacklist.check_global_blacklist() ####
`int check_global_blacklist()`
#### KSR.userblacklist.check_user_blacklist() ####
`int check_user_blacklist(str "suser", str "sdomain")`
#### KSR.userblacklist.check_user_blacklist_number() ####
`int check_user_blacklist_number(str "suser", str "sdomain", str "snumber")`
#### KSR.userblacklist.check_user_blacklist_table() ####
`int check_user_blacklist_table(str "suser", str "sdomain", str "snumber", str "stable")`
#### KSR.userblacklist.check_user_whitelist() ####
`int check_user_whitelist(str "suser", str "sdomain")`
#### KSR.userblacklist.check_user_whitelist_number() ####
`int check_user_whitelist_number(str "suser", str "sdomain", str "snumber")`
#### KSR.userblacklist.check_user_whitelist_table() ####
`int check_user_whitelist_table(str "suser", str "sdomain", str "snumber", str "stable")`
#### KSR.userblacklist.check_whitelist() ####
`int check_whitelist(str "stable")`
## utils ##
#### KSR.utils.xcap_auth_status() ####
`int xcap_auth_status(str "watcher_uri", str "presentity_uri")`
## websocket ##
#### KSR.websocket.close() ####
`int close()`
#### KSR.websocket.close_conid() ####
`int close_conid(int status, str "reason", int con)`
#### KSR.websocket.close_reason() ####
`int close_reason(int status, str "reason")`
#### KSR.websocket.handle_handshake() ####
`int handle_handshake()`
## xcap_server ##
#### KSR.xcap_server.xcaps_del() ####
`int xcaps_del(str "uri", str "path")`
#### KSR.xcap_server.xcaps_get() ####
`int xcaps_get(str "uri", str "path")`
#### KSR.xcap_server.xcaps_put() ####
`int xcaps_put(str "uri", str "path", str "pbody")`
## xhttp ##
#### KSR.xhttp.xhttp_reply() ####
`int xhttp_reply(int code, str "reason", str "ctype", str "body")`
## xhttp_pi ##
#### KSR.xhttp_pi.dispatch() ####
`int dispatch()`
## xhttp_prom ##
#### KSR.xhttp_prom.check_uri() ####
`int check_uri()`
#### KSR.xhttp_prom.counter_inc_l0() ####
`int counter_inc_l0(str "s_name", int number)`
#### KSR.xhttp_prom.counter_inc_l1() ####
`int counter_inc_l1(str "s_name", int number, str "l1")`
#### KSR.xhttp_prom.counter_inc_l2() ####
`int counter_inc_l2(str "s_name", int number, str "l1", str "l2")`
#### KSR.xhttp_prom.counter_inc_l3() ####
`int counter_inc_l3(str "s_name", int number, str "l1", str "l2", str "l3")`
#### KSR.xhttp_prom.counter_reset_l0() ####
`int counter_reset_l0(str "s_name")`
#### KSR.xhttp_prom.counter_reset_l1() ####
`int counter_reset_l1(str "s_name", str "l1")`
#### KSR.xhttp_prom.counter_reset_l2() ####
`int counter_reset_l2(str "s_name", str "l1", str "l2")`
#### KSR.xhttp_prom.counter_reset_l3() ####
`int counter_reset_l3(str "s_name", str "l1", str "l2", str "l3")`
#### KSR.xhttp_prom.dispatch() ####
`int dispatch()`
#### KSR.xhttp_prom.gauge_reset_l0() ####
`int gauge_reset_l0(str "s_name")`
#### KSR.xhttp_prom.gauge_reset_l1() ####
`int gauge_reset_l1(str "s_name", str "l1")`
#### KSR.xhttp_prom.gauge_reset_l2() ####
`int gauge_reset_l2(str "s_name", str "l1", str "l2")`
#### KSR.xhttp_prom.gauge_reset_l3() ####
`int gauge_reset_l3(str "s_name", str "l1", str "l2", str "l3")`
#### KSR.xhttp_prom.gauge_set_l0() ####
`int gauge_set_l0(str "s_name", str "s_number")`
#### KSR.xhttp_prom.gauge_set_l1() ####
`int gauge_set_l1(str "s_name", str "s_number", str "l1")`
#### KSR.xhttp_prom.gauge_set_l2() ####
`int gauge_set_l2(str "s_name", str "s_number", str "l1", str "l2")`
#### KSR.xhttp_prom.gauge_set_l3() ####
`int gauge_set_l3(str "s_name", str "s_number", str "l1", str "l2", str "l3")`
## xhttp_rpc ##
#### KSR.xhttp_rpc.dispatch() ####
`int dispatch()`
## xlog ##
#### KSR.xlog.xalert() ####
`int xalert(str "lmsg")`
#### KSR.xlog.xcrit() ####
`int xcrit(str "lmsg")`
#### KSR.xlog.xdbg() ####
`int xdbg(str "lmsg")`
#### KSR.xlog.xerr() ####
`int xerr(str "lmsg")`
#### KSR.xlog.xinfo() ####
`int xinfo(str "lmsg")`
#### KSR.xlog.xlog() ####
`int xlog(str "slevel", str "lmsg")`
#### KSR.xlog.xnotice() ####
`int xnotice(str "lmsg")`
#### KSR.xlog.xwarn() ####
`int xwarn(str "lmsg")`
## xmlrpc ##
#### KSR.xmlrpc.dispatch_rpc() ####
`int dispatch_rpc()`
#### KSR.xmlrpc.xmlrpc_reply() ####
`int xmlrpc_reply(int rcode, str "reason")`