Skip to content

Commit

Permalink
dlg: suppress info for updating contact
Browse files Browse the repository at this point in the history
(cherry picked from commit 07ea9b6)
  • Loading branch information
razvancrainea committed Apr 26, 2018
1 parent a599c68 commit 801cb47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/dialog/dlg_handlers.c
Expand Up @@ -1189,12 +1189,12 @@ static inline int dlg_update_contact(struct dlg_cell *dlg, struct sip_msg *msg,
/* if the same contact, don't do anything */
if (dlg->legs[leg].contact.len == contact.len &&
strncmp(dlg->legs[leg].contact.s, contact.s, contact.len) == 0) {
LM_INFO("Using the same contact <%.*s> for dialog %p on leg %d\n",
LM_DBG("Using the same contact <%.*s> for dialog %p on leg %d\n",
contact.len, contact.s, dlg, leg);
return 0;
}
dlg->flags |= DLG_FLAG_CHANGED;
LM_INFO("Replacing old contact <%.*s> for dialog %p on leg %d\n",
LM_DBG("Replacing old contact <%.*s> for dialog %p on leg %d\n",
dlg->legs[leg].contact.len, dlg->legs[leg].contact.s, dlg, leg);
tmp = shm_realloc(dlg->legs[leg].contact.s, contact.len);
} else
Expand All @@ -1206,7 +1206,7 @@ static inline int dlg_update_contact(struct dlg_cell *dlg, struct sip_msg *msg,
dlg->legs[leg].contact.s = tmp;
dlg->legs[leg].contact.len = contact.len;
memcpy(dlg->legs[leg].contact.s, contact.s, contact.len);
LM_INFO("Updated contact to <%.*s> for dialog %p on leg %d\n",
LM_DBG("Updated contact to <%.*s> for dialog %p on leg %d\n",
contact.len, contact.s, dlg, leg);
return 1;
}
Expand Down

0 comments on commit 801cb47

Please sign in to comment.