All pastes #742266 Raw Edit

Someone

public text v1 · immutable
·published 2007-10-19 11:33 UTC
rendered paste body
failure_route[1]
{

    # Caller busy, something stpid happened, timeout, or canceled, send to voicemail
    if (t_check_status("408") || t_check_status("477") || t_check_status("486") || t_check_status("603")){
    #if (t_check_status("(408)|(480)|(486)|(603)|(477)"))  {
        #route(8);  route 8 would do same as line below, with then calls route 1, which uses t_relay
        rewritehostport("voicemail.buzznim.com:5060");
        t_relay();
        exit;
        };


    xlog("FAILURE\n");
    end_media_session();
}