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:3.2.x:core [2011/10/18 18:43] miconda [rewritehostporttrans] |
cookbooks:3.2.x:core [2011/12/07 13:21] 83.218.94.2 changes subst to substdef in the example |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Kamailio | + | ====== Kamailio |
This tutorial collects the functions and parameters exported by Kamailio core to configuration file. | This tutorial collects the functions and parameters exported by Kamailio core to configuration file. | ||
Line 182: | Line 182: | ||
<code c> | <code c> | ||
- | #!subst "/ | + | #!substdef |
</ | </ | ||
Line 826: | Line 826: | ||
==== mhomed ==== | ==== mhomed ==== | ||
- | Set the server to try to locate outbound interface on multihomed host. This parameter affects the selection of the outgoing socket for forwarding requests. By default is off (0) - it is rather time consuming. When decativated, the incoming socket will be used or the first one for a different protocol, disregarding the destination location. When activated, sip-router will select a socket that can reach the destination (to be able to connect to the remote address). (sip-router opens a UDP socket to the destination, | + | Set the server to try to locate outbound interface on multihomed host. This parameter affects the selection of the outgoing socket for forwarding requests. By default is off (0) - it is rather time consuming. When deactivated, the incoming socket will be used or the first one for a different protocol, disregarding the destination location. When activated, sip-router will select a socket that can reach the destination (to be able to connect to the remote address). (sip-router opens a UDP socket to the destination, |
Example of usage: | Example of usage: | ||
Line 856: | Line 856: | ||
==== phone2tel ==== | ==== phone2tel ==== | ||
- | By enabling this feature, SIP-Router internally treats SIP URIs with user=phone parameter as TEL URIs. If you do not want thi behavior, you have to turn it off. | + | By enabling this feature, SIP-Router internally treats SIP URIs with user=phone parameter as TEL URIs. If you do not want this behavior, you have to turn it off. |
Default value: 1 (enabled) | Default value: 1 (enabled) | ||
Line 1571: | Line 1571: | ||
sctp_max_burst = number | sctp_max_burst = number | ||
+ | |||
+ | |||
+ | ===== UDP Parameters ===== | ||
+ | |||
+ | ==== udp4_raw ==== | ||
+ | |||
+ | Enables raw socket support for sending UDP IPv4 datagrams (40-50% performance increase on linux multi-cpu). | ||
+ | |||
+ | Possible values: 0 - disabled (default), 1 - enabled, -1 auto. | ||
+ | |||
+ | In " | ||
+ | |||
+ | The parameter can be set at runtime as long as sr was started with enough privileges (core.udp4_raw). | ||
+ | |||
+ | < | ||
+ | udp4_raw = on | ||
+ | </ | ||
+ | |||
+ | ==== udp4_raw_mtu ==== | ||
+ | |||
+ | MTU value used for UDP IPv4 packets when udp4_raw is enabled. | ||
+ | |||
+ | The parameter can be set at runtime (core.udp4_raw_mtu). | ||
+ | |||
+ | ==== udp4_raw_ttl ==== | ||
+ | |||
+ | TTL value used for UDP IPv4 packets when udp4_raw is enabled. By default it is set to auto mode (-1), meaning that the same TTL will be used as for normal UDP sockets. | ||
+ | |||
+ | The parameter can be set at runtime (core.udp4_raw_ttl). | ||