Module: kamailio
Branch: master
Commit: f824eca0b56b7ad2a32b7c2269b064a637588f1d
URL:
https://github.com/kamailio/kamailio/commit/f824eca0b56b7ad2a32b7c2269b064a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2017-04-10T13:09:45+02:00
Merge pull request #1064 from kamailio/ctl-buffer-size-param
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/f824eca0b56b7ad2a32b7c2269b064a…
Patch:
https://github.com/kamailio/kamailio/commit/f824eca0b56b7ad2a32b7c2269b064a…
---
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>