cookbooks:5.0.x:core
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cookbooks:5.0.x:core [2017/07/03 11:45] – [advertised_address] miconda | cookbooks:5.0.x:core [2019/03/12 08:55] (current) – [Core Keywords] quote fix mslehto | ||
---|---|---|---|
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 372: | Line 372: | ||
===== Core Keywords ===== | ===== Core Keywords ===== | ||
- | Keywords specific to SIP messages which can be used mainly in ''' | + | Keywords specific to SIP messages which can be used mainly in '' |
==== af ==== | ==== af ==== | ||
Line 681: | Line 681: | ||
==== 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 790: | Line 791: | ||
Examples of usage: | Examples of usage: | ||
- | * debug=3: print all log messages. This is only usefull | + | * debug=3: print all log messages. This is only useful |
* debug=0: This will only log warning, errors and more critical messages. | * debug=0: This will only log warning, errors and more critical messages. | ||
* debug=-6: This will disable all log messages. | * debug=-6: This will disable all log messages. | ||
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 1539: | Line 1540: | ||
==== version_table ==== | ==== version_table ==== | ||
- | Set the name of the table holding the table version. | + | Set the name of the table holding the table version. |
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 2373: | Line 2374: | ||
adds a tcp port alias for the current connection (if tcp). | adds a tcp port alias for the current connection (if tcp). | ||
- | Usefull | + | Useful |
the same connection this request came from [it could help | the same connection this request came from [it could help | ||
for firewall or nat traversal]. | for firewall or nat traversal]. | ||
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: | ||
Line 2950: | Line 2951: | ||
The route is executed in when a SIP request is sent out. Only a limited number of commands are allowed (drop, if + all the checks, msg flag manipulations, | The route is executed in when a SIP request is sent out. Only a limited number of commands are allowed (drop, if + all the checks, msg flag manipulations, | ||
- | In this route the final destination of the message is available | + | In this route the final destination of the message is available |
This route is executed only when forwarding requests - it is not executed for replies, retransmissions, | This route is executed only when forwarding requests - it is not executed for replies, retransmissions, |
cookbooks/5.0.x/core.1499082305.txt.gz · Last modified: 2017/07/03 11:45 by miconda