@miconda I think correct way will be:
tps_remove_headers(msg, HDR_RECORDROUTE_T);
if(msg->first_line.u.reply.statuscode>100
&& msg->first_line.u.reply.statuscode<200
&& msg->contact==NULL) {
contact_keep = 1;
}
/* keep contact without updates for redirect responses sent out */
if(contact_keep==0 && (msg->first_line.u.reply.statuscode<300
|| msg->first_line.u.reply.statuscode>=400)) {
tps_remove_headers(msg, HDR_CONTACT_T);
if(direction==TPS_DIR_DOWNSTREAM) {
tps_reinsert_contact(msg, &stsd, &stsd.as_contact);
} else {
tps_reinsert_contact(msg, &stsd, &stsd.bs_contact);
}
}
tps_reappend_rr(msg, &btsd, &btsd.x_rr);
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.