Skip to content

Commit

Permalink
topos: proper condition to detect 3xx redirect for contact updates
Browse files Browse the repository at this point in the history
- GH #1720
  • Loading branch information
miconda committed Nov 23, 2018
1 parent 93e40d5 commit 1f02ee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/topos/tps_msg.c
Expand Up @@ -1077,8 +1077,8 @@ int tps_response_sent(sip_msg_t *msg)
tps_remove_headers(msg, HDR_RECORDROUTE_T);

/* keep contact without updates for redirect responses sent out */
if(msg->first_line.u.reply.statuscode<300
|| msg->first_line.u.reply.statuscode>=400) {
if(msg->first_line.u.reply.statuscode>=300
&& msg->first_line.u.reply.statuscode<400) {
contact_keep = 1;
}
if(contact_keep==0 && msg->first_line.u.reply.statuscode>100
Expand Down

0 comments on commit 1f02ee6

Please sign in to comment.