Thank you very much!!<br>I'm doing class 4 switching and for some reason all my customers expect a 503 as a slow down your sending me too much traffic. Not the I'm broken.<br>Is the 500 the proper way to tell them to back off a little. Is there a header that should be used to tell them how much to back off?<br>
<br>Thanks again Bogdan for all your work and help you give everyone. I don't know how you keep up.<br><br>Dave<br><br><div class="gmail_quote">On Fri, Oct 8, 2010 at 4:32 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Dave,<br>
<br>
See: <a href="http://www.opensips.org/Resources/DocsCoreFcn16#toc34" target="_blank">http://www.opensips.org/Resources/DocsCoreFcn16#toc34</a> (added the<br>
docs for this module)<br>
<br>
Regards,<br>
Bogdan<br>
<div class="im"><br>
Dave Singer wrote:<br>
> Julien,<br>
><br>
> I have been catching it in failure_route and sending it on up with this:<br>
> if (t_check_status("^503$")) {<br>
> t_reply("503", "Service Unavailable");<br>
> exit;<br>
> }<br>
><br>
> I think you could use t_reply("503", $(<reply>rr)); (note the use of<br>
> <reply> to indicate the reply context see usage examples near the top<br>
</div>> of this link: <<a href="http://www.opensips.org/Resources/DocsCoreVar16" target="_blank">http://www.opensips.org/Resources/DocsCoreVar16</a>> ) to<br>
<div class="im">> have it use the original reason text instead of always sending<br>
> "Service Unavailable" no matter what reason came with the 503. I<br>
> haven't tried it yet myself.<br>
> I'm doing this because I'm just using it as a proxy to mangle headers<br>
> and not decide where to go next. So I really do just want to pass the<br>
> response back to the server doing the routing logic. It would seem<br>
> passing the 503 would be the normal behavior in this case. Plus like<br>
> the situation of Julien which I also have, where the upstream routers<br>
> are not properly handling the diff between a 500 and 503.<br>
><br>
> So I agree that it would be nice if there were a param and/or var that<br>
> could be set for the desired behavior like the invite timeout settings<br>
> for tm.<br>
><br>
> Bogdan,<br>
><br>
> Is "disable_503_translation" ( from the subject of the link you posted<br>
> ) an actual parameter (un)documented?<br>
><br>
> On Thu, Oct 7, 2010 at 2:44 PM, thrillerbee <<a href="mailto:thrillerbee@gmail.com">thrillerbee@gmail.com</a><br>
</div><div class="im">> <mailto:<a href="mailto:thrillerbee@gmail.com">thrillerbee@gmail.com</a>>> wrote:<br>
><br>
> Bogdan,<br>
><br>
> Is this or could this be configurable? It, unfortunately, breaks<br>
> a lot of existing applications.<br>
><br>
> Thanks.<br>
><br>
><br>
> On Thu, Oct 7, 2010 at 1:15 PM, Bogdan-Andrei Iancu<br>
</div><div class="im">> <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>> wrote:<br>
><br>
> 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>
><br>
> Julien Chavanton wrote:<br>
> > Hi, is there any reason why Opensips would replace 503 with<br>
> 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>
</div>> > U <a href="http://10.0.4.202:5060" target="_blank">10.0.4.202:5060</a> <<a href="http://10.0.4.202:5060" target="_blank">http://10.0.4.202:5060</a>> -> <a href="http://10.2.0.1:5060" target="_blank">10.2.0.1:5060</a><br>
> <<a href="http://10.2.0.1:5060" target="_blank">http://10.2.0.1:5060</a>><br>
<div class="im">> > SIP/2.0 503 Service Unavailable.<br>
> ><br>
</div>> > U <a href="http://10.2.0.1:5060" target="_blank">10.2.0.1:5060</a> <<a href="http://10.2.0.1:5060" target="_blank">http://10.2.0.1:5060</a>> -> <a href="http://10.0.20.14:53584" target="_blank">10.0.20.14:53584</a><br>
> <<a href="http://10.0.20.14:53584" target="_blank">http://10.0.20.14:53584</a>><br>
<div class="im">> > SIP/2.0 500 Service Unavailable.<br>
> ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
</div>> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
<div class="im">> > <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>
</div>> <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
<div class="im">> <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>
> Users mailing list<br>
</div>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
<div class="im">> <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>
> _______________________________________________<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>
<br>
<br>
</div>--<br>
<div><div></div><div class="h5">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">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>
</div></div></blockquote></div><br>