<div>Julien,</div><div><br></div>I have been catching it in failure_route and sending it on up with this:<div><div> if (t_check_status("^503$")) {</div><div> t_reply("503", "Service Unavailable");</div>
<div> exit;</div><div> }</div><div><div><br></div><div>I think you could use t_reply("503", $(<reply>rr)); (note the use of <reply> to indicate the reply context <a href="http://www.opensips.org/Resources/DocsCoreVar16">see usage examples near the top of this link:</a> ) to have it use the original reason text instead of always sending "Service Unavailable" no matter what reason came with the 503. I haven't tried it yet myself.</div>
<div>I'm doing this because I'm just using it as a proxy to mangle headers and not decide where to go next. So I really do just want to pass the response back to the server doing the routing logic. It would seem passing the 503 would be the normal behavior in this case. Plus like the situation of Julien which I also have, where the upstream routers are not properly handling the diff between a 500 and 503.</div>
<div><br></div><div>So I agree that it would be nice if there were a param and/or var that could be set for the desired behavior like the invite timeout settings for tm.</div></div><div><br></div><div>Bogdan, </div><div>
<br>
</div><div>Is "disable_503_translation" ( from the subject of the link you posted ) an actual parameter (un)documented?</div><div><br></div><div class="gmail_quote">On Thu, Oct 7, 2010 at 2:44 PM, thrillerbee <span dir="ltr"><<a href="mailto:thrillerbee@gmail.com">thrillerbee@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Bogdan,<div><br></div><div>Is this or could this be configurable? It, unfortunately, breaks a lot of existing applications.</div>
<div><br></div><div>Thanks.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Oct 7, 2010 at 1:15 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Julien,<br>
<br>
see:<br>
<a href="http://lists.opensips.org/pipermail/users/2010-September/014505.html" target="_blank">http://lists.opensips.org/pipermail/users/2010-September/014505.html</a><br>
<br>
Regards,<br>
Bogdan<br>
<div><div></div><div><br>
Julien Chavanton wrote:<br>
> Hi, is there any reason why Opensips would replace 503 with 500 ?<br>
><br>
> The UA initiating the call expect 503 to reroute somewhere else<br>
><br>
> INVITE :<br>
><br>
> 10.0.20.14(UA) -> 10.2.0.1(Proxy) -> 10.0.4.202(UA)<br>
><br>
> RESPONSE :<br>
><br>
> U <a href="http://10.0.4.202:5060" target="_blank">10.0.4.202:5060</a> -> <a href="http://10.2.0.1:5060" target="_blank">10.2.0.1:5060</a><br>
> SIP/2.0 503 Service Unavailable.<br>
><br>
> U <a href="http://10.2.0.1:5060" target="_blank">10.2.0.1:5060</a> -> <a href="http://10.0.20.14:53584" target="_blank">10.0.20.14:53584</a><br>
> SIP/2.0 500 Service Unavailable.<br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
15 - 19 November 2010, Edison, New Jersey, USA<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>