[SR-Users] t_relay failure when dropping all branches in same destination set

Sergiu Pojoga pojogas at gmail.com
Thu Apr 9 17:32:32 CEST 2020


Found an old discussion about this issue,
https://lists.kamailio.org/pipermail/sr-users/2010-April/027703.html

It says that the t_relay error is because after drop of single/all
branches, there's none left to relay. However, it is not clear what the
solution is, as t_relay failure won't trigger a failure_route to do
alternative actions.

Ideas?

Thanks,
--Sergiu

On Wed, Apr 8, 2020 at 11:14 PM Sergiu Pojoga <pojogas at gmail.com> wrote:

> Hi there,
>
> Can someone help figure out why there's this t_relay error, if I decide to
> drop the single master branch either all branches belonging to the same
> destination set, even though there are more serial sets to try later?
>
> *Error:*
> *tm [t_funcs.c:337]: t_relay_to(): t_forward_nonack returned error -6 (-6)*
> *tm [t_funcs.c:355]: t_relay_to(): -6 error reply generation delayed *
>
> *Example:*
>
> request_route {
>    seturi("sip:a at mydomain.net");
>    append_branch("sip:b at mydomain.net", "0.5");
>    append_branch("sip:c at mydomain.net", "0.5");
>    append_branch("sip:d at 10.22.0.30", "1.0");
>    # append_branch("sip:e at mydomain.net", "1.0"); # no error if I add this
> branch with same Q=1.0
>
>    t_load_contacts();
>    t_next_contacts();
>
>    t_on_branch("check_branch");
>    t_on_failure("serial");
>
>    t_relay();
>    break;
> }
>
> branch_route[check_branch] {
>    if($rd=="10.22.0.30")
>       drop;
> }
>
> failure_route["serial"] {
>    if (!t_next_contacts())
>       exit;
> }
>
>   t_on_branch("check_branch");
>   t_on_failure("serial");
>   t_relay();
> }
>
> Thanks in advance.
>
> --Sergiu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200409/6055df2f/attachment.html>


More information about the sr-users mailing list