Browse code

dialog: check for cseq value only when getting it for caller/request

Daniel-Constantin Mierla authored on 19/12/2018 10:56:06
Showing 1 changed files
... ...
@@ -208,7 +208,7 @@ int populate_leg_info( struct dlg_cell *dlg, struct sip_msg *msg,
208 208
 		/* use the same as in request */
209 209
 		cseq = dlg->cseq[DLG_CALLEE_LEG];
210 210
 	}
211
-	if(cseq.s==NULL || cseq.len<=0) {
211
+	if ((leg==DLG_CALLER_LEG) && (cseq.s==NULL || cseq.len<=0)) {
212 212
 		LM_ERR("empty CSeq number\n");
213 213
 		goto error0;
214 214
 	}