Skip to content

Commit

Permalink
dialog: do not print missing to tag error for final replies in DLG_ST…
Browse files Browse the repository at this point in the history
…ATE_UNCONFIRMED
  • Loading branch information
ovidiusas committed Jan 27, 2014
1 parent ce35927 commit f10288b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/dialog/dlg_handlers.c
Expand Up @@ -340,7 +340,12 @@ static inline void push_reply_in_dialog(struct sip_msg *rpl, struct cell* t,
} else {
tag = get_to(rpl)->tag_value;
if (tag.s==0 || tag.len==0) {
LM_ERR("missing TAG param in TO hdr :-/\n");
/* Don't print error for final replies in DLG_STATE_UNCONFIRMED */
if (!(dlg->state == DLG_STATE_UNCONFIRMED &&
rpl->first_line.u.reply.statuscode >= 300)) {
LM_ERR("[%d] reply in dlg state [%d]: missing TAG param in TO hdr\n",
rpl->first_line.u.reply.statuscode, dlg->state);
}
tag.s = 0;
tag.len = 0;
}
Expand Down

0 comments on commit f10288b

Please sign in to comment.