Module: kamailio
Branch: master
Commit: e65c5784fee4952d1260016b1f1d94177f8f405d
URL:
https://github.com/kamailio/kamailio/commit/e65c5784fee4952d1260016b1f1d941…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-01-04T10:20:35+01:00
core: new parameter rpc_exec_delta to set rpc command delta interval execution
- value is seconds
- default is 0 (no delta interval execution)
---
Modified: src/core/cfg.lex
Modified: src/core/cfg.y
---
Diff:
https://github.com/kamailio/kamailio/commit/e65c5784fee4952d1260016b1f1d941…
Patch:
https://github.com/kamailio/kamailio/commit/e65c5784fee4952d1260016b1f1d941…
---
diff --git a/src/core/cfg.lex b/src/core/cfg.lex
index d4379da3fc..e0500769bb 100644
--- a/src/core/cfg.lex
+++ b/src/core/cfg.lex
@@ -500,6 +500,8 @@ LATENCY_LIMIT_DB latency_limit_db
LATENCY_LIMIT_ACTION latency_limit_action
LATENCY_LIMIT_CFG latency_limit_cfg
+RPC_EXEC_DELTA_CFG "rpc_exec_delta"
+
URI_HOST_EXTRA_CHARS "uri_host_extra_chars"
HDR_NAME_EXTRA_CHARS "hdr_name_extra_chars"
@@ -1041,6 +1043,7 @@ IMPORTFILE "import_file"
<INITIAL>{LATENCY_LIMIT_DB} { count(); yylval.strval=yytext; return
LATENCY_LIMIT_DB;}
<INITIAL>{LATENCY_LIMIT_ACTION} { count(); yylval.strval=yytext; return
LATENCY_LIMIT_ACTION;}
<INITIAL>{LATENCY_LIMIT_CFG} { count(); yylval.strval=yytext; return
LATENCY_LIMIT_CFG;}
+<INITIAL>{RPC_EXEC_DELTA_CFG} { count(); yylval.strval=yytext; return
RPC_EXEC_DELTA_CFG;}
<INITIAL>{CFG_DESCRIPTION} { count(); yylval.strval=yytext; return CFG_DESCRIPTION;
}
<INITIAL>{LOADMODULE} { count(); yylval.strval=yytext; return LOADMODULE; }
<INITIAL>{LOADMODULEX} { count(); yylval.strval=yytext; return LOADMODULEX; }
diff --git a/src/core/cfg.y b/src/core/cfg.y
index 230be193dd..43804b0706 100644
--- a/src/core/cfg.y
+++ b/src/core/cfg.y
@@ -529,6 +529,7 @@ extern char *default_routename;
%token LATENCY_LIMIT_DB
%token LATENCY_LIMIT_ACTION
%token LATENCY_LIMIT_CFG
+%token RPC_EXEC_DELTA_CFG
%token MSG_TIME
%token ONSEND_RT_REPLY
%token URI_HOST_EXTRA_CHARS
@@ -1967,6 +1968,8 @@ assign_stm:
| LATENCY_LIMIT_ACTION EQUAL error { yyerror("number expected"); }
| LATENCY_LIMIT_CFG EQUAL NUMBER { default_core_cfg.latency_limit_cfg=$3; }
| LATENCY_LIMIT_CFG EQUAL error { yyerror("number expected"); }
+ | RPC_EXEC_DELTA_CFG EQUAL NUMBER { ksr_rpc_exec_delta=$3; }
+ | RPC_EXEC_DELTA_CFG EQUAL error { yyerror("number expected"); }
| MSG_TIME EQUAL NUMBER { sr_msg_time=$3; }
| MSG_TIME EQUAL error { yyerror("number expected"); }
| ONSEND_RT_REPLY EQUAL NUMBER { onsend_route_reply=$3; }