The following sections list all exported KEMI functions. More information regarding a function can be found by clicking the KEMI prototype, which will take you to the original module's documentation.
Because the native kamailio.cfg
scripting language allows variadic functions,
but exports to KEMI are functions with fixed number of parameters, there can
be a group of KEMI functions to offer the capabilities of a single kamailio.cfg
function. In such case, the KEMI functions share a common naming prefix, usually
the name of the kamailio.cfg
function.
For example, the kamailio.cfg
function ds_is_from_list(...)
from dispatcher
module has the prototype:
int ds_is_from_list([groupid [, mode [, uri] ] ])
And the corresponding KEMI exports are:
int KSR.dispatcher.ds_is_from_lists();
int KSR.dispatcher.ds_is_from_list(int groupid);
int KSR.dispatcher.ds_is_from_list_mode(int groupid, int mode);
int KSR.dispatcher.ds_is_from_list_uri(int groupid, int mode, str "uri");
The functions exported by acc
module to KEMI are listed in the next sections.
Exported functions:
int KSR.acc.acc_db_request(str "comment", str "dbtable");
Equivalent of native kamailio.cfg function: acc_db_request("comment", "dbtable")
.
int KSR.acc.acc_log_request(str "comment");
Equivalent of native kamailio.cfg function: acc_log_request("comment")
.
int KSR.acc.acc_request(str "comment", str "dbtable");
Equivalent of native kamailio.cfg function: acc_request("comment", "dbtable")
.
Exported functions:
int KSR.acc_radius.request(str "comment");
Exported functions:
int KSR.alias_db.lookup(str "stable");
int KSR.alias_db.lookup_ex(str "stable", str "sflags");
Exported functions:
int KSR.app_jsdt.dofile(str "script");
int KSR.app_jsdt.dostring(str "script");
int KSR.app_jsdt.run(str "func");
int KSR.app_jsdt.run_p1(str "func", str "p1");
int KSR.app_jsdt.run_p2(str "func", str "p1", str "p2");
int KSR.app_jsdt.run_p3(str "func", str "p1", str "p2", str "p3");
int KSR.app_jsdt.runstring(str "script");
Exported functions:
int KSR.app_lua.dofile(str "script");
int KSR.app_lua.dostring(str "script");
int KSR.app_lua.run(str "func");
int KSR.app_lua.run_p1(str "func", str "p1");
int KSR.app_lua.run_p2(str "func", str "p1", str "p2");
int KSR.app_lua.run_p3(str "func", str "p1", str "p2", str "p3");
int KSR.app_lua.runstring(str "script");
Exported functions:
int KSR.app_python.exec(str "method");
int KSR.app_python.exec_p1(str "method", str "p1");
int KSR.app_python.execx(str "method");
Exported functions:
int KSR.app_python3.exec(str "method");
int KSR.app_python3.exec_p1(str "method", str "p1");
int KSR.app_python3.execx(str "method");
Exported functions:
int KSR.app_python3s.exec(str "method");
int KSR.app_python3s.exec_p1(str "method", str "p1");
int KSR.app_python3s.execx(str "method");
Exported functions:
int KSR.app_ruby.run(str "func");
int KSR.app_ruby.run_p1(str "func", str "p1");
int KSR.app_ruby.run_p2(str "func", str "p1", str "p2");
int KSR.app_ruby.run_p3(str "func", str "p1", str "p2", str "p3");
Exported functions:
xval KSR.async.get_data();
xval KSR.async.get_gname();
int KSR.async.ms_route(str "rn", int s);
int KSR.async.route(str "rn", int s);
int KSR.async.task_data(str "rn", str "sdata");
int KSR.async.task_group_data(str "rn", str "gn", str "sdata");
int KSR.async.task_group_route(str "rn", str "gn");
int KSR.async.task_route(str "rn");
Exported functions:
int KSR.auth.auth_algorithm(str "alg");
int KSR.auth.auth_challenge(str "realm", int flags);
int KSR.auth.auth_get_www_authenticate(str "realm", int flags, str "pvdst");
int KSR.auth.consume_credentials();
int KSR.auth.has_credentials(str "srealm");
int KSR.auth.proxy_challenge(str "realm", int flags);
int KSR.auth.pv_auth_check(str "srealm", str "spasswd", int vflags, int vchecks);
int KSR.auth.pv_proxy_authenticate(str "realm", str "passwd", int flags);
int KSR.auth.pv_www_authenticate(str "realm", str "passwd", int flags);
int KSR.auth.pv_www_authenticate_method(str "realm", str "passwd", int flags, str "method");
int KSR.auth.www_challenge(str "realm", int flags);
Exported functions:
int KSR.auth_db.auth_check(str "srealm", str "stable", int iflags);
int KSR.auth_db.is_subscriber(str "suri", str "stable", int iflags);
int KSR.auth_db.www_authenticate(str "realm", str "table");
int KSR.auth_db.www_authenticate_method(str "realm", str "table", str "method");
Exported functions:
int KSR.auth_ephemeral.autheph_authenticate(str "susername", str "spassword");
int KSR.auth_ephemeral.autheph_check(str "srealm");
int KSR.auth_ephemeral.autheph_proxy(str "srealm");
int KSR.auth_ephemeral.autheph_www(str "srealm");
int KSR.auth_ephemeral.autheph_www_method(str "srealm", str "smethod");
Exported functions:
int KSR.auth_radius.proxy_authorize(str "srealm");
int KSR.auth_radius.proxy_authorize_user(str "srealm", str "suser");
int KSR.auth_radius.www_authorize(str "srealm");
int KSR.auth_radius.www_authorize_user(str "srealm", str "suser");
Exported functions:
int KSR.auth_xkeys.auth_xkeys_add(str "shdr", str "skey", str "salg", str "sdata");
int KSR.auth_xkeys.auth_xkeys_check(str "shdr", str "skey", str "salg", str "sdata");
Exported functions:
int KSR.avpops.avp_check(str "param", str "check");
int KSR.avpops.avp_copy(str "name1", str "name2");
Exported functions:
int KSR.benchmark.bm_log_timer(str "tname");
int KSR.benchmark.bm_start_timer(str "tname");
Exported functions:
int KSR.blst.blst_add(int t);
int KSR.blst.blst_add_default();
int KSR.blst.blst_add_retry_after(int t_min, int t_max);
int KSR.blst.blst_clear_ignore(int mask);
int KSR.blst.blst_clear_ignore_all();
int KSR.blst.blst_del();
int KSR.blst.blst_is_blocklisted();
int KSR.blst.blst_rpl_clear_ignore(int mask);
int KSR.blst.blst_rpl_clear_ignore_all();
int KSR.blst.blst_rpl_set_ignore(int mask);
int KSR.blst.blst_rpl_set_ignore_all();
int KSR.blst.blst_set_ignore(int mask);
int KSR.blst.blst_set_ignore_all();
Exported functions:
int KSR.call_control.call_control();
Exported functions:
int KSR.call_obj.free(int num_obj);
int KSR.call_obj.get();
Exported functions:
int KSR.carrierroute.cr_next_domain(str "_carrier", str "_domain", str "_prefix_matching", str "_host", str "_reply_code", str "_dstavp");
int KSR.carrierroute.cr_nofallback_route(str "_carrier", str "_domain", str "_prefix_matching", str "_rewrite_user", str "_hsrc");
int KSR.carrierroute.cr_nofallback_route_info(str "_carrier", str "_domain", str "_prefix_matching", str "_rewrite_user", str "_hsrc", str "_dstvar");
int KSR.carrierroute.cr_route(str "_carrier", str "_domain", str "_prefix_matching", str "_rewrite_user", str "_hsrc");
int KSR.carrierroute.cr_route_info(str "_carrier", str "_domain", str "_prefix_matching", str "_rewrite_user", str "_hsrc", str "_dstvar");
int KSR.carrierroute.cr_user_carrier(str "user", str "domain", str "dstvar");
Exported functions:
int KSR.cdp.cdp_check_peer(str "peer");
int KSR.cdp.cdp_has_app(str "appid");
int KSR.cdp.cdp_has_app2(str "vendor", str "appid");
Exported functions:
int KSR.cfgutils.abort();
int KSR.cfgutils.check_route_exists(str "route");
int KSR.cfgutils.core_hash(str "s1", str "s2", int sz);
int KSR.cfgutils.lock(str "lkey");
int KSR.cfgutils.lock_key2(str "lkey", str "lkey2");
int KSR.cfgutils.pkg_status();
int KSR.cfgutils.pkg_summary();
int KSR.cfgutils.rand_event();
int KSR.cfgutils.rand_get_prob();
int KSR.cfgutils.rand_reset_prob();
int KSR.cfgutils.rand_set_prob(int percent_par);
int KSR.cfgutils.route_if_exists(str "route");
int KSR.cfgutils.shm_status();
int KSR.cfgutils.shm_summary();
int KSR.cfgutils.sleep(int v);
int KSR.cfgutils.trylock(str "lkey");
int KSR.cfgutils.trylock_key2(str "lkey", str "lkey2");
int KSR.cfgutils.unlock(str "lkey");
int KSR.cfgutils.unlock_key2(str "lkey", str "lkey2");
int KSR.cfgutils.usleep(int v);
Exported functions:
int KSR.cnxcc.get_channel_count(str "sclient", str "pvname");
int KSR.cnxcc.set_max_channels(str "sclient", int max_chan);
int KSR.cnxcc.set_max_credit(str "sclient", str "scredit", str "sconnect", str "scps", int initp, int finishp);
int KSR.cnxcc.set_max_time(str "sclient", int max_secs);
int KSR.cnxcc.terminate_all(str "sclient");
int KSR.cnxcc.update_max_time(str "sclient", int secs);
Exported functions:
int KSR.corex.append_branch();
int KSR.corex.append_branch_uri(str "uri");
int KSR.corex.append_branch_uri_q(str "uri", str "q");
xval KSR.corex.file_read(str "fname");
int KSR.corex.file_write(str "fname", str "fdata");
int KSR.corex.forward_uac();
int KSR.corex.forward_uac_uri(str "vuri");
int KSR.corex.has_ruri_user();
int KSR.corex.has_user_agent();
int KSR.corex.is_faked_msg();
int KSR.corex.is_socket_name(str "sockname");
int KSR.corex.isxflagset(int fval);
int KSR.corex.resetxflag(int fval);
int KSR.corex.send_data(str "uri", str "data");
int KSR.corex.sendx(str "uri", str "sock", str "data");
int KSR.corex.set_recv_socket(str "ssock");
int KSR.corex.set_recv_socket_name(str "ssock");
int KSR.corex.set_send_socket(str "ssock");
int KSR.corex.set_send_socket_name(str "ssock");
int KSR.corex.set_source_address(str "saddr");
int KSR.corex.setxflag(int fval);
int KSR.corex.via_add_srvid(int fval);
int KSR.corex.via_add_xavp_params(int fval);
int KSR.corex.via_reply_add_xavp_params(int fval);
int KSR.corex.via_use_xavp_fields(int fval);
Exported functions:
int KSR.counters.add(str "sname", int v);
int KSR.counters.inc(str "sname");
int KSR.counters.reset(str "sname");
Exported functions:
int KSR.crypto.aes_decrypt(str "ins", str "keys", str "dpv");
int KSR.crypto.aes_encrypt(str "ins", str "keys", str "dpv");
int KSR.crypto.hmac_sha256(str "ins", str "keys", str "dpv");
Exported functions:
int KSR.debugger.dbg_pv_dump();
int KSR.debugger.dbg_pv_dump_ex(int mask, int level);
Exported functions:
int KSR.dialog.dlg_bridge(str "sfrom", str "sto", str "soproxy");
int KSR.dialog.dlg_bye(str "side");
int KSR.dialog.dlg_db_load_callid(str "callid");
int KSR.dialog.dlg_db_load_extra();
int KSR.dialog.dlg_get(str "sc", str "sf", str "st");
xval KSR.dialog.dlg_get_var(str "sc", str "sf", str "st", str "key");
int KSR.dialog.dlg_isflagset(int val);
int KSR.dialog.dlg_manage();
int KSR.dialog.dlg_req_within4(str "side", str "method", str "content_type", str "content");
int KSR.dialog.dlg_reset_property(str "pval");
int KSR.dialog.dlg_resetflag(int val);
int KSR.dialog.dlg_set_property(str "pval");
int KSR.dialog.dlg_set_state(str "state");
int KSR.dialog.dlg_set_timeout(int to);
int KSR.dialog.dlg_set_timeout_id(int to, int he, int hi);
int KSR.dialog.dlg_set_var(str "sc", str "sf", str "st", str "key", str "val");
int KSR.dialog.dlg_setflag(int val);
int KSR.dialog.dlg_update_state();
int KSR.dialog.get_profile_size(str "sprofile", str "svalue", str "spv");
int KSR.dialog.get_profile_size_static(str "sprofile", str "spv");
int KSR.dialog.is_in_profile(str "sprofile", str "svalue");
int KSR.dialog.is_in_profile_static(str "sprofile");
int KSR.dialog.is_known_dlg();
int KSR.dialog.set_dlg_profile(str "sprofile", str "svalue");
int KSR.dialog.set_dlg_profile_static(str "sprofile");
int KSR.dialog.unset_dlg_profile(str "sprofile", str "svalue");
int KSR.dialog.unset_dlg_profile_static(str "sprofile");
xval KSR.dialog.var_get(str "name");
xval KSR.dialog.var_gete(str "name");
xval KSR.dialog.var_getw(str "name");
int KSR.dialog.var_is_null(str "name");
int KSR.dialog.var_rm(str "name");
int KSR.dialog.var_sets(str "name", str "val");
Exported functions:
int KSR.dialplan.dp_match(int dpid, str "src");
int KSR.dialplan.dp_replace(int dpid, str "src", str "dst");
int KSR.dialplan.dp_translate(int id);
int KSR.dialplan.dp_translate_vars(int id, str "input", str "output");
Exported functions:
int KSR.dispatcher.ds_is_active(int set);
int KSR.dispatcher.ds_is_active_uri(int set, str "uri");
int KSR.dispatcher.ds_is_from_list(int group);
int KSR.dispatcher.ds_is_from_list_mode(int vset, int vmode);
int KSR.dispatcher.ds_is_from_list_uri(int vset, int vmode, str "vuri");
int KSR.dispatcher.ds_is_from_lists();
int KSR.dispatcher.ds_list_exists(int set);
int KSR.dispatcher.ds_load_unset();
int KSR.dispatcher.ds_load_update();
int KSR.dispatcher.ds_mark_addr(str "vstate", int vgroup, str "vuri");
int KSR.dispatcher.ds_mark_dst();
int KSR.dispatcher.ds_mark_dst_state(str "sval");
int KSR.dispatcher.ds_next_domain();
int KSR.dispatcher.ds_next_dst();
int KSR.dispatcher.ds_reload();
int KSR.dispatcher.ds_select(int set, int alg);
int KSR.dispatcher.ds_select_domain(int set, int alg);
int KSR.dispatcher.ds_select_domain_limit(int set, int alg, int limit);
int KSR.dispatcher.ds_select_dst(int set, int alg);
int KSR.dispatcher.ds_select_dst_limit(int set, int alg, int limit);
int KSR.dispatcher.ds_select_limit(int set, int alg, int limit);
int KSR.dispatcher.ds_select_routes(str "srules", str "smode");
int KSR.dispatcher.ds_select_routes_limit(str "srules", str "smode", int rlimit);
int KSR.dispatcher.ds_set_domain();
int KSR.dispatcher.ds_set_dst();
Exported functions:
int KSR.diversion.add_diversion(str "reason");
int KSR.diversion.add_diversion_uri(str "reason", str "uri");
Exported functions:
int KSR.dlgs.dlgs_count(str "vfield", str "vop", str "vdata");
int KSR.dlgs.dlgs_init(str "src", str "dst", str "data");
int KSR.dlgs.dlgs_tags_add(str "vtags");
int KSR.dlgs.dlgs_tags_count(str "vtags");
int KSR.dlgs.dlgs_tags_rm(str "vtags");
int KSR.dlgs.dlgs_update();
Exported functions:
int KSR.dmq.bcast_message(str "peer_str", str "body_str", str "ct_str");
int KSR.dmq.handle_message();
int KSR.dmq.handle_message_rc(int returnval);
int KSR.dmq.is_from_node();
int KSR.dmq.process_message();
int KSR.dmq.process_message_rc(int returnval);
int KSR.dmq.send_message(str "peer_str", str "to_str", str "body_str", str "ct_str");
int KSR.dmq.t_replicate();
int KSR.dmq.t_replicate_mode(int mode);
Exported functions:
int KSR.domain.is_domain_local(str "sdomain");
int KSR.domain.is_from_local();
int KSR.domain.is_uri_host_local();
int KSR.domain.lookup_domain(str "_sdomain");
int KSR.domain.lookup_domain_prefix(str "_sdomain", str "_sprefix");
Exported functions:
int KSR.drouting.do_routing(int grp_id);
int KSR.drouting.do_routing_furi();
int KSR.drouting.goes_to_gw();
int KSR.drouting.goes_to_gw_type(int type);
int KSR.drouting.is_from_gw();
int KSR.drouting.is_from_gw_type(int type);
int KSR.drouting.is_from_gw_type_flags(int type, int flags);
int KSR.drouting.next_routing();
int KSR.drouting.use_next_gw();
Exported functions:
int KSR.enum.enum_i_query_suffix(str "vsuffix");
int KSR.enum.enum_pv_query(str "ve164");
int KSR.enum.enum_pv_query_suffix(str "ve164", str "vsuffix");
int KSR.enum.enum_pv_query_suffix_service(str "ve164", str "vsuffix", str "vservice");
int KSR.enum.enum_query();
int KSR.enum.enum_query_suffix(str "vsuffix");
int KSR.enum.enum_query_suffix_service(str "vsuffix", str "vservice");
int KSR.enum.i_enum_query();
int KSR.enum.i_enum_query_suffix_service(str "vsuffix", str "vservice");
int KSR.enum.is_from_user_enum();
int KSR.enum.is_from_user_enum_suffix(str "vsuffix");
int KSR.enum.is_from_user_enum_suffix_service(str "vsuffix", str "vservice");
Exported functions:
int KSR.evapi.async_multicast(str "sdata", str "stag");
int KSR.evapi.async_relay(str "sdata");
int KSR.evapi.async_unicast(str "sdata", str "stag");
int KSR.evapi.close();
int KSR.evapi.relay(str "sdata");
int KSR.evapi.relay_multicast(str "sdata", str "stag");
int KSR.evapi.relay_unicast(str "sdata", str "stag");
int KSR.evapi.set_tag(str "stag");
Exported functions:
int KSR.exec.exec_avp(str "cmd");
int KSR.exec.exec_cmd(str "cmd");
int KSR.exec.exec_dset(str "cmd");
int KSR.exec.exec_msg(str "cmd");
Exported functions:
int KSR.gcrypt.aes_decrypt(str "ins", str "keys", str "dpv");
int KSR.gcrypt.aes_encrypt(str "ins", str "keys", str "dpv");
Exported functions:
int KSR.geoip.match(str "tomatch", str "pvclass");
Exported functions:
int KSR.geoip2.distance(str "_ipaddr", str "_lat", str "_lon");
int KSR.geoip2.match(str "tomatch", str "pvclass");
Exported functions:
int KSR.group.is_user_in(str "uri", str "grp");
Functions exported by htable
module.
Exported functions:
int KSR.htable.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.
xval KSR.htable.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
.
xval KSR.htable.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.
xval KSR.htable.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 <null>
, suitable for use
when writing log messages.
int KSR.htable.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.
int KSR.htable.sht_is_null(str "htname", str "itname");
int KSR.htable.sht_iterator_end(str "iname");
int KSR.htable.sht_iterator_next(str "iname");
int KSR.htable.sht_iterator_rm(str "iname");
int KSR.htable.sht_iterator_setex(str "iname", int exval);
int KSR.htable.sht_iterator_seti(str "iname", int ival);
int KSR.htable.sht_iterator_sets(str "iname", str "sval");
int KSR.htable.sht_iterator_start(str "iname", str "hname");
int KSR.htable.sht_lock(str "htname", str "skey");
int KSR.htable.sht_match_name(str "sname", str "sop", str "sval");
int KSR.htable.sht_match_str_value(str "sname", str "sop", str "sval");
int KSR.htable.sht_reset(str "hname");
int KSR.htable.sht_rm(str "hname", str "iname");
int KSR.htable.sht_rm_name(str "sname", str "sop", str "sval");
int KSR.htable.sht_rm_name_re(str "htname", str "rexp");
int KSR.htable.sht_rm_value(str "sname", str "sop", str "sval");
int KSR.htable.sht_rm_value_re(str "htname", str "rexp");
int KSR.htable.sht_setex(str "htname", str "itname", int itval);
int KSR.htable.sht_seti(str "htname", str "itname", int itval);
int KSR.htable.sht_sets(str "htname", str "itname", str "itval");
int KSR.htable.sht_setxi(str "htname", str "itname", int itval, int exval);
int KSR.htable.sht_setxs(str "htname", str "itname", str "itval", int exval);
int KSR.htable.sht_unlock(str "htname", str "skey");
Exported functions:
int KSR.http_async_client.query(str "sdata", str "rn");
Exported functions:
int KSR.http_client.curl_connect(str "con", str "url", str "dpv");
int KSR.http_client.curl_connect_post(str "con", str "url", str "ctype", str "data", str "dpv");
int KSR.http_client.get_hdrs(str "url", str "body", str "hdrs", str "dpv");
int KSR.http_client.query(str "url", str "dpv");
int KSR.http_client.query_post(str "url", str "post", str "dpv");
int KSR.http_client.query_post_hdrs(str "url", str "post", str "hdrs", str "dpv");
int KSR.http_client.query_request(str "met", str "url", str "body", str "hdrs", str "dpv");
int KSR.http_client.query_request_v2pk(str "met", str "url", str "body", str "hdrs", str "dpv");
Exported functions:
int KSR.imc.imc_manager();
int KSR.imc.imc_room_active(str "room");
int KSR.imc.imc_room_member(str "room", str "member");
Exported functions:
int KSR.ims_charging.Ro_CCR(str "s_route_name", str "s_direction", int reservation_units, str "s_incoming_trunk_id", str "s_outgoing_trunk_id");
int KSR.ims_charging.Ro_CCR_Stop(str "p_direction", int p_code, str "p_reason");
int KSR.ims_charging.Ro_set_session_id_avp();
Exported functions:
int KSR.ims_dialog.get_profile_size(str "sprofile", str "svalue", str "spv");
int KSR.ims_dialog.is_known_dlg();
int KSR.ims_dialog.set_dlg_profile(str "sprofile", str "svalue");
Exported functions:
int KSR.ims_diameter_server.diameter_request(str "peer", int appid, int commandcode, str "message");
int KSR.ims_diameter_server.diameter_request_async(str "peer", int appid, int commandcode, str "message");
Exported functions:
int KSR.ims_qos.Rx_AAR(str "route", str "dir", str "c_id", int id_type, str "sessionId");
int KSR.ims_qos.Rx_AAR(str "route", str "dir", str "c_id", int id_type);
int KSR.ims_qos.Rx_AAR_Register(str "route", str "domain");
int KSR.ims_qos.Rx_AAR_Register(str "route", str "domain");
Exported functions:
int KSR.influxdbc.ic_long(str "name", int val);
int KSR.influxdbc.measure(str "name");
int KSR.influxdbc.measureend();
int KSR.influxdbc.push();
Exported functions:
int KSR.ipops.compare_ips(str "_sval1", str "_sval2");
int KSR.ipops.compare_pure_ips(str "_sval1", str "_sval2");
int KSR.ipops.detailed_ip_type(str "_sval", str "_dpv");
int KSR.ipops.detailed_ipv4_type(str "_sval", str "_dpv");
int KSR.ipops.detailed_ipv6_type(str "_sval", str "_dpv");
int KSR.ipops.dns_int_match_ip(str "vhn", str "vip");
int KSR.ipops.dns_query(str "naptrname", str "pvid");
int KSR.ipops.dns_set_local_ttl(int vttl);
int KSR.ipops.dns_sys_match_ip(str "vhn", str "vip");
int KSR.ipops.ip_is_in_subnet(str "_sval1", str "_sval2");
int KSR.ipops.ip_type(str "sval");
int KSR.ipops.is_in_subnet(str "_sval1", str "_sval2");
int KSR.ipops.is_ip(str "sval");
int KSR.ipops.is_ip4(str "sval");
int KSR.ipops.is_ip6(str "sval");
int KSR.ipops.is_ip6_reference(str "sval");
int KSR.ipops.is_ip_rfc1918(str "sval");
int KSR.ipops.is_pure_ip(str "sval");
int KSR.ipops.naptr_query(str "naptrname", str "pvid");
int KSR.ipops.ptr_query(str "ip", str "pvid");
int KSR.ipops.srv_query(str "naptrname", str "pvid");
Exported functions:
int KSR.jansson.get(str "spath", str "sdoc", str "spv");
Exported functions:
int KSR.jsonrpcs.dispatch();
int KSR.jsonrpcs.exec(str "scmd");
int KSR.jsonrpcs.execx(str "scmd");
xval KSR.jsonrpcs.response();
Exported functions:
int KSR.jwt.jwt_generate(str "key", str "alg", str "claims");
int KSR.jwt.jwt_generate_hdrs(str "key", str "alg", str "claims", str "headers");
int KSR.jwt.jwt_verify(str "keypath", str "alg", str "claims", str "jwtval");
int KSR.jwt.jwt_verify_key(str "key", str "alg", str "claims", str "jwtval");
Exported functions:
int KSR.kafka.send(str "s_topic", str "s_message");
int KSR.kafka.send_key(str "s_topic", str "s_message", str "s_key");
Exported functions:
int KSR.kazoo.kazoo_publish(str "exchange", str "routing_key", str "payload");
int KSR.kazoo.kazoo_subscribe(str "payload");
Exported functions:
int KSR.keepalive.add_destination(str "uri", str "owner");
int KSR.keepalive.del_destination(str "uri", str "owner");
int KSR.keepalive.is_alive(str "dest");
Exported functions:
int KSR.kex.resetdebug();
int KSR.kex.setdebug(int lval);
Functions exported by kemix
module and available in KEMI language under
KSR.kx
. They aim to provide a convenient way to retrieve string or integer
values for most commonly used variables or runtime environment attributes.
Exported functions:
xval KSR.kx.get_au();
xval KSR.kx.get_body();
Return the body of the SIP message (the value of $rb).
int KSR.kx.get_bodylen();
xval KSR.kx.get_callid();
int KSR.kx.get_conid();
Return the connection id for TCP, TLS and WebSocket, or -1 if no stream connection corresponds to current SIP message.
xval KSR.kx.get_cturi();
xval KSR.kx.get_def(str "dname");
int KSR.kx.get_defn(str "dname");
xval KSR.kx.get_duri();
Return the value of destination URI ($du).
xval KSR.kx.get_env(str "envname");
int KSR.kx.get_envn(str "envname");
xval KSR.kx.get_fhost();
Return From-URI domain ($fd).
xval KSR.kx.get_furi();
Return the From URI($fu).
xval KSR.kx.get_fuser();
Return the From-URI username ($fU).
xval KSR.kx.get_method();
Return the SIP method ($rm).
xval KSR.kx.get_msgbuf();
int KSR.kx.get_msglen();
int KSR.kx.get_msgtype();
xval KSR.kx.get_nhuri();
xval KSR.kx.get_ouri();
xval KSR.kx.get_proto();
int KSR.kx.get_protoid();
xval KSR.kx.get_rcv_sock_name();
xval KSR.kx.get_rcvaddr_sock();
xval KSR.kx.get_rcvadvip();
xval KSR.kx.get_rcvadvport();
xval KSR.kx.get_rcvip();
xval KSR.kx.get_rcvport();
xval KSR.kx.get_rhost();
Return the Request URI host (domain) part ($rd).
xval KSR.kx.get_ruri();
Return the Request URI ($ru).
xval KSR.kx.get_ruser();
Return the Request URI user part ($rU).
xval KSR.kx.get_send_sock();
xval KSR.kx.get_send_sock_name();
int KSR.kx.get_send_sock_port();
xval KSR.kx.get_srcaddr_sock();
xval KSR.kx.get_srcip();
xval KSR.kx.get_srcport();
xval KSR.kx.get_srcuri();
int KSR.kx.get_status();
xval KSR.kx.get_thost();
Return the To-URI host (domain) part ($td).
int KSR.kx.get_timestamp();
xval KSR.kx.get_turi();
Return the To URI ($tu).
xval KSR.kx.get_tuser();
Return the To-URI user part ($tU).
xval KSR.kx.get_ua();
xval KSR.kx.gete_au();
xval KSR.kx.gete_body();
xval KSR.kx.gete_cturi();
xval KSR.kx.gete_duri();
xval KSR.kx.gete_fhost();
xval KSR.kx.gete_fuser();
xval KSR.kx.gete_rhost();
xval KSR.kx.gete_ruser();
xval KSR.kx.gete_thost();
xval KSR.kx.gete_tuser();
xval KSR.kx.gete_ua();
xval KSR.kx.gets_status();
xval KSR.kx.getw_au();
xval KSR.kx.getw_body();
xval KSR.kx.getw_cturi();
xval KSR.kx.getw_duri();
xval KSR.kx.getw_fhost();
xval KSR.kx.getw_fuser();
xval KSR.kx.getw_rhost();
xval KSR.kx.getw_ruser();
xval KSR.kx.getw_thost();
xval KSR.kx.getw_tuser();
xval KSR.kx.getw_ua();
bool KSR.kx.ifdef(str "dname");
bool KSR.kx.ifndef(str "dname");
Exported functions:
int KSR.lcr.defunct_gw(int defunct_period);
int KSR.lcr.from_any_gw();
int KSR.lcr.from_any_gw_addr(str "addr_str", int transport);
int KSR.lcr.from_any_gw_addr_port(str "addr_str", int transport, int src_port);
int KSR.lcr.from_gw(int lcr_id);
int KSR.lcr.from_gw_addr(int lcr_id, str "addr_str", int transport);
int KSR.lcr.from_gw_addr_port(int lcr_id, str "addr_str", int transport, int src_port);
int KSR.lcr.inactivate_gw();
int KSR.lcr.load_gws(int lcr_id);
int KSR.lcr.load_gws_furi(int lcr_id, str "ruri_user", str "from_uri");
int KSR.lcr.load_gws_ruser(int lcr_id, str "ruri_user");
int KSR.lcr.next_gw();
int KSR.lcr.to_any_gw();
int KSR.lcr.to_any_gw_addr(str "addr_str", int transport);
int KSR.lcr.to_gw(int lcr_id);
int KSR.lcr.to_gw_addr(int lcr_id, str "addr_str", int transport);
Exported functions:
int KSR.ldap.result_next();
int KSR.ldap.search(str "ldapurl");
Exported functions:
int KSR.log_custom.log_udp(str "txt");
Exported functions:
int KSR.log_systemd.sd_journal_print(str "slev", str "stxt");
int KSR.log_systemd.sd_journal_send_xvap(str "xname");
Exported functions:
int KSR.lwsc.lwsc_notify(str "wsurl", str "data");
int KSR.lwsc.lwsc_notify_proto(str "wsurl", str "wsproto", str "data");
int KSR.lwsc.lwsc_request(str "wsurl", str "data");
int KSR.lwsc.lwsc_request_proto(str "wsurl", str "wsproto", str "data");
Exported functions:
int KSR.maxfwd.is_maxfwd_lt(int limit);
int KSR.maxfwd.process_maxfwd(int limit);
Exported functions:
int KSR.mediaproxy.end_media_session();
int KSR.mediaproxy.engage_media_proxy();
int KSR.mediaproxy.use_media_proxy();
Exported functions:
int KSR.microhttpd.mhttpd_reply(int rcode, str "sreason", str "sctype", str "sbody");
Exported functions:
int KSR.misc_radius.does_uri_exist();
int KSR.misc_radius.does_uri_exist_uval(str "suri");
int KSR.misc_radius.does_uri_user_exist();
int KSR.misc_radius.does_uri_user_exist_uval(str "user");
int KSR.misc_radius.is_user_in(str "user", str "group");
int KSR.misc_radius.load_callee_avps(str "user");
int KSR.misc_radius.load_caller_avps(str "user");
Exported functions:
int KSR.mqtt.publish(str "topic", str "payload", int qos);
int KSR.mqtt.subscribe(str "topic", int qos);
int KSR.mqtt.unsubscribe(str "topic");
Exported functions:
int KSR.mqueue.mq_add(str "mq", str "key", str "val");
int KSR.mqueue.mq_fetch(str "mq");
int KSR.mqueue.mq_pv_free(str "mq");
int KSR.mqueue.mq_size(str "mq");
xval KSR.mqueue.mqk_get(str "qname");
xval KSR.mqueue.mqk_gete(str "qname");
xval KSR.mqueue.mqk_getw(str "qname");
xval KSR.mqueue.mqv_get(str "qname");
xval KSR.mqueue.mqv_gete(str "qname");
xval KSR.mqueue.mqv_getw(str "qname");
Exported functions:
int KSR.msilo.mdump();
int KSR.msilo.mdump_uri(str "owner_s");
int KSR.msilo.mstore();
int KSR.msilo.mstore_addrs(str "owner", str "srcaddr", str "dstaddr");
int KSR.msilo.mstore_uri(str "owner");
Exported functions:
int KSR.msrp.cmap_lookup();
int KSR.msrp.cmap_save();
int KSR.msrp.forward(str "tpath", str "fpath");
int KSR.msrp.is_reply();
int KSR.msrp.is_request();
int KSR.msrp.relay();
int KSR.msrp.relay_flags(int rtflags);
int KSR.msrp.reply(str "rcode", str "rtext", str "rhdrs");
int KSR.msrp.reply_flags(int rtflags);
int KSR.msrp.set_dst(str "rtaddr", str "rfsock");
Exported functions:
int KSR.mtree.mt_match(str "tname", str "tomatch", int mval);
Exported functions:
int KSR.nat_traversal.client_nat_test(int tests);
int KSR.nat_traversal.fix_contact();
int KSR.nat_traversal.nat_keepalive();
Exported functions:
int KSR.nathelper.add_contact_alias();
int KSR.nathelper.add_contact_alias_addr(str "ip_str", str "port_str", str "proto_str");
int KSR.nathelper.add_rcv_param(int upos);
int KSR.nathelper.fix_nated_contact();
int KSR.nathelper.fix_nated_register();
int KSR.nathelper.fix_nated_sdp(int level);
int KSR.nathelper.fix_nated_sdp_ip(int level, str "ip");
int KSR.nathelper.handle_ruri_alias();
int KSR.nathelper.handle_ruri_alias_mode(int mode);
int KSR.nathelper.is_rfc1918(str "address");
int KSR.nathelper.nat_uac_test(int tests);
int KSR.nathelper.set_alias_to_pv(str "uri_avp");
int KSR.nathelper.set_contact_alias();
int KSR.nathelper.set_contact_alias_trim();
Exported functions:
int KSR.nats.publish(str "subject", str "payload");
int KSR.nats.publish_request(str "subject", str "payload", str "reply");
Exported functions:
int KSR.ndb_mongodb.exec(str "ssrv", str "sdname", str "scname", str "scmd", str "sres");
int KSR.ndb_mongodb.exec_simple(str "ssrv", str "sdname", str "scname", str "scmd", str "sres");
int KSR.ndb_mongodb.execx(str "ssrv", str "sdname", str "scname", str "scmd", str "sres");
int KSR.ndb_mongodb.find(str "ssrv", str "sdname", str "scname", str "scmd", str "sres");
int KSR.ndb_mongodb.find_one(str "ssrv", str "sdname", str "scname", str "scmd", str "sres");
int KSR.ndb_mongodb.free_reply(str "name");
int KSR.ndb_mongodb.next_reply(str "name");
Exported functions:
int KSR.ndb_redis.redis_cmd(str "srv", str "rcmd", str "sres");
int KSR.ndb_redis.redis_cmd_p1(str "srv", str "rcmd", str "p1", str "sres");
int KSR.ndb_redis.redis_cmd_p2(str "srv", str "rcmd", str "p1", str "p2", str "sres");
int KSR.ndb_redis.redis_cmd_p3(str "srv", str "rcmd", str "p1", str "p2", str "p3", str "sres");
int KSR.ndb_redis.redis_free(str "name");
Exported functions:
int KSR.nghttp2.nghttp2_reply(str "rcode", str "sbody");
int KSR.nghttp2.nghttp2_reply_header(str "sname", str "sbody");
Exported functions:
int KSR.path.add_path();
int KSR.path.add_path_received();
int KSR.path.add_path_received_user(str "_user");
int KSR.path.add_path_received_user_params(str "_user", str "_params");
int KSR.path.add_path_user(str "_user");
int KSR.path.add_path_user_params(str "_user", str "_params");
Exported functions:
int KSR.pdb.pdb_query(str "number", str "dstvar");
Exported functions:
int KSR.pdt.pd_translate(str "sd", int md);
int KSR.pdt.pprefix2domain(int m, int s);
Exported functions:
int KSR.permissions.allow_address(int addr_group, str "ips", int port);
int KSR.permissions.allow_address_group(str "_addr", int _port);
int KSR.permissions.allow_source_address(int addr_group);
int KSR.permissions.allow_source_address_group();
int KSR.permissions.allow_trusted();
Exported functions:
int KSR.phonenum.match(str "tomatch", str "pvclass");
int KSR.phonenum.match_cn(str "tomatch", str "cnc", str "pvclass");
Exported functions:
int KSR.pike.pike_check_ip(str "strip");
int KSR.pike.pike_check_req();
Exported functions:
int KSR.pipelimit.pl_active(str "pipeid");
int KSR.pipelimit.pl_check(str "pipeid");
int KSR.pipelimit.pl_check_limit(str "pipeid", str "alg", int limit);
int KSR.pipelimit.pl_drop();
int KSR.pipelimit.pl_drop_range(int rmin, int rmax);
int KSR.pipelimit.pl_drop_retry(int rafter);
Exported functions:
int KSR.posops.pos_append(int idx, str "val");
int KSR.posops.pos_body_end();
int KSR.posops.pos_body_start();
int KSR.posops.pos_find_str(int idx, str "val");
int KSR.posops.pos_findi_str(int idx, str "val");
int KSR.posops.pos_headers_end();
int KSR.posops.pos_headers_start();
int KSR.posops.pos_insert(int idx, str "val");
int KSR.posops.pos_rfind_str(int idx, str "val");
int KSR.posops.pos_rfindi_str(int idx, str "val");
int KSR.posops.pos_rm(int idx, int len);
int KSR.posops.pos_rsearch(int idx, str "sre");
int KSR.posops.pos_search(int idx, str "sre");
int KSR.posops.pos_set_char(int idx, str "val");
Exported functions:
int KSR.prefix_route.prefix_route(str "ruser");
int KSR.prefix_route.prefix_route_uri();
Exported functions:
int KSR.presence.handle_publish();
int KSR.presence.handle_publish_uri(str "sender_uri");
int KSR.presence.handle_subscribe();
int KSR.presence.handle_subscribe_uri(str "wuri");
int KSR.presence.pres_auth_status(str "watcher_uri", str "presentity_uri");
int KSR.presence.pres_has_subscribers(str "pres_uri", str "wevent");
int KSR.presence.pres_refresh_watchers(str "pres", str "event", int type);
int KSR.presence.pres_refresh_watchers_file(str "pres", str "event", int type, str "file_uri", str "filename");
int KSR.presence.pres_update_watchers(str "pres_uri", str "event");
Exported functions:
int KSR.presence_xml.pres_check_activities(str "pres_uri", str "activity");
int KSR.presence_xml.pres_check_basic(str "pres_uri", str "status");
Exported functions:
int KSR.pua.pua_set_publish();
int KSR.pua.pua_update_contact();
Exported functions:
int KSR.pua_json.publish(str "pjson");
Exported functions:
int KSR.pv_headers.pvh_append_header(str "hname", str "hvalue");
int KSR.pv_headers.pvh_apply_headers();
int KSR.pv_headers.pvh_check_header(str "hname");
int KSR.pv_headers.pvh_collect_headers();
int KSR.pv_headers.pvh_header_param_exists(str "hname", str "hvalue");
int KSR.pv_headers.pvh_modify_header(str "hname", str "hvalue", int indx);
int KSR.pv_headers.pvh_remove_header(str "hname", int indx);
int KSR.pv_headers.pvh_remove_header_param(str "hname", str "toRemove");
int KSR.pv_headers.pvh_reset_headers();
Exported functions:
int KSR.pvtpl.pvtpl_render(str "tplname", str "opv");
Exported functions:
xval KSR.pvx.avp_get(str "xname");
xval KSR.pvx.avp_gete(str "xname");
xval KSR.pvx.avp_getw(str "xname");
int KSR.pvx.avp_is_null(str "xname");
int KSR.pvx.avp_rm(str "xname");
int KSR.pvx.avp_seti(str "xname", int vn);
int KSR.pvx.avp_sets(str "xname", str "vs");
int KSR.pvx.evalx(str "dst", str "fmt");
int KSR.pvx.pv_var_to_xavp(str "varname", str "xname");
int KSR.pvx.pv_xavi_print();
int KSR.pvx.pv_xavp_print();
int KSR.pvx.pv_xavp_to_var(str "xname");
int KSR.pvx.pv_xavu_print();
int KSR.pvx.sbranch_append();
int KSR.pvx.sbranch_reset();
int KSR.pvx.sbranch_set_ruri();
xval KSR.pvx.shv_get(str "vname");
int KSR.pvx.shv_seti(str "vname", int ival);
int KSR.pvx.shv_sets(str "vname", str "sval");
xval KSR.pvx.shvinc_get(str "vname");
xval KSR.pvx.var_get(str "vname");
int KSR.pvx.var_seti(str "vname", int ival);
int KSR.pvx.var_sets(str "vname", str "sval");
xval KSR.pvx.xavi_child_get(str "rname", str "cname");
xval KSR.pvx.xavi_child_gete(str "rname", str "cname");
xval KSR.pvx.xavi_child_getw(str "rname", str "cname");
int KSR.pvx.xavi_child_is_null(str "rname", str "cname");
int KSR.pvx.xavi_child_rm(str "rname", str "cname");
int KSR.pvx.xavi_child_seti(str "rname", str "cname", int ival);
int KSR.pvx.xavi_child_sets(str "rname", str "cname", str "sval");
xval KSR.pvx.xavi_get(str "rname");
xval KSR.pvx.xavi_get_keys(str "rname", int indx);
xval KSR.pvx.xavi_getd(str "rname");
xval KSR.pvx.xavi_getd_p1(str "rname", int indx);
xval KSR.pvx.xavi_gete(str "rname");
xval KSR.pvx.xavi_getw(str "rname");
int KSR.pvx.xavi_is_null(str "rname");
int KSR.pvx.xavi_rm(str "rname");
int KSR.pvx.xavi_rm_all(str "rname");
int KSR.pvx.xavi_seti(str "rname", int ival);
int KSR.pvx.xavi_sets(str "rname", str "sval");
xval KSR.pvx.xavp_child_get(str "rname", str "cname");
xval KSR.pvx.xavp_child_gete(str "rname", str "cname");
xval KSR.pvx.xavp_child_getw(str "rname", str "cname");
int KSR.pvx.xavp_child_is_null(str "rname", str "cname");
int KSR.pvx.xavp_child_rm(str "rname", str "cname");
int KSR.pvx.xavp_child_seti(str "rname", str "cname", int ival);
int KSR.pvx.xavp_child_sets(str "rname", str "cname", str "sval");
int KSR.pvx.xavp_copy(str "src_name", int src_idx, str "dst_name");
int KSR.pvx.xavp_copy_dst(str "src_name", int src_idx, str "dst_name", int dst_idx);
xval KSR.pvx.xavp_get(str "rname");
xval KSR.pvx.xavp_get_keys(str "rname", int indx);
xval KSR.pvx.xavp_getd(str "rname");
xval KSR.pvx.xavp_getd_p1(str "rname", int indx);
xval KSR.pvx.xavp_gete(str "rname");
xval KSR.pvx.xavp_getw(str "rname");
int KSR.pvx.xavp_is_null(str "rname");
int KSR.pvx.xavp_lshift(str "xname", int idx);
int KSR.pvx.xavp_params_explode(str "sparams", str "sxname");
int KSR.pvx.xavp_params_implode(str "sxname", str "svname");
int KSR.pvx.xavp_params_implode_qval(str "sxname", str "svname");
int KSR.pvx.xavp_push_dst(str "xname");
int KSR.pvx.xavp_rm(str "rname");
int KSR.pvx.xavp_rm_all(str "rname");
int KSR.pvx.xavp_seti(str "rname", int ival);
int KSR.pvx.xavp_sets(str "rname", str "sval");
int KSR.pvx.xavp_slist_explode(str "slist", str "sep", str "mode", str "sxname");
int KSR.pvx.xavp_xparams_explode(str "sparams", str "sep", str "sxname");
xval KSR.pvx.xavu_child_get(str "rname", str "cname");
xval KSR.pvx.xavu_child_gete(str "rname", str "cname");
xval KSR.pvx.xavu_child_getw(str "rname", str "cname");
int KSR.pvx.xavu_child_is_null(str "rname", str "cname");
int KSR.pvx.xavu_child_rm(str "rname", str "cname");
int KSR.pvx.xavu_child_seti(str "rname", str "cname", int ival);
int KSR.pvx.xavu_child_sets(str "rname", str "cname", str "sval");
xval KSR.pvx.xavu_get(str "rname");
xval KSR.pvx.xavu_gete(str "rname");
xval KSR.pvx.xavu_getw(str "rname");
int KSR.pvx.xavu_is_null(str "rname");
int KSR.pvx.xavu_params_explode(str "sparams", str "sxname");
int KSR.pvx.xavu_params_implode(str "sxname", str "svname");
int KSR.pvx.xavu_rm(str "rname");
int KSR.pvx.xavu_seti(str "rname", int ival);
int KSR.pvx.xavu_sets(str "rname", str "sval");
Exported functions:
int KSR.rabbitmq.publish(str "exchange", str "routingkey", str "contenttype", str "messagebody");
int KSR.rabbitmq.publish_consume(str "exchange", str "routingkey", str "contenttype", str "messagebody", str "dpv");
Exported functions:
int KSR.ratelimit.rl_check();
int KSR.ratelimit.rl_check_pipe(int pipe);
Exported functions:
int KSR.regex.pcre_match(str "string", str "regex");
int KSR.regex.pcre_match_group(str "string", int num_pcre);
Exported functions:
int KSR.registrar.add_sock_hdr(str "hdr_name");
int KSR.registrar.lookup(str "table");
int KSR.registrar.lookup_branches(str "_dtable");
int KSR.registrar.lookup_to_dset(str "table", str "uri");
int KSR.registrar.lookup_uri(str "table", str "uri");
int KSR.registrar.lookup_xavp(str "utname", str "uri", str "rxname", str "cxname");
int KSR.registrar.reg_fetch_contacts(str "dtable", str "uri", str "profile");
int KSR.registrar.reg_free_contacts(str "profile");
int KSR.registrar.reg_from_user(str "utname", str "uri", int vmode);
int KSR.registrar.reg_send_reply();
int KSR.registrar.registered(str "table");
int KSR.registrar.registered_action(str "_dtable", str "_uri", int _f, int _aflags);
int KSR.registrar.registered_flags(str "_dtable", str "_uri", int _f);
int KSR.registrar.registered_uri(str "_dtable", str "_uri");
int KSR.registrar.save(str "table", int flags);
int KSR.registrar.save_uri(str "table", int flags, str "uri");
int KSR.registrar.set_q_override(str "new_q");
xval KSR.registrar.ulc_cget(str "rid", str "attr", int idx);
xval KSR.registrar.ulc_rget(str "rid", str "attr");
int KSR.registrar.unregister(str "_dtable", str "_uri");
int KSR.registrar.unregister_ruid(str "_dtable", str "_uri", str "_ruid");
Exported functions:
int KSR.rls.handle_notify();
int KSR.rls.handle_subscribe();
int KSR.rls.handle_subscribe_uri(str "wuri");
int KSR.rls.update_subs(str "uri", str "event");
Exported functions:
int KSR.rr.add_rr_param(str "sparam");
int KSR.rr.check_route_param(str "sre");
int KSR.rr.is_direction(str "dir");
int KSR.rr.loose_route();
int KSR.rr.loose_route_mode(int vmode);
int KSR.rr.loose_route_preloaded();
int KSR.rr.next_hop_route();
int KSR.rr.record_route();
int KSR.rr.record_route_advertised_address(str "addr");
int KSR.rr.record_route_params(str "sparams");
int KSR.rr.record_route_preset(str "addr1", str "addr2");
int KSR.rr.record_route_preset_one(str "addr1");
int KSR.rr.remove_record_route();
Exported functions:
int KSR.rtjson.init_routes(str "srdoc");
int KSR.rtjson.next_route();
int KSR.rtjson.push_routes();
int KSR.rtjson.update_branch();
This module enables media streams to be proxied via RTPEngine, exporting the functions to interact with it.
Exported functions:
int KSR.rtpengine.block_dtmf(str "flags");
int KSR.rtpengine.block_dtmf0();
int KSR.rtpengine.block_dtmf2(str "flags", str "viabranch");
int KSR.rtpengine.block_media(str "flags");
int KSR.rtpengine.block_media0();
int KSR.rtpengine.block_media2(str "flags", str "viabranch");
int KSR.rtpengine.play_dtmf(str "flags");
int KSR.rtpengine.play_media(str "flags");
int KSR.rtpengine.play_media2(str "flags", str "viabranch");
int KSR.rtpengine.rtpengine_answer(str "flags");
int KSR.rtpengine.rtpengine_answer0();
int KSR.rtpengine.rtpengine_answer2(str "flags", str "viabranch");
int KSR.rtpengine.rtpengine_delete(str "flags");
int KSR.rtpengine.rtpengine_delete0();
int KSR.rtpengine.rtpengine_delete2(str "flags", str "viabranch");
int KSR.rtpengine.rtpengine_manage(str "flags");
int KSR.rtpengine.rtpengine_manage0();
int KSR.rtpengine.rtpengine_manage2(str "flags", str "viabranch");
int KSR.rtpengine.rtpengine_offer(str "flags");
int KSR.rtpengine.rtpengine_offer0();
int KSR.rtpengine.rtpengine_offer2(str "flags", str "viabranch");
int KSR.rtpengine.rtpengine_query(str "flags");
int KSR.rtpengine.rtpengine_query0();
int KSR.rtpengine.rtpengine_query2(str "flags", str "viabranch");
int KSR.rtpengine.rtpengine_query_v(str "fmt", str "dpv");
int KSR.rtpengine.rtpengine_subscribe_answer(str "flags");
int KSR.rtpengine.rtpengine_subscribe_request(str "flags", str "sdp_spv", str "to_tag_spv", str "stream_xavp");
int KSR.rtpengine.rtpengine_unsubscribe(str "flags");
int KSR.rtpengine.set_rtpengine_set(int r1);
int KSR.rtpengine.set_rtpengine_set2(int r1, int r2);
This function is the sibling function to set_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() for more information.
int KSR.rtpengine.silence_media(str "flags");
int KSR.rtpengine.silence_media0();
int KSR.rtpengine.silence_media2(str "flags", str "viabranch");
int KSR.rtpengine.start_recording();
int KSR.rtpengine.stop_media(str "flags");
int KSR.rtpengine.stop_media0();
int KSR.rtpengine.stop_media2(str "flags", str "viabranch");
int KSR.rtpengine.stop_recording();
int KSR.rtpengine.unblock_dtmf(str "flags");
int KSR.rtpengine.unblock_dtmf0();
int KSR.rtpengine.unblock_dtmf2(str "flags", str "viabranch");
int KSR.rtpengine.unblock_media(str "flags");
int KSR.rtpengine.unblock_media0();
int KSR.rtpengine.unblock_media2(str "flags", str "viabranch");
int KSR.rtpengine.unsilence_media(str "flags");
int KSR.rtpengine.unsilence_media0();
int KSR.rtpengine.unsilence_media2(str "flags", str "viabranch");
Exported functions:
int KSR.rtpproxy.rtpproxy_answer(str "flags");
int KSR.rtpproxy.rtpproxy_answer0();
int KSR.rtpproxy.rtpproxy_answer_ip(str "flags", str "mip");
int KSR.rtpproxy.rtpproxy_destroy(str "flags");
int KSR.rtpproxy.rtpproxy_destroy0();
int KSR.rtpproxy.rtpproxy_manage(str "flags");
int KSR.rtpproxy.rtpproxy_manage0();
int KSR.rtpproxy.rtpproxy_manage_ip(str "flags", str "mip");
int KSR.rtpproxy.rtpproxy_offer(str "flags");
int KSR.rtpproxy.rtpproxy_offer0();
int KSR.rtpproxy.rtpproxy_offer_ip(str "flags", str "mip");
int KSR.rtpproxy.rtpproxy_stop_stream2uac();
int KSR.rtpproxy.rtpproxy_stop_stream2uas();
int KSR.rtpproxy.rtpproxy_stream2uac(str "pname", int count);
int KSR.rtpproxy.rtpproxy_stream2uas(str "pname", int count);
int KSR.rtpproxy.set_rtpproxy_set(int rset);
int KSR.rtpproxy.start_recording();
Exported functions:
int KSR.ruxc.http_delete(str "url", str "body", str "hdrs", str "dpv");
int KSR.ruxc.http_get(str "url", str "hdrs", str "dpv");
int KSR.ruxc.http_post(str "url", str "body", str "hdrs", str "dpv");
Exported functions:
int KSR.sanity.sanity_check(int mflags, int uflags);
int KSR.sanity.sanity_check_defaults();
int KSR.sanity.sanity_reply();
Exported functions:
int KSR.sca.call_info_update(int update_mask, str "uri_to", str "uri_from");
int KSR.sca.call_info_update_default();
int KSR.sca.call_info_update_mask(int umask);
int KSR.sca.call_info_update_turi(int umask, str "sto");
int KSR.sca.handle_subscribe();
Exported functions:
int KSR.sdpops.keep_codecs_by_id(str "codecs", str "media");
int KSR.sdpops.keep_codecs_by_name(str "codecs", str "media");
int KSR.sdpops.remove_codecs_by_id(str "codecs", str "media");
int KSR.sdpops.remove_codecs_by_name(str "codecs", str "media");
int KSR.sdpops.remove_line_by_prefix(str "prefix", str "media");
int KSR.sdpops.remove_media(str "media");
int KSR.sdpops.sdp_content();
int KSR.sdpops.sdp_content_flags(int flags);
int KSR.sdpops.sdp_get(str "avp");
int KSR.sdpops.sdp_get_line_startswith(str "aname", str "sline");
int KSR.sdpops.sdp_iterator_append(str "iname", str "text");
int KSR.sdpops.sdp_iterator_end(str "iname");
int KSR.sdpops.sdp_iterator_insert(str "iname", str "text");
int KSR.sdpops.sdp_iterator_next(str "iname");
int KSR.sdpops.sdp_iterator_rm(str "iname");
int KSR.sdpops.sdp_iterator_start(str "iname");
xval KSR.sdpops.sdp_iterator_value(str "iname");
int KSR.sdpops.sdp_print(int llevel);
int KSR.sdpops.sdp_transport(str "avp");
int KSR.sdpops.sdp_with_active_media(str "media");
int KSR.sdpops.sdp_with_codecs_by_id(str "codecs");
int KSR.sdpops.sdp_with_codecs_by_name(str "codecs");
int KSR.sdpops.sdp_with_ice();
int KSR.sdpops.sdp_with_media(str "media");
int KSR.sdpops.sdp_with_transport(str "transport");
int KSR.sdpops.sdp_with_transport_like(str "transport");
Exported functions:
int KSR.secfilter.secf_check_contact_hdr();
int KSR.secfilter.secf_check_country(str "val");
int KSR.secfilter.secf_check_dst(str "val");
int KSR.secfilter.secf_check_from_hdr();
int KSR.secfilter.secf_check_ip();
int KSR.secfilter.secf_check_sqli_all();
int KSR.secfilter.secf_check_to_hdr();
int KSR.secfilter.secf_check_ua();
int KSR.secfilter.secf_sqli_hdr(str "cval");
Exported functions:
int KSR.secsipid.result_str(str "attrname", str "avpname");
int KSR.secsipid.secsipid_add_identity(str "origtn", str "desttn", str "attest", str "origid", str "x5u", str "keypath");
int KSR.secsipid.secsipid_build_identity(str "origtn", str "desttn", str "attest", str "origid", str "x5u", str "keypath");
int KSR.secsipid.secsipid_build_identity_prvkey(str "origtn", str "desttn", str "attest", str "origid", str "x5u", str "keydata");
int KSR.secsipid.secsipid_check(str "sidentity", str "keypath");
int KSR.secsipid.secsipid_check_identity(str "keypath");
int KSR.secsipid.secsipid_check_identity_pubkey(str "keyval");
xval KSR.secsipid.secsipid_get_url(str "surl");
xval KSR.secsipid.secsipid_get_val();
int KSR.secsipid.secsipid_sign(str "sheaders", str "spayload", str "keypath");
int KSR.secsipid.secsipid_sign_prvkey(str "sheaders", str "spayload", str "keydata");
int KSR.secsipid.secsipid_verify(str "sidentity", str "keyval", str "opts");
Exported functions:
int KSR.sipcapture.float2int(str "_val", str "_coof");
int KSR.sipcapture.report_capture(str "_table");
int KSR.sipcapture.report_capture_cid(str "_table", str "_cid");
int KSR.sipcapture.report_capture_data(str "_table", str "_cid", str "_data");
int KSR.sipcapture.sip_capture();
int KSR.sipcapture.sip_capture_forward(str "puri");
int KSR.sipcapture.sip_capture_mode(str "_table", str "_cmdata");
int KSR.sipcapture.sip_capture_table(str "_table");
Exported functions:
xval KSR.sipdump.get_buf();
xval KSR.sipdump.get_dst_ip();
xval KSR.sipdump.get_src_ip();
xval KSR.sipdump.get_tag();
int KSR.sipdump.send(str "stag");
Exported functions:
int KSR.sipjson.sj_serialize(str "smode", str "pvn");
Exported functions:
int KSR.siprepo.sr_msg_async_pull(str "callid", str "msgid", str "gname", str "rname", int rmode);
int KSR.siprepo.sr_msg_check();
int KSR.siprepo.sr_msg_pull(str "callid", str "msgid", str "rname", int rmode);
int KSR.siprepo.sr_msg_push(str "msgid", int rmode);
int KSR.siprepo.sr_msg_rm(str "callid", str "msgid");
Exported functions:
bool KSR.sipt.destination(str "_destination", str "_hops", str "_nai");
bool KSR.sipt.destination_terminator(str "_destination", str "_hops", str "_nai", str "_terminator");
bool KSR.sipt.forwarding(str "_fwdnumber", str "_nai");
bool KSR.sipt.has_isup_body();
bool KSR.sipt.set_bci_1(str "_charge_indicator", str "_called_status", str "_called_category", str "_e2e_indicator");
bool KSR.sipt.set_calling(str "_origin", str "_nai", str "_pres", str "_screen");
Exported functions:
int KSR.siptrace.hlog(str "message");
int KSR.siptrace.hlog_cid(str "correlationid", str "message");
int KSR.siptrace.sip_trace();
int KSR.siptrace.sip_trace_dst(str "duri");
int KSR.siptrace.sip_trace_dst_cid(str "duri", str "cid");
int KSR.siptrace.sip_trace_dst_cid_type(str "duri", str "cid", str "sflag");
int KSR.siptrace.sip_trace_mode(str "smode");
int KSR.siptrace.sip_trace_msg(str "vmsg", str "saddr", str "taddr", str "duri", str "corrid");
Exported functions:
int KSR.siputils.add_uri_param(str "param");
int KSR.siputils.cmp_aor(str "uri1", str "uri2");
int KSR.siputils.cmp_hdr_name(str "shname1", str "shname2");
int KSR.siputils.cmp_uri(str "uri1", str "uri2");
int KSR.siputils.contact_param_check(str "nparam");
int KSR.siputils.contact_param_decode(str "nparam");
int KSR.siputils.contact_param_decode_ruri(str "nparam");
int KSR.siputils.contact_param_encode(str "nparam", str "saddr");
int KSR.siputils.contact_param_encode_alias(str "nparam", str "saddr");
int KSR.siputils.contact_param_rm(str "nparam");
int KSR.siputils.decode_contact();
int KSR.siputils.decode_contact_header();
int KSR.siputils.encode_contact(str "eprefix", str "eaddr");
int KSR.siputils.has_totag();
int KSR.siputils.hdr_date_check(int tdiff);
int KSR.siputils.is_alphanum(str "tval");
int KSR.siputils.is_alphanumex(str "tval", str "eset");
int KSR.siputils.is_first_hop();
int KSR.siputils.is_first_hop_mode(int mode);
int KSR.siputils.is_gruu();
int KSR.siputils.is_http();
int KSR.siputils.is_numeric(str "tval");
int KSR.siputils.is_reply();
int KSR.siputils.is_request();
int KSR.siputils.is_sip();
int KSR.siputils.is_tel_number(str "tval");
int KSR.siputils.is_uri(str "suri");
int KSR.siputils.is_user(str "suser");
int KSR.siputils.options_reply();
int KSR.siputils.sip_parse_headers();
int KSR.siputils.uri_param(str "sparam");
int KSR.siputils.uri_param_any(str "sparam");
int KSR.siputils.uri_param_rm(str "sparam");
int KSR.siputils.uri_param_value(str "sparam", str "svalue");
Exported functions:
int KSR.sl.send_reply(int code, str "reason");
int KSR.sl.send_reply_error();
int KSR.sl.send_reply_mode(int code, str "reason", int mode);
int KSR.sl.sl_forward_reply(str "code", str "reason");
int KSR.sl.sl_reply_error();
int KSR.sl.sl_send_reply(int code, str "reason");
Exported functions:
int KSR.slack.slack_send(str "slmsg");
Exported functions:
int KSR.speeddial.lookup(str "stable");
int KSR.speeddial.lookup_owner(str "stable", str "sowner");
Exported functions:
int KSR.sqlops.sql_is_null(str "sres", int i, int j);
int KSR.sqlops.sql_num_columns(str "sres");
int KSR.sqlops.sql_num_rows(str "sres");
int KSR.sqlops.sql_pvquery(str "scon", str "squery", str "sres");
int KSR.sqlops.sql_query(str "scon", str "squery", str "sres");
int KSR.sqlops.sql_query_async(str "scon", str "squery");
int KSR.sqlops.sql_result_free(str "sres");
xval KSR.sqlops.sql_result_get(str "resid", int row, int col);
xval KSR.sqlops.sql_result_gete(str "resid", int row, int col);
xval KSR.sqlops.sql_result_getz(str "resid", int row, int col);
int KSR.sqlops.sql_xquery(str "scon", str "squery", str "xavp");
Exported functions:
int KSR.ss7ops.isup_to_json(int proto);
Exported functions:
int KSR.sst.sst_check_min(int flag);
Exported functions:
int KSR.statistics.reset_stat(str "sname");
int KSR.statistics.update_stat(str "sname", int sval);
Exported functions:
int KSR.statsc.statsc_reset();
Exported functions:
int KSR.statsd.statsd_decr(str "key");
int KSR.statsd.statsd_gauge(str "key", str "val");
int KSR.statsd.statsd_histogram(str "key", str "val");
int KSR.statsd.statsd_incr(str "key");
int KSR.statsd.statsd_labels_decr(str "key", str "labels");
int KSR.statsd.statsd_labels_gauge(str "key", str "val", str "labels");
int KSR.statsd.statsd_labels_histogram(str "key", str "val", str "labels");
int KSR.statsd.statsd_labels_incr(str "key", str "labels");
int KSR.statsd.statsd_labels_set(str "key", str "val", str "labels");
int KSR.statsd.statsd_labels_stop(str "key", str "labels");
int KSR.statsd.statsd_set(str "key", str "val");
int KSR.statsd.statsd_start(str "key");
int KSR.statsd.statsd_stop(str "key");
Exported functions:
int KSR.stirshaken.stirshaken_add_identity(str "x5u", str "attest", str "origtn_val", str "desttn_val", str "origid");
int KSR.stirshaken.stirshaken_add_identity_with_key(str "x5u", str "attest", str "origtn_val", str "desttn_val", str "origid", str "keypath");
int KSR.stirshaken.stirshaken_check_identity();
int KSR.stirshaken.stirshaken_check_identity_with_cert(str "cert_path");
int KSR.stirshaken.stirshaken_check_identity_with_key(str "keypath");
Exported functions:
int KSR.sworker.active();
int KSR.sworker.task(str "gname");
Exported functions:
int KSR.tcpops.tcp_close_connection();
int KSR.tcpops.tcp_close_connection_id(int conid);
int KSR.tcpops.tcp_con_alive(str "saddr");
int KSR.tcpops.tcp_conid_alive(int i_conid);
int KSR.tcpops.tcp_conid_state(int i_conid);
int KSR.tcpops.tcp_enable_closed_event();
int KSR.tcpops.tcp_enable_closed_event_cid(int i_conid);
int KSR.tcpops.tcp_get_conid(str "saddr", str "pvs");
int KSR.tcpops.tcp_keepalive_disable();
int KSR.tcpops.tcp_keepalive_disable_cid(int i_con);
int KSR.tcpops.tcp_keepalive_enable(int i_idle, int i_cnt, int i_intvl);
int KSR.tcpops.tcp_keepalive_enable_cid(int i_con, int i_idle, int i_cnt, int i_intvl);
int KSR.tcpops.tcp_set_connection_lifetime(int i_time);
int KSR.tcpops.tcp_set_connection_lifetime_cid(int i_conid, int i_time);
int KSR.tcpops.tcp_set_otcpid(int vconid);
int KSR.tcpops.tcp_set_otcpid_flag(int vmode);
Exported functions:
int KSR.textops.append_body_part(str "txt", str "ct");
int KSR.textops.append_body_part_cd(str "txt", str "ct", str "cd");
int KSR.textops.append_body_part_hex(str "txt", str "ct");
int KSR.textops.append_body_part_hex_cd(str "htxt", str "ct", str "cd");
int KSR.textops.cmp_istr(str "s1", str "s2");
int KSR.textops.cmp_str(str "s1", str "s2");
int KSR.textops.ends_with(str "vstr", str "vsuffix");
int KSR.textops.filter_body(str "content_type");
int KSR.textops.get_body_part(str "ctype", str "pvname");
int KSR.textops.get_body_part_raw(str "ctype", str "pvname");
int KSR.textops.has_body();
int KSR.textops.has_body_type(str "ctype");
int KSR.textops.in_list(str "subject", str "list", str "vsep");
int KSR.textops.in_list_prefix(str "subject", str "list", str "vsep");
int KSR.textops.is_audio_on_hold();
int KSR.textops.is_present_hf(str "hname");
int KSR.textops.is_present_hf_re(str "ematch");
int KSR.textops.is_privacy(str "privacy");
int KSR.textops.regex_substring(str "input", str "regex", int mindex, int nmatch, str "dst");
int KSR.textops.remove_body_part(str "content_type");
int KSR.textops.remove_hf(str "hname");
int KSR.textops.remove_hf_exp(str "ematch", str "eskip");
int KSR.textops.remove_hf_idx(str "hname", int idx);
int KSR.textops.remove_hf_match(str "hname", str "op", str "expr");
int KSR.textops.remove_hf_re(str "ematch");
int KSR.textops.replace(str "sre", str "sval");
int KSR.textops.replace_all(str "sre", str "sval");
int KSR.textops.replace_body(str "sre", str "sval");
int KSR.textops.replace_body_all(str "sre", str "sval");
int KSR.textops.replace_body_atonce(str "sre", str "sval");
int KSR.textops.replace_body_str(str "mkey", str "rval", str "rmode");
int KSR.textops.replace_hdrs(str "sre", str "sval");
int KSR.textops.replace_hdrs_str(str "mkey", str "rval", str "rmode");
int KSR.textops.replace_str(str "mkey", str "rval", str "rmode");
int KSR.textops.search(str "sre");
int KSR.textops.search_append(str "ematch", str "val");
int KSR.textops.search_append_body(str "ematch", str "val");
int KSR.textops.search_body(str "sre");
int KSR.textops.search_hf(str "hname", str "sre", str "flags");
int KSR.textops.search_str(str "stext", str "sre");
int KSR.textops.set_body(str "nb", str "nc");
int KSR.textops.set_body_multipart(str "nbody", str "ctype", str "boundary");
int KSR.textops.set_body_multipart_boundary(str "boundary");
int KSR.textops.set_body_multipart_content(str "nbody", str "ctype");
int KSR.textops.set_body_multipart_mode();
int KSR.textops.set_reply_body(str "nb", str "nc");
int KSR.textops.starts_with(str "s1", str "s2");
int KSR.textops.str_all_in(str "txt", str "clist");
int KSR.textops.str_any_in(str "txt", str "clist");
int KSR.textops.str_find(str "txt", str "needle");
int KSR.textops.str_ifind(str "txt", str "needle");
int KSR.textops.subst(str "subst");
int KSR.textops.subst_body(str "subst");
int KSR.textops.subst_hf(str "hname", str "subst", str "flags");
int KSR.textops.subst_uri(str "subst");
int KSR.textops.subst_user(str "subst");
int KSR.textops.subst_v(str "itext", str "subex", str "opv");
Exported functions:
int KSR.textopsx.append_hf_value(str "hexp", str "val");
int KSR.textopsx.assign_hf_value(str "hexp", str "val");
int KSR.textopsx.assign_hf_value2(str "hexp", str "val");
int KSR.textopsx.bl_iterator_append(str "iname", str "text");
int KSR.textopsx.bl_iterator_end(str "iname");
int KSR.textopsx.bl_iterator_insert(str "iname", str "text");
int KSR.textopsx.bl_iterator_next(str "iname");
int KSR.textopsx.bl_iterator_rm(str "iname");
int KSR.textopsx.bl_iterator_start(str "iname");
xval KSR.textopsx.bl_iterator_value(str "iname");
Return the content of the body line for the current position of the cursor, including the EoL.
It is an alternative to getting the line content via $blitval(iname)
.
int KSR.textopsx.change_reply_status(int code, str "reason");
int KSR.textopsx.change_reply_status_code(int code);
int KSR.textopsx.exclude_hf_value(str "hexp", str "val");
int KSR.textopsx.fnmatch(str "val", str "match");
int KSR.textopsx.fnmatch_ex(str "val", str "match", str "flags");
int KSR.textopsx.hf_iterator_append(str "iname", str "htext");
int KSR.textopsx.hf_iterator_end(str "iname");
xval KSR.textopsx.hf_iterator_hbody(str "iname");
xval KSR.textopsx.hf_iterator_hname(str "iname");
int KSR.textopsx.hf_iterator_insert(str "iname", str "htext");
int KSR.textopsx.hf_iterator_next(str "iname");
int KSR.textopsx.hf_iterator_prev(str "iname");
int KSR.textopsx.hf_iterator_rm(str "iname");
int KSR.textopsx.hf_iterator_start(str "iname");
int KSR.textopsx.hf_value_exists(str "hexp", str "val");
int KSR.textopsx.include_hf_value(str "hexp", str "val");
int KSR.textopsx.insert_hf_value(str "hexp", str "val");
int KSR.textopsx.keep_hf();
int KSR.textopsx.keep_hf_re(str "sre");
int KSR.textopsx.msg_apply_changes();
int KSR.textopsx.msg_set_buffer(str "obuf");
int KSR.textopsx.remove_body();
int KSR.textopsx.remove_hf_value(str "hexp");
int KSR.textopsx.remove_hf_value2(str "hexp", str "val");
Exported functions:
int KSR.timer.timer_enable(str "timerid", int enable);
Exported functions:
xval KSR.tls.cget(str "aname");
Return values corresponding the pseudo-variables exported by TLS module, related
to TLS connection and certificates. The parameter has to be the name of the
pseudo-variable (without $
).
Example:
local vPeerSubjectCn = KSR.tls.cget("tls_peer_subject_cn");
xval KSR.tls.cget(str "aname");
Return values corresponding the pseudo-variables exported by TLS module, related
to TLS connection and certificates. The parameter has to be the name of the
pseudo-variable (without $
).
Example:
local vPeerSubjectCn = KSR.tls.cget("tls_peer_subject_cn");
int KSR.tls.is_peer_verified();
int KSR.tls.is_peer_verified();
int KSR.tls.set_connect_server_id(str "srvid");
int KSR.tls.set_connect_server_id(str "srvid");
Exported functions:
int KSR.tm.ki_t_load_contacts_mode(int mode);
int KSR.tm.t_any_replied();
int KSR.tm.t_any_timeout();
int KSR.tm.t_branch_replied();
int KSR.tm.t_branch_timeout();
int KSR.tm.t_check_status(str "sexp");
int KSR.tm.t_check_trans();
int KSR.tm.t_clean();
int KSR.tm.t_drop_replies(str "mode");
int KSR.tm.t_drop_replies_all();
int KSR.tm.t_exists();
int KSR.tm.t_get_branch_index();
int KSR.tm.t_get_status_code();
int KSR.tm.t_grep_status(int code);
int KSR.tm.t_is_canceled();
int KSR.tm.t_is_expired();
int KSR.tm.t_is_retr_async_reply();
int KSR.tm.t_is_set(str "target");
int KSR.tm.t_load_contacts();
int KSR.tm.t_lookup_cancel();
int KSR.tm.t_lookup_cancel_flags(int flags);
int KSR.tm.t_lookup_request();
int KSR.tm.t_newtran();
int KSR.tm.t_next_contact_flow();
int KSR.tm.t_next_contacts();
int KSR.tm.t_on_branch(str "rname");
int KSR.tm.t_on_branch_failure(str "rname");
int KSR.tm.t_on_failure(str "rname");
int KSR.tm.t_on_reply(str "rname");
int KSR.tm.t_relay();
int KSR.tm.t_relay_to_flags(int rflags);
int KSR.tm.t_relay_to_proto(str "sproto");
int KSR.tm.t_relay_to_proto_addr(str "sproto", str "host", int port);
int KSR.tm.t_relay_to_proxy(str "sproxy");
int KSR.tm.t_relay_to_proxy_flags(str "sproxy", int rflags);
int KSR.tm.t_release();
int KSR.tm.t_replicate(str "suri");
int KSR.tm.t_reply(int code, str "reason");
int KSR.tm.t_reply_error();
int KSR.tm.t_reset_fr();
int KSR.tm.t_reset_max_lifetime();
int KSR.tm.t_reset_retr();
int KSR.tm.t_retransmit_reply();
int KSR.tm.t_save_lumps();
int KSR.tm.t_send_reply(int code, str "reason");
int KSR.tm.t_set_auto_inv_100(int state);
int KSR.tm.t_set_disable_6xx(int state);
int KSR.tm.t_set_disable_failover(int state);
int KSR.tm.t_set_disable_internal_reply(int state);
int KSR.tm.t_set_fr(int fr_inv, int fr);
int KSR.tm.t_set_fr_inv(int fr_inv);
int KSR.tm.t_set_max_lifetime(int t1, int t2);
int KSR.tm.t_set_no_e2e_cancel_reason(int state);
int KSR.tm.t_set_retr(int t1, int t2);
int KSR.tm.t_uac_send(str "method", str "ruri", str "nexthop", str "ssock", str "hdrs", str "body");
int KSR.tm.t_use_uac_headers();
Exported functions:
int KSR.tmrec.is_leap_year(int y);
int KSR.tmrec.is_leap_year_now();
int KSR.tmrec.match(str "rv");
int KSR.tmrec.match_timestamp(str "rv", int ti);
int KSR.tmrec.time_period_match(str "period");
int KSR.tmrec.time_period_match_timestamp(str "period", int ti);
Exported functions:
int KSR.tmx.t_cancel_branches(str "mode");
int KSR.tmx.t_cancel_callid(str "callid_s", str "cseq_s", int fl);
int KSR.tmx.t_cancel_callid_reason(str "callid_s", str "cseq_s", int fl, int rcode);
int KSR.tmx.t_continue(int tindex, int tlabel, str "cbname");
int KSR.tmx.t_drop();
int KSR.tmx.t_drop_rcode(int rcode);
int KSR.tmx.t_flush_flags();
int KSR.tmx.t_flush_xflags();
int KSR.tmx.t_is_branch_route();
int KSR.tmx.t_is_failure_route();
int KSR.tmx.t_is_reply_route();
int KSR.tmx.t_is_request_route();
int KSR.tmx.t_precheck_trans();
int KSR.tmx.t_reply_callid(str "callid_s", str "cseq_s", int code, str "status_s");
int KSR.tmx.t_reuse_branch();
int KSR.tmx.t_suspend();
Exported functions:
int KSR.topos.tps_set_context(str "ctx");
Exported functions:
int KSR.tsilo.ts_append(str "_table", str "_ruri");
int KSR.tsilo.ts_append_by_contact(str "_table", str "_ruri");
int KSR.tsilo.ts_append_by_contact_uri(str "_table", str "_ruri", str "_contact");
int KSR.tsilo.ts_append_to(int tindex, int tlabel, str "_table");
int KSR.tsilo.ts_append_to_uri(int tindex, int tlabel, str "_table", str "_uri");
int KSR.tsilo.ts_store();
int KSR.tsilo.ts_store_uri(str "puri");
Exported functions:
int KSR.uac.uac_auth();
int KSR.uac.uac_auth_mode(int mode);
int KSR.uac.uac_reg_disable(str "attr", str "val");
int KSR.uac.uac_reg_enable(str "attr", str "val");
int KSR.uac.uac_reg_lookup(str "userid", str "sdst");
int KSR.uac.uac_reg_lookup_uri(str "suri", str "sdst");
int KSR.uac.uac_reg_refresh(str "l_uuid");
int KSR.uac.uac_reg_request_to(str "userid", int imode);
int KSR.uac.uac_reg_status(str "sruuid");
int KSR.uac.uac_replace_from(str "pdsp", str "puri");
int KSR.uac.uac_replace_from_uri(str "puri");
int KSR.uac.uac_replace_to(str "pdsp", str "puri");
int KSR.uac.uac_replace_to_uri(str "puri");
int KSR.uac.uac_req_send();
int KSR.uac.uac_restore_from();
int KSR.uac.uac_restore_to();
Exported functions:
int KSR.uac_redirect.get_redirects(int max_c, int max_b);
int KSR.uac_redirect.get_redirects_acc(int max_c, int max_b, str "reason");
int KSR.uac_redirect.get_redirects_all();
Exported functions:
int KSR.uri_db.check_from();
int KSR.uri_db.check_to();
int KSR.uri_db.check_uri(str "suri");
int KSR.uri_db.check_uri_realm(str "suri", str "susername", str "srealm");
int KSR.uri_db.does_uri_exist();
Exported functions:
int KSR.userblocklist.check_allowlist(str "stable");
int KSR.userblocklist.check_blocklist(str "stable");
int KSR.userblocklist.check_global_blocklist();
int KSR.userblocklist.check_user_allowlist(str "suser", str "sdomain");
int KSR.userblocklist.check_user_allowlist_number(str "suser", str "sdomain", str "snumber");
int KSR.userblocklist.check_user_allowlist_table(str "suser", str "sdomain", str "snumber", str "stable");
int KSR.userblocklist.check_user_blocklist(str "suser", str "sdomain");
int KSR.userblocklist.check_user_blocklist_number(str "suser", str "sdomain", str "snumber");
int KSR.userblocklist.check_user_blocklist_table(str "suser", str "sdomain", str "snumber", str "stable");
Exported functions:
int KSR.utils.xcap_auth_status(str "watcher_uri", str "presentity_uri");
Exported functions:
xval KSR.uuid.get();
xval KSR.uuid.rget();
xval KSR.uuid.tget();
Exported functions:
int KSR.websocket.close();
int KSR.websocket.close_conid(int status, str "reason", int con);
int KSR.websocket.close_reason(int status, str "reason");
int KSR.websocket.handle_handshake();
Exported functions:
int KSR.xcap_server.xcaps_del(str "uri", str "path");
int KSR.xcap_server.xcaps_get(str "uri", str "path");
int KSR.xcap_server.xcaps_put(str "uri", str "path", str "pbody");
Exported functions:
xval KSR.xhttp.get_hu();
int KSR.xhttp.xhttp_reply(int code, str "reason", str "ctype", str "body");
Exported functions:
int KSR.xhttp_pi.dispatch();
Exported functions:
int KSR.xhttp_prom.check_uri();
int KSR.xhttp_prom.counter_inc_l0(str "s_name", int number);
int KSR.xhttp_prom.counter_inc_l1(str "s_name", int number, str "l1");
int KSR.xhttp_prom.counter_inc_l2(str "s_name", int number, str "l1", str "l2");
int KSR.xhttp_prom.counter_inc_l3(str "s_name", int number, str "l1", str "l2", str "l3");
int KSR.xhttp_prom.counter_reset_l0(str "s_name");
int KSR.xhttp_prom.counter_reset_l1(str "s_name", str "l1");
int KSR.xhttp_prom.counter_reset_l2(str "s_name", str "l1", str "l2");
int KSR.xhttp_prom.counter_reset_l3(str "s_name", str "l1", str "l2", str "l3");
int KSR.xhttp_prom.dispatch();
int KSR.xhttp_prom.gauge_reset_l0(str "s_name");
int KSR.xhttp_prom.gauge_reset_l1(str "s_name", str "l1");
int KSR.xhttp_prom.gauge_reset_l2(str "s_name", str "l1", str "l2");
int KSR.xhttp_prom.gauge_reset_l3(str "s_name", str "l1", str "l2", str "l3");
int KSR.xhttp_prom.gauge_set_l0(str "s_name", str "s_number");
int KSR.xhttp_prom.gauge_set_l1(str "s_name", str "s_number", str "l1");
int KSR.xhttp_prom.gauge_set_l2(str "s_name", str "s_number", str "l1", str "l2");
int KSR.xhttp_prom.gauge_set_l3(str "s_name", str "s_number", str "l1", str "l2", str "l3");
int KSR.xhttp_prom.histogram_observe_l0(str "s_name", str "s_number");
int KSR.xhttp_prom.histogram_observe_l1(str "s_name", str "s_number", str "l1");
int KSR.xhttp_prom.histogram_observe_l2(str "s_name", str "s_number", str "l1", str "l2");
int KSR.xhttp_prom.histogram_observe_l3(str "s_name", str "s_number", str "l1", str "l2", str "l3");
Exported functions:
int KSR.xhttp_rpc.dispatch();
Exported functions:
int KSR.xlog.xalert(str "lmsg");
int KSR.xlog.xcrit(str "lmsg");
int KSR.xlog.xdbg(str "lmsg");
int KSR.xlog.xerr(str "lmsg");
int KSR.xlog.xinfo(str "lmsg");
int KSR.xlog.xlog(str "slevel", str "lmsg");
int KSR.xlog.xlog_facility(str "lfacility", str "slevel", str "lmsg");
int KSR.xlog.xnotice(str "lmsg");
int KSR.xlog.xwarn(str "lmsg");
Exported functions:
int KSR.xmlrpc.dispatch_rpc();
int KSR.xmlrpc.xmlrpc_reply(int rcode, str "reason");