<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On 23 August 2013 19:42, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Can you try the new patch attached?<br>
    <br>
    I overlooked that the code where to skip sending the reply was in
    between some #ifdef ... #else ... #endif and I did it only for the
    #else branch, but actually the #ifdef was enabled by compile.<br>
    <br>
    You have to apply the patch on clean sources.<span class=""><font color="#888888"><br>
    <br></font></span></div></blockquote><div><br></div><div>Hi,</div><div><br></div><div>I now get the -4, thanks!</div><div><br></div><div> > Aug 23 20:25:22 ubuntu /usr/local/sbin/kamailio[5645]: NOTICE: <script>: SLD: in RELAY, t_relay returned -4 err.rcode is <null> t_r_c is 100 sent = 0</div>
<div><br></div><div>FWIW, I had an sl_reply_error() after the t_relay and it decided to send back a 500.</div><div><br></div><div>Which probably doesn't matter for me since I will go on and try my alternate routing.</div>
<div><br></div><div>But is there a way to get hold of that "-477", and get the sl_reply_error to use the 477 ?</div><div><br></div><div>Thanks,</div><div>Steve</div><div><br></div><div><br></div><div><br></div><div>
<div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: ERROR: tm [../../forward.h:196]: msg_send(): msg_send: ERROR: udp_send failed</div><div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: DEBUG: tm [t_fwd.c:1369]: t_send_branch(): t_send_branch: send to <a href="http://41.221.230.60:5060">41.221.230.60:5060</a> (1) failed</div>
<div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: ERROR: tm [t_fwd.c:1387]: t_send_branch(): ERROR: t_send_branch: sending request on branch 0 failed</div><div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: DEBUG: tm [t_funcs.c:357]: t_relay_to(): ERROR:tm:t_relay_to:  t_forward_nonack returned error </div>
<div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: DEBUG: tm [t_funcs.c:365]: t_relay_to(): not generating immediate reply for error -477</div><div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: ERROR: *** cfgtrace: c=[/usr/local/etc/kamailio/kamailio.cfg] l=562 a=26 n=xlog</div>
<div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: DEBUG: tm [t_lookup.c:1100]: t_check_msg(): DEBUG: t_check_msg: msg id=5 global id=5 T start=0xb2f7ef18</div><div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: DEBUG: tm [t_lookup.c:1172]: t_check_msg(): DEBUG: t_check_msg: T already found!</div>
<div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: DEBUG: tmx [t_var.c:467]: pv_get_tm_reply_code(): reply code is <100></div><div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: NOTICE: <script>: SLD: in RELAY, t_relay returned -4 err.rcode is <null> t_r_c is 100 sent = 0</div>
<div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: ERROR: *** cfgtrace: c=[/usr/local/etc/kamailio/kamailio.cfg] l=566 a=16 n=if</div><div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: ERROR: *** cfgtrace: c=[/usr/local/etc/kamailio/kamailio.cfg] l=564 a=24 n=sl_reply_error</div>
<div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: DEBUG: <core> [msg_translator.c:206]: check_via_address(): check_via_address(172.16.230.1, 172.16.230.1, 0)</div><div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: ERROR: sl [sl_funcs.c:371]: sl_reply_error(): ERROR: sl_reply_error used: I'm terribly sorry, server error occurr</div>
<div>ed (1/SL)</div><div>Aug 23 20:25:44 ubuntu /usr/local/sbin/kamailio[5646]: ERROR: *** cfgtrace: c=[/usr/local/etc/kamailio/kamailio.cfg] l=566 a=2 n=exit</div></div><div><br></div><div><br></div><div> </div></div>
</div></div>