Skip to content

Commit

Permalink
Fixed preserving 3xx Contacts in TH without dialog
Browse files Browse the repository at this point in the history
Reported by Pete Kelly.
Closes OpenSIPS#656.
  • Loading branch information
bogdan-iancu committed May 19, 2016
1 parent 450d88c commit 6184b96
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/topology_hiding/topo_hiding_logic.c
Expand Up @@ -790,9 +790,11 @@ static void _th_no_dlg_onreply(struct cell* t, int type, struct tmcb_params *par
return;
}

if (topo_no_dlg_encode_contact(rpl,flags) < 0) {
LM_ERR("Failed to encode contact header \n");
return;
if ( !(rpl->REPLY_STATUS>=300 && rpl->REPLY_STATUS<400) ) {
if (topo_no_dlg_encode_contact(rpl,flags) < 0) {
LM_ERR("Failed to encode contact header \n");
return;
}
}

if (!(lmp = restore_vias_from_req(req,rpl))) {
Expand Down

0 comments on commit 6184b96

Please sign in to comment.