This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cookbooks:5.0.x:core [2017/06/20 08:34] mslehto [use_dns_cache] s/niternal/internal/ |
cookbooks:5.0.x:core [2018/08/15 21:10] henningw [tcp_wq_max] |
||
---|---|---|---|
Line 238: | Line 238: | ||
* #!ifdef NAME - check if a keyword is defined | * #!ifdef NAME - check if a keyword is defined | ||
* #!ifndef - check if a keyword is not defined | * #!ifndef - check if a keyword is not defined | ||
- | * #!else - swtich | + | * #!else - switch |
* #!endif - end ifdef/ | * #!endif - end ifdef/ | ||
* #!trydef - add a define if not already defined | * #!trydef - add a define if not already defined | ||
Line 666: | Line 666: | ||
==== advertised_address ==== | ==== advertised_address ==== | ||
- | It can be an IP address or string and represents the address advertised in Via header | + | It can be an IP address or string and represents the address advertised in Via header. If empty or not set (default value) the socket |
- | other destination lumps (e.g RR header). If empty or not set (default value) the socket | + | |
address from where the request will be sent is used. | address from where the request will be sent is used. | ||
Line 679: | Line 678: | ||
advertised_address=" | advertised_address=" | ||
+ | Note: this option may be deprecated and removed in the near future, it is recommended to set **advertise** option for **listen** parameter. | ||
==== advertised_port ==== | ==== advertised_port ==== | ||
- | The port advertised in Via header and other destination lumps (e.g. RR). If empty or not set (default value) the port from where the message will be sent is used. Same warnings as for ' | + | The port advertised in Via header and other destination lumps. If empty or not set (default value) the port from where the message will be sent is used. Same warnings as for ' |
Example of usage: | Example of usage: | ||
Line 687: | Line 687: | ||
advertised_port=5080 | advertised_port=5080 | ||
+ | Note: this option may be deprecated and removed in the near future, it is recommended to set **advertise** option for **listen** parameter. | ||
==== alias ==== | ==== alias ==== | ||
Line 984: | Line 985: | ||
Prototype: **loadmodule " | Prototype: **loadmodule " | ||
- | If modulepath is only modulename or modulename.so, | + | If modulepath is only modulename or modulename.so, |
Example of usage: | Example of usage: | ||
Line 1738: | Line 1739: | ||
Can be ' | Can be ' | ||
- | HINT: even if you don't have a search list defined, setting this option to ' | + | HINT: even if you don't have a search list defined, setting this option to ' |
Example of usage: | Example of usage: | ||
Line 1836: | Line 1837: | ||
==== tcp_conn_wq_max ==== | ==== tcp_conn_wq_max ==== | ||
- | Maximum bytes queued for write allowed per connection. Attempting to queue more bytes would result in an error and in the connection being closed (too slow). If tcp_write_buf | + | Maximum bytes queued for write allowed per connection. Attempting to queue more bytes would result in an error and in the connection being closed (too slow). If tcp_buf_write |
tcp_conn_wq_max = bytes (default 32 K) | tcp_conn_wq_max = bytes (default 32 K) | ||
Line 1955: | Line 1956: | ||
==== tcp_wq_max ==== | ==== tcp_wq_max ==== | ||
- | Maximum bytes queued for write allowed globally. It has no effect if tcp_write_buf | + | Maximum bytes queued for write allowed globally. It has no effect if tcp_buf_write |
tcp_wq_max = bytes (default 10 Mb) | tcp_wq_max = bytes (default 10 Mb) | ||
Line 2716: | Line 2717: | ||
===== Custom Global Parameters ===== | ===== Custom Global Parameters ===== | ||
- | These are parameters that can be defined by the writer of kamailio.cfg in order to be used inside routing blocks. One of the important properties for custom global parameters is that their value can be changed at runtime via RPC commands, without restarting Kamailio. | + | These are parameters that can be defined by the writer of kamailio.cfg in order to be used inside routing blocks. One of the important properties for custom global parameters is that their value can be changed at runtime via RPC commands, without restarting Kamailio. See cfg_rpc module for RPC details. |
The definition of a custom global parameter must follow the pattern: | The definition of a custom global parameter must follow the pattern: |