<p></p>
<p>Hi <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/miconda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/miconda">@miconda</a> . I think you misunderstood bug here. Issue is that if and switch statements change behaviour of sl_send_error(). Same examples as configuration from this bug report are in Kamailio documentation so it looks like a bug, if not maybe documentation needs an update.</p>

<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/2802#issuecomment-886826241">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMPPKSBQFFJBHE5TM3TZWA4DANCNFSM5AV42Z5A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZIRLDAZVLYW4OIWL4TTZWA4DA5CNFSM5AV42Z5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGTN6KAI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2802#issuecomment-886826241",
"url": "https://github.com/kamailio/kamailio/issues/2802#issuecomment-886826241",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>