On 11/11/2010 09:17 PM, JR Richardson wrote:
So the append_branch should not be used, ok, what about just the t_relay and exit?
if (t_check_status("486")) { t_relay(); exit; }
Would this work?
This is a failure route, a special type of reply route. Replies are automatically passed back, unless explicitly dropped or suppressed due to serial forking via a new branch.
So, you don't need to do t_relay() for the response to get back to the sender. In fact, you shouldn't, because this will be taken by Kamailio to mean something different than you intend.
The t_relay() call is only for statefully relaying _requests_.