[sr-dev] git:master:740bc8ce: dialog: check for cseq value only when getting it for caller/request

Daniel-Constantin Mierla miconda at gmail.com
Wed Dec 19 11:57:03 CET 2018


Module: kamailio
Branch: master
Commit: 740bc8ce88da612ac30a73db0145908355cab192
URL: https://github.com/kamailio/kamailio/commit/740bc8ce88da612ac30a73db0145908355cab192

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-12-19T11:56:41+01:00

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

---

Modified: src/modules/dialog/dlg_handlers.c

---

Diff:  https://github.com/kamailio/kamailio/commit/740bc8ce88da612ac30a73db0145908355cab192.diff
Patch: https://github.com/kamailio/kamailio/commit/740bc8ce88da612ac30a73db0145908355cab192.patch

---

diff --git a/src/modules/dialog/dlg_handlers.c b/src/modules/dialog/dlg_handlers.c
index a94dd641a4..983e82d7dd 100644
--- a/src/modules/dialog/dlg_handlers.c
+++ b/src/modules/dialog/dlg_handlers.c
@@ -208,7 +208,7 @@ int populate_leg_info( struct dlg_cell *dlg, struct sip_msg *msg,
 		/* use the same as in request */
 		cseq = dlg->cseq[DLG_CALLEE_LEG];
 	}
-	if(cseq.s==NULL || cseq.len<=0) {
+	if ((leg==DLG_CALLER_LEG) && (cseq.s==NULL || cseq.len<=0)) {
 		LM_ERR("empty CSeq number\n");
 		goto error0;
 	}




More information about the sr-dev mailing list