Browse Source

dialog: only write debug messages in case cseq or contact fields are empty

Daniel-Constantin Mierla 6 years ago
parent
commit
ae4087ef61
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/modules/dialog/dlg_handlers.c

+ 2 - 4
src/modules/dialog/dlg_handlers.c

@@ -209,8 +209,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 */
@@ -226,8 +225,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 */