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
cookbooks:devel:core [2019/03/07 13:02]
mslehto [log_prefix] Expand text based on sr-users thread
cookbooks:devel:core [2019/03/18 09:27] (current)
mslehto [reply_route] remove quote
Line 383: Line 383:
 ===== Core Keywords ===== ===== Core Keywords =====
  
-Keywords specific to SIP messages which can be used mainly in '''​if'''​ expressions.+Keywords specific to SIP messages which can be used mainly in ''​if''​ expressions.
  
 ==== af ==== ==== af ====
Line 1144: Line 1144:
 ==== log_prefix_mode ==== ==== log_prefix_mode ====
  
-If set to 0 (default), then log_prefix is evaluated ​when the sip message is received and then reused (recommended if the log_prefix has only variables that have same value for same message). This is the current behaviour of log_prefix evaluation.+Control if [[#log_prefix|log prefix]] ​is re-evaluated.
  
-If set to 1, then the log prefix is evaluated before/​after each config action (needs to be set when the log_prefix has variables that are different based on the context of config execution, e.g., $cfg(line)).+If set to 0 (default), then log prefix is evaluated when the sip message is received and then reused (recommended if the **log_prefix** has only variables that have same value for same message). This is the current behaviour of **log_prefix** evaluation. 
 + 
 +If set to 1, then the log prefix is evaluated before/​after each config action (needs to be set when the **log_prefix** has variables that are different based on the context of config execution, e.g., $cfg(line)).
  
 Example: Example:
Line 3104: Line 3106:
 <code c> <code c>
 reply_route { reply_route {
-  if(status=="​128"") {+  if(status=="​128"​) {
     drop;     drop;
   }   }
cookbooks/devel/core.1551960145.txt.gz · Last modified: 2019/03/07 13:02 by mslehto