Skip to content

Commit

Permalink
topos: allow various replies for INVITE without contact
Browse files Browse the repository at this point in the history
- GH #1720

(cherry picked from commit 416d79b)
  • Loading branch information
miconda committed Nov 23, 2018
1 parent 652180a commit 3b586d5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/modules/topos/tps_storage.c
Expand Up @@ -353,6 +353,18 @@ int tps_storage_link_msg(sip_msg_t *msg, tps_data_t *td, int dir)
/* no mandatory contact unless is INVITE - done */
return 0;
}
if(msg->first_line.type==SIP_REPLY) {
if(msg->first_line.u.reply.statuscode>=100
&& msg->first_line.u.reply.statuscode<200
&& msg->first_line.u.reply.statuscode!=183) {
/* provisional response with no mandatory contact header */
return 0;
}
if(msg->first_line.u.reply.statuscode>=400) {
/* failure response with no mandatory contact header */
return 0;
}
}
LM_ERR("bad sip message or missing Contact hdr\n");
goto error;
}
Expand Down

0 comments on commit 3b586d5

Please sign in to comment.