Browse code

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

Daniel-Constantin Mierla authored on 20/12/2018 07:09:36
Showing 1 changed files
... ...
@@ -209,8 +209,7 @@ int populate_leg_info( struct dlg_cell *dlg, struct sip_msg *msg,
209 209
 		cseq = dlg->cseq[DLG_CALLEE_LEG];
210 210
 	}
211 211
 	if ((leg==DLG_CALLER_LEG) && (cseq.s==NULL || cseq.len<=0)) {
212
-		LM_ERR("empty CSeq number\n");
213
-		goto error0;
212
+		LM_DBG("empty CSeq number (leg: %d)\n", leg);
214 213
 	}
215 214
 
216 215
 	/* extract the contact address */
... ...
@@ -226,8 +225,7 @@ int populate_leg_info( struct dlg_cell *dlg, struct sip_msg *msg,
226 226
 	}
227 227
 	contact = ((contact_body_t *)msg->contact->parsed)->contacts->uri;
228 228
 	if(contact.s==NULL || contact.len<=0) {
229
-		LM_ERR("empty contact uri\n");
230
-		goto error0;
229
+		LM_DBG("empty contact uri (leg: %d)\n", leg);
231 230
 	}
232 231
 
233 232
 	/* extract the record-route addresses */