Module: kamailio Branch: master Commit: 08265905623ae0ebeb809b3bb81cf9b6dbf4d8bb URL: https://github.com/kamailio/kamailio/commit/08265905623ae0ebeb809b3bb81cf9b6dbf4d8bb
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2025-12-12T11:29:57+01:00 tm: added evcb_local_ack_sent parameter - specify the name of the kemi function to be executed instead of event_route[tm:local-ack-sent] --- Modified: src/modules/tm/tm.c Modified: src/modules/tm/uac.c --- Diff: https://github.com/kamailio/kamailio/commit/08265905623ae0ebeb809b3bb81cf9b6dbf4d8bb.diff Patch: https://github.com/kamailio/kamailio/commit/08265905623ae0ebeb809b3bb81cf9b6dbf4d8bb.patch --- diff --git a/src/modules/tm/tm.c b/src/modules/tm/tm.c index 98023592f96..8e875eb54f0 100644 --- a/src/modules/tm/tm.c +++ b/src/modules/tm/tm.c @@ -259,6 +259,8 @@ static rpc_export_t tm_rpc[]; str tm_event_callback = STR_NULL; +str tm_evcb_local_ack_sent = STR_NULL; + static int fixup_t_check_status(void **param, int param_no); /* clang-format off */ @@ -528,6 +530,7 @@ static param_export_t params[] = { {"headers_mode", PARAM_INT, &tm_headers_mode}, {"xavp_contact", PARAM_STR, &ulattrs_xavp_name}, {"event_callback", PARAM_STR, &tm_event_callback}, + {"evcb_local_ack_sent", PARAM_STR, &tm_evcb_local_ack_sent}, {"relay_100", PARAM_INT, &default_tm_cfg.relay_100}, {"rich_redirect", PARAM_INT, &tm_rich_redirect}, {"event_callback_lres_sent", PARAM_STR, &_tm_event_callback_lres_sent}, diff --git a/src/modules/tm/uac.c b/src/modules/tm/uac.c index 2628bf248a0..8e4bb736266 100644 --- a/src/modules/tm/uac.c +++ b/src/modules/tm/uac.c @@ -73,6 +73,7 @@ int goto_on_local_req = -1; /* default disabled */ static char from_tag[FROM_TAG_LEN + 1]; extern str tm_event_callback; +extern str tm_evcb_local_ack_sent; /* * Initialize UAC */ @@ -961,7 +962,6 @@ int uac_evrt_local_ack_sent(sip_msg_t *rpl) int route_no; run_act_ctx_t ctx; int rtb; - str tm_evcb_local_ack_sent = str_init("ksr_tm_local_ack_sent"); str evname = str_init("tm:local-ack-sent"); sr_kemi_eng_t *keng = NULL; @@ -973,7 +973,7 @@ int uac_evrt_local_ack_sent(sip_msg_t *rpl) } } else { keng = sr_kemi_eng_get(); - if(keng != NULL) { + if(keng == NULL || tm_evcb_local_ack_sent.len <= 0) { LM_DBG("event route not defined and no kemi engine\n"); return -2; } _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
