<h3>Description</h3>
<p>log_prefix do not work in failure_route</p>
<h3>Troubleshooting</h3>
<h4>Reproduction</h4>
<p>log_prefix="{$mt $hdr(CSeq) $ci} "</p>
<p>...<br>
...</p>
<p>failure_route[RTF_LCR_ROUTE]<br>
{<br>
if (t_is_canceled()) {<br>
exit;<br>
}</p>
<pre><code>    xlog("L_INFO", "--- SCRIPT: failure_route - RTF_LCR_ROUTE\n");
    if (t_check_status("408|50[0-4]") or (t_branch_timeout() and !t_branch_replied())) {
            if(!next_gw()) {
                    send_reply("503", "No more LCR gateways");
                    exit;
            }

            xlog("L_INFO", "flag $avp(lcr_flag) \n");
            t_on_failure("RTF_LCR_ROUTE");
            t_set_retr(0, 4000);
            route(RELAY);
            exit;
    }
</code></pre>
<p>}</p>
<h4>Debugging Data</h4>

<pre><code>(paste your debugging data here)
</code></pre>
<h4>Log Messages</h4>

<pre><code>INFO: <script>: --- SCRIPT: failure_route - RTF_LCR_ROUTE
</code></pre>
<h4>SIP Traffic</h4>

<pre><code>(paste your sip traffic here)
</code></pre>
<h3>Possible Solutions</h3>

<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 4.4.7 (x86_64/linux) 35d8ab
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 35d8ab
compiled on 11:55:20 Mar 19 2018 with gcc 6.3.0
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<pre><code>Linux kamailio 4.13.0-37-generic #42~16.04.1-Ubuntu SMP Wed Mar 7 16:03:28 UTC 2018 x86_64 GNU/Linux

</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1531">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZeeeKICUprusEyNZEaFX_PvbtqKpks5tyrR1gaJpZM4T_U5a">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZVBywkYZR-Qq76Dcn8EcHQ6ziF-Zks5tyrR1gaJpZM4T_U5a.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1531"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"log_prefix do not work in failure_route (#1531)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1531"}}}</script>
<script type="application/ld+json">{"@type":"MessageCard","@context":"http://schema.org/extensions","hideOriginalBody":"false","originator":"37567f93-e2a7-4e2a-ad37-a9160fc62647","title":"log_prefix do not work in failure_route (#1531)","sections":[{"text":"","activityTitle":"**Jurijs Ivolga**","activityImage":"https://avatars2.githubusercontent.com/u/6322576?s=160\u0026v=4","activitySubtitle":"@os11k","facts":[{"name":"Repository: ","value":"kamailio/kamailio"},{"name":"Issue #: ","value":1531}]}],"potentialAction":[{"name":"Add a comment","@type":"ActionCard","inputs":[{"isMultiLine":true,"@type":"TextInput","id":"IssueComment","isRequired":false}],"actions":[{"name":"Comment","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"IssueComment\",\"repositoryFullName\":\"kamailio/kamailio\",\"issueId\":1531,\"IssueComment\":\"{{IssueComment.value}}\"}"}]},{"name":"Close issue","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"IssueClose\",\"repositoryFullName\":\"kamailio/kamailio\",\"issueId\":1531}"},{"targets":[{"os":"default","uri":"https://github.com/kamailio/kamailio/issues/1531"}],"@type":"OpenUri","name":"View on GitHub"},{"name":"Unsubscribe","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"MuteNotification\",\"threadId\":335367770}"}],"themeColor":"26292E"}</script>