<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Preformattato HTML Carattere";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PreformattatoHTMLCarattere
        {mso-style-name:"Preformattato HTML Carattere";
        mso-style-priority:99;
        mso-style-link:"Preformattato HTML";
        font-family:Consolas;
        color:black;}
span.StileMessaggioDiPostaElettronica20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=IT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I checked the trace ip, and we don’t receive 500, but only 487<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:windowtext'>Da:</span></b><span style='font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:windowtext'> sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] <b>Per conto di </b>Daniel-Constantin Mierla<br><b>Inviato:</b> lunedì 31 marzo 2014 10:27<br><b>A:</b> Kamailio (SER) - Users Mailing List<br><b>Oggetto:</b> Re: [SR-Users] ERROR reply code Failure route<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hello,<br><br>can you look at sip traffic to see if a 500 response is received and then another one with code 487 comes?<br><br>Cheers,<br>Daniel<o:p></o:p></p><div><p class=MsoNormal>On 31/03/14 10:19, pars3c wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US>Hello,</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>i receive many error on the failure route like this “ t_should_relay_response(): ERROR: t_should_relay_response: status rewrite by UAS: stored: 500, received: 487” . Do you know why ?</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>My version of Kamailio is the 4.1.2  and the code is this:</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>failure_route[MANAGE_FAILURE] {</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                if (t_is_canceled()) {</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                               exit;</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                </span>}              <o:p></o:p></p><p class=MsoNormal>                <o:p></o:p></p><p class=MsoNormal>                <span lang=EN-US>revert_uri();</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                if (!cr_next_domain("$avp(s:carrier)", "$avp(s:domain)", "$rU", "$avp(s:host)", "$T_reply_code", "$avp(s:domain)")) {</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                               exit;</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                }</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                if (!cr_route("$avp(s:carrier)", "$avp(s:domain)", "$rU", "$rU", "call_id")) {</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                               exit;</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                }</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                $avp(s:host)= $rd;</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                t_on_failure("MANAGE_FAILURE");</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                t_on_branch("MANAGE_BRANCH");</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                append_branch();</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                if (!t_relay()) {</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                               exit;</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>                }</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>}</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>Thanks to all</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre><pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre><pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>Daniel-Constantin Mierla - <a href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre><pre><a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre><pre>Kamailio World Conference - April 2-4, 2014, Berlin, Germany<o:p></o:p></pre><pre><a href="http://www.kamailioworld.com">http://www.kamailioworld.com</a><o:p></o:p></pre><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=1 width="100%" noshade style='color:gray' align=center></span></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Nessun virus nel messaggio.<br>Controllato da AVG - <a href="http://www.avg.com">www.avg.com</a><br>Versione: 2014.0.4354 / Database dei virus: 3722/7259 - Data di rilascio: 27/03/2014<o:p></o:p></span></p></div></body></html>