Skip to content

Commit

Permalink
dialog: only write debug messages in case cseq or contact fields are …
Browse files Browse the repository at this point in the history
…empty

(cherry picked from commit ae4087e)
(cherry picked from commit 5067fe2)
(cherry picked from commit 19f585b)
  • Loading branch information
miconda committed Apr 3, 2019
1 parent 1d53bbb commit b9ebd14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/dialog/dlg_handlers.c
Expand Up @@ -206,8 +206,7 @@ int populate_leg_info( struct dlg_cell *dlg, struct sip_msg *msg,
cseq = dlg->cseq[DLG_CALLEE_LEG];
}
if ((leg==DLG_CALLER_LEG) && (cseq.s==NULL || cseq.len<=0)) {
LM_ERR("empty CSeq number\n");
goto error0;
LM_DBG("empty CSeq number (leg: %d)\n", leg);
}

/* extract the contact address */
Expand All @@ -223,8 +222,7 @@ int populate_leg_info( struct dlg_cell *dlg, struct sip_msg *msg,
}
contact = ((contact_body_t *)msg->contact->parsed)->contacts->uri;
if(contact.s==NULL || contact.len<=0) {
LM_ERR("empty contact uri\n");
goto error0;
LM_DBG("empty contact uri (leg: %d)\n", leg);
}

/* extract the record-route addresses */
Expand Down

0 comments on commit b9ebd14

Please sign in to comment.