<div dir="ltr">> 

I will be really happy if somebody point me what exactly i have to do to route 404 answer from Registar to UA<div><br></div><div>Do exactly this: <b>nothing</b>. They'll be route back based on VIA, may be set contact alias for certain status codes, if need be.</div><div><br></div><div>Good luck.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 4, 2020 at 2:37 AM fuxfwgc4a2i1gr <<a href="mailto:fuxfwgc4a2i1gr@gmail.com" target="_blank">fuxfwgc4a2i1gr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi. Well issue already described there :<br>
<br>
<a href="https://github.com/kamailio/kamailio/issues/2271" rel="noreferrer" target="_blank">https://github.com/kamailio/kamailio/issues/2271</a><br>
<br>
I will be really happy if somebody point me what exactly i have to do to <br>
route 404 answer from Registar to UA.<br>
<br>
If i understand right, in moment when registrar generate 404 i have to <br>
see in log message which generated inside onreply_route[REPLYROUTE]<br>
<br>
but in current moment i not see it and 404 not transmitted to UA. And it <br>
just silently ignored by Kamailio.<br>
<br>
In case if i am right and this is a bug in Kamailio please point me what <br>
words i have to use to prove that this is really bug.<br>
<br>
In current moment routing config looks like :<br>
<br>
request_route<br>
{<br>
<br>
         # per request initial checks<br>
         route(REQINIT);<br>
<br>
         route(CATCH_CANCEL);<br>
<br>
         route(RR_PARSE);<br>
<br>
         route(REGISTRATION);<br>
<br>
         xlog("L_INFO", "Initial relay packet\n");<br>
         $du = "sip:<a href="http://10.34.64.2:5060" rel="noreferrer" target="_blank">10.34.64.2:5060</a>";<br>
<br>
         route(FORWARD);<br>
<br>
         # update $du to set the destination address for proxying<br>
         exit;<br>
}<br>
<br>
route[CATCH_CANCEL]<br>
{<br>
     if (is_method("CANCEL") == true)<br>
     {<br>
         if (t_check_trans() == true)<br>
         {<br>
             route(FORWARD);<br>
         }<br>
         sl_reply("500", "Internal Server Error");<br>
         drop;<br>
     }<br>
}<br>
<br>
route[RR_PARSE]<br>
{<br>
     if(loose_route() == true )<br>
     {<br>
         xlog("L_INFO", "RR-enforced\n");<br>
         append_hf("P-hint: rr-enforced\r\n");<br>
         route(FORWARD);<br>
<br>
     } else<br>
         {<br>
             xlog("L_INFO", "RR simple\n");<br>
             record_route();<br>
         }<br>
}<br>
<br>
route[REGISTRATION]<br>
{<br>
     if(is_method("REGISTER") == true)<br>
     {<br>
         add_path_received();<br>
         append_hf("Supported: path\r\n");<br>
         xlog("L_INFO", "GOT REGISTER\n");<br>
     }<br>
}<br>
<br>
# Per SIP request initial checks<br>
route[REQINIT]<br>
{<br>
         if($ua =~ "friendly-scanner|sipcli|VaxSIPUserAgent") {<br>
                 # silent drop for scanners - uncomment next line if <br>
want to reply<br>
                 # sl_send_reply("200", "OK");<br>
                 exit;<br>
         }<br>
<br>
         if (!mf_process_maxfwd_header("10")) {<br>
                 sl_send_reply("483","Too Many Hops");<br>
                 exit;<br>
         }<br>
<br>
         if(is_method("OPTIONS") && uri==myself && $rU==$null) {<br>
                 sl_send_reply("200","Keepalive");<br>
                 exit;<br>
         }<br>
<br>
         if(!sanity_check("1511", "7")) {<br>
                 xlog("Malformed SIP message from $si:$sp\n");<br>
                 exit;<br>
         }<br>
}<br>
<br>
<br>
<br>
<br>
route[FORWARD]<br>
{<br>
     t_on_failure("FAILROUTE");<br>
     t_on_reply("REPLYROUTE");<br>
     if(t_relay() <= 0)<br>
     {<br>
         sl_reply_error();<br>
     }<br>
<br>
     drop;<br>
}<br>
<br>
<br>
onreply_route[REPLYROUTE]<br>
{<br>
     xlog("Reply SIP message from $si:$sp\n");<br>
     if (t_check_trans() == false)<br>
     {<br>
         drop;<br>
     }<br>
}<br>
<br>
<br>
failure_route[FAILROUTE]<br>
{<br>
     xlog("Reply Fail SIP message from $si:$sp\n");<br>
<br>
}<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>