[sr-dev] git:master:0a9030a7: ctl : add rpc buffer_size param
Luis Azedo
luis at 2600hz.com
Mon Apr 10 13:09:50 CEST 2017
Module: kamailio
Branch: master
Commit: 0a9030a7a5a3a288c1080feada1b4b5af41e9518
URL: https://github.com/kamailio/kamailio/commit/0a9030a7a5a3a288c1080feada1b4b5af41e9518
Author: lazedo <luis.azedo at factorlusitano.com>
Committer: Luis Azedo <luis at 2600hz.com>
Date: 2017-04-08T12:17:01+01:00
ctl : add rpc buffer_size param
---
Modified: src/modules/ctl/ctl.c
Modified: src/modules/ctl/doc/ctl_params.xml
---
Diff: https://github.com/kamailio/kamailio/commit/0a9030a7a5a3a288c1080feada1b4b5af41e9518.diff
Patch: https://github.com/kamailio/kamailio/commit/0a9030a7a5a3a288c1080feada1b4b5af41e9518.patch
---
diff --git a/src/modules/ctl/ctl.c b/src/modules/ctl/ctl.c
index f15c721..f626a82 100644
--- a/src/modules/ctl/ctl.c
+++ b/src/modules/ctl/ctl.c
@@ -60,6 +60,7 @@ static int usock_gid=-1;
extern int autoconvert;
extern int binrpc_max_body_size;
extern int binrpc_struct_max_body_size;
+extern int binrpc_buffer_size;
static int add_binrpc_socket(modparam_t type, void * val);
#ifdef USE_FIFO
@@ -96,7 +97,8 @@ static param_export_t params[]={
{"autoconversion", PARAM_INT, &autoconvert },
{"binrpc_max_body_size", PARAM_INT, &binrpc_max_body_size },
{"binrpc_struct_max_body_size", PARAM_INT, &binrpc_struct_max_body_size },
- {0,0,0}
+ {"binrpc_buffer_size", PARAM_INT, &binrpc_buffer_size },
+ {0,0,0}
}; /* no params */
struct module_exports exports= {
diff --git a/src/modules/ctl/doc/ctl_params.xml b/src/modules/ctl/doc/ctl_params.xml
index 901e56f..733636a 100644
--- a/src/modules/ctl/doc/ctl_params.xml
+++ b/src/modules/ctl/doc/ctl_params.xml
@@ -89,6 +89,25 @@ modparam("ctl", "binrpc", "udp:*:3012") # udp any , port 3012
</example>
</section>
+ <section id="binrpc_buffer_size">
+ <title><varname>binrpc_buffer_size</varname> (integer or string)</title>
+ <para>
+ the size of the internal buffer.
+ </para>
+ <para>
+ Default: 1024.
+ </para>
+ <example>
+ <title>Set <varname>binrpc_buffer_size</varname> parameter</title>
+ <programlisting>
+ ...
+ modparam("ctl", "binrpc_buffer_size", 4096)
+ ...
+ </programlisting>
+ </example>
+ </section>
+
+
<section id="mode">
<title><varname>mode</varname> (integer)</title>
<para>
More information about the sr-dev
mailing list