All pastes #456311 Raw Edit

Miscellany

public text v1 · immutable
#456311 ·published 2007-04-24 19:26 UTC
rendered paste body
105         force_rport();
106         force_rtp_proxy();
107
108         if(nat_uac_test("3")){
109                 if(is_method("REGISTER") || !is_present_hf("Record-Route")){
110                         xlog("L_INFO", "Someone trying to register from private IP, rewriting..");
111                         fix_nated_contact();
112
113                         if(is_method("INVITE")){
114                                 fix_nated_sdp("1");
115                         }
116
117                         #force_rport();
118                         setbflag(5);
119                 }
120         }
121
122         if(!is_method("REGISTER")){
123                 record_route();
124         }
125
126         if(is_method("BYE|CANCEL")){
127                 unforce_rtp_proxy();
128         }