All pastes #921067 Raw Edit

Untitled

public text v1 · immutable
#921067 ·published 2008-02-27 20:11 UTC
rendered paste body
  if (!mf_process_maxfwd_header("10")) {
                sl_send_reply("483", "Too Many Hops");
                exit;
        };
        if (msg:len > max_len) {
                sl_send_reply("513", "Message too big");
                exit;
        };
 
## start jj tweak
        if(!is_method("REGISTER")) {       
                        record_route();              
        }
        if(loose_route()) {                  
                if(!has_totag()) { 
                        xlog("L_INFO", "Initial loose-routing rejected - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
                        sl_send_reply("403", "Initial Loose-Routing Rejected");
                        exit;
                }
                route(11);
        }
## end jj tweak

        if (method == "REGISTER") {