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: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] mslehto [reply_route] remove quote |
||
---|---|---|---|
Line 383: | Line 383: | ||
===== 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 1144: | Line 1144: | ||
==== log_prefix_mode ==== | ==== log_prefix_mode ==== | ||
- | If set to 0 (default), then log_prefix is evaluated | + | Control if [[#log_prefix|log prefix]] |
- | If set to 1, then the log prefix is evaluated before/ | + | 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/ | ||
Example: | Example: | ||
Line 3104: | Line 3106: | ||
<code c> | <code c> | ||
reply_route { | reply_route { | ||
- | if(status==" | + | if(status==" |
drop; | drop; | ||
} | } |