[SR-Users] Handle '486 busy here' from upstream carrier

Alex Balashov abalashov at evaristesys.com
Fri Nov 12 03:18:59 CET 2010


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_.

-- 
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/



More information about the sr-users mailing list