[Serusers] t_pick_branch failed

Daniel Poulsen dpoulsen at gmail.com
Fri Apr 8 23:24:05 CEST 2005


Could this:

Apr  8 17:14:58 sip2 ser[17542]: BUG:t_check_status: t_pick_branch
failed to get  a final response in MODE_ONFAILURE

explain why this:

       if (t_check_status("408") |   t_check_status("404") |
t_check_status("486"))  { route(8); }

fails?    Pertinant config follows.

--------------------------
Route logic:
--------------------------

        # Translate local address according to aliases table
        if(lookup("aliases")) {
                xlog("L_NOTICE", "%ci: alias lookup changed uri to %ru\n");

        };

        # Handle offline or non-existent users
        if (!lookup("location")) {
                xlog("L_NOTICE", "%ci: no location for %ru\n");
        };

        route(4); # relay with hunt on failure

--------------------------

route[4] {

        # If an invitation, we want to hunt on failure
        if(method == "INVITE") {
                t_on_failure("1");  # first hunt
        };
        if (!t_relay()) {
                sl_reply_error();
                break;
        };
}



###
# Hunt (8), but only on 404/408/487
route[7] {
        if (t_check_status("408") |   # Timeout
            t_check_status("404") |   # Not found
            t_check_status("486"))    # Busy
        {
                route(8);
        } else {
                xlog("L_NOTICE",
                     "%ci: r7: hunt but not 404/408/486\n");
        };
}




More information about the sr-users mailing list