<div dir="ltr"><div>Since the failure route is triggered by tm, I think you have to t_relay() the request for the failure path to be taken. Maybe you could t_relay() it to another proxy with custom headers to indicate how you wanted it to fail, or even t_relay() it to the same proxy with care to handle it as you see fit.<br></div><div><br></div><div>Or, perhaps this. Let's say you have</div><div><br></div><div>route[dostuff] {</div><div> stuff();</div><div>}</div><div><br></div><div>You could make your failure route available to the main script by writing your failure route like this:</div><div><br></div><div>failure_route[failedstuff] {</div><div> route[dostuff];</div><div>}</div><div><br></div><div>So that way a true failure would run the same script as if you were to manually invoke route[dostuff]. </div><div><br></div><div>That's a lot of stuff. Hopefully some of it fits your use case.</div><div><br></div><div><br></div><div><br></div><div>- Jeff</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 30, 2015 at 8:14 PM, Podrigal, Aron <span dir="ltr"><<a href="mailto:aronp@guaranteedplus.com" target="_blank">aronp@guaranteedplus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Is there a way i can manually make a request fail so that my failure route would be invoked? I know this may sound weird, but i encountered some scenarios that this implementation came to my mind. So i want to know if this is possible. </p>
<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>