Jelajahi Sumber

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

(cherry picked from commit ae4087ef615c1de5b67c8406eab8316300282d8b)
(cherry picked from commit 5067fe22cc16af943126ea88a9ddd35281ca8636)
(cherry picked from commit 19f585b4a32673ee15a9fe50f2edc1211bee44c5)
Daniel-Constantin Mierla 6 tahun lalu
induk
melakukan
b9ebd14876
1 mengubah file dengan 2 tambahan dan 4 penghapusan
  1. 2 4
      src/modules/dialog/dlg_handlers.c

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

@@ -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 */
@@ -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 */