User Tools

Site Tools


cookbooks:devel:core

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cookbooks:devel:core [2021/03/15 12:43]
miconda [workdir]
cookbooks:devel:core [2021/09/10 10:00]
henningw
Line 1: Line 1:
 ====== Core Cookbook ====== ====== Core Cookbook ======
  
-Version: Kamailio SIP Server v5.5.x (devel)+Version: Kamailio SIP Server v5.6.x (devel) 
 ===== Overview ===== ===== Overview =====
  
 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.
  
-**Note:** The parameters on this page are **NOT** in alphabetical order.+**Note:** The parameters on this page are **NOT** in alphabetical order. Test
  
 ===== Structure ===== ===== Structure =====
Line 1929: Line 1930:
    version_table="version44"    version_table="version44"
 </code> </code>
-==== wait_child1_mode ====+ 
 +==== wait_worker1_mode ====
  
 Enable waiting for child SIP worker one to complete initialization, then create the other child worker processes. Enable waiting for child SIP worker one to complete initialization, then create the other child worker processes.
Line 1938: Line 1940:
  
 <code c> <code c>
-wait_child1_mode = 1+wait_worker1_mode = 1
 </code> </code>
  
-==== wait_child1_time ====+==== wait_worker1_time ====
  
 How long to wait for child worker one to complete the initialization. In micro-seconds. How long to wait for child worker one to complete the initialization. In micro-seconds.
Line 1950: Line 1952:
  
 <code c> <code c>
-wait_child1_time = 1000000+wait_worker1_time = 1000000
 </code> </code>
  
-==== wait_child1_usleep ====+==== wait_worker1_usleep ====
  
 How long to wait for child worker one to complete the initialization. In micro-seconds. How long to wait for child worker one to complete the initialization. In micro-seconds.
Line 1962: Line 1964:
  
 <code c> <code c>
-wait_child1_usleep = 50000+wait_worker1_usleep = 50000
 </code> </code>
  
Line 2012: Line 2014:
 ===== DNS Parameters ===== ===== DNS Parameters =====
  
-Note: See also file doc/dns.txt for details about Kamailio's DNS client.+Note: See also file doc/tutorials/dns.txt for details about Kamailio's DNS client.
  
 Kamailio has an internal DNS resolver with caching capabilities. If this caching resolver is activated (default setting) then the system's stub resolver won't be used. Thus, also local name resolution configuration like /etc/hosts entries will not be used. If the DNS cache is deactivated (use_dns_cache=no), then system's resolver will be used. The DNS failover functionality in the tm module references directly records in the DNS cache (which saves a lot of memory) and hence DNS based failover only works if the internal DNS cache is enabled. Kamailio has an internal DNS resolver with caching capabilities. If this caching resolver is activated (default setting) then the system's stub resolver won't be used. Thus, also local name resolution configuration like /etc/hosts entries will not be used. If the DNS cache is deactivated (use_dns_cache=no), then system's resolver will be used. The DNS failover functionality in the tm module references directly records in the DNS cache (which saves a lot of memory) and hence DNS based failover only works if the internal DNS cache is enabled.
Line 2155: Line 2157:
 **Alias name: dns_srv_loadbalancing** **Alias name: dns_srv_loadbalancing**
  
-Enable dns srv weight based load balancing (see doc/dns.txt)+Enable dns srv weight based load balancing (see doc/tutorials/dns.txt)
  
   dns_srv_lb = yes | no (default no)   dns_srv_lb = yes | no (default no)
Line 2171: Line 2173:
  
 ==== dns_try_naptr ==== ==== dns_try_naptr ====
-Enable NAPTR support according to RFC 3263 (see doc/dns.txt for more info)+Enable NAPTR support according to RFC 3263 (see doc/tutorials/dns.txt for more info)
          
   dns_try_naptr = yes | no (default no)   dns_try_naptr = yes | no (default no)
Line 2182: Line 2184:
 dns_tls_pref=10 and dns_sctp_pref=20. To use the remote site preferences set all dns_*_pref to the same positive value (e.g. dns_udp_pref=1, dns_tls_pref=10 and dns_sctp_pref=20. To use the remote site preferences set all dns_*_pref to the same positive value (e.g. dns_udp_pref=1,
 dns_tcp_pref=1, dns_tls_pref=1, dns_sctp_pref=1). To completely ignore NAPTR records for a specific protocol, set the corresponding protocol  dns_tcp_pref=1, dns_tls_pref=1, dns_sctp_pref=1). To completely ignore NAPTR records for a specific protocol, set the corresponding protocol 
-preference to -1 (or any other negative number). (see doc/dns.txt for more info)+preference to -1 (or any other negative number). (see doc/tutorials/dns.txt for more info)
  
   dns_{udp,tcp,tls,sctp}_pref = number   dns_{udp,tcp,tls,sctp}_pref = number
Line 2993: Line 2995:
 </code> </code>
  
 +See also the FAQ for how the function return code is evaluated:
 +
 +  * https://www.kamailio.org/wiki/tutorials/faq/main#how_is_the_function_return_cod
 ==== revert_uri ==== ==== revert_uri ====
  
Line 3649: Line 3654:
   ||      logical OR   ||      logical OR
   !       logical NOT   !       logical NOT
-  [ ... ] test operator - inside can be any arithmetic expression 
 </code> </code>
  
Line 3661: Line 3665:
     }     }
  
 +See also the FAQ for how the function return code is evaluated:
  
 +  * https://www.kamailio.org/wiki/tutorials/faq/main#how_is_the_function_return_cod
 ==== switch ==== ==== switch ====
  
cookbooks/devel/core.txt · Last modified: 2022/04/11 17:10 by bkaufman