[sr-dev] git:5.2:9bfac7d0: dialog: check for cseq value only when getting it for caller/request

Henning Westerholt hw at kamailio.org
Fri Jan 4 22:57:12 CET 2019


Module: kamailio
Branch: 5.2
Commit: 9bfac7d0fa750c6368d048a1b577009b3ea32481
URL: https://github.com/kamailio/kamailio/commit/9bfac7d0fa750c6368d048a1b577009b3ea32481

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Henning Westerholt <hw at kamailio.org>
Date: 2019-01-04T22:56:10+01:00

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

(cherry picked from commit 740bc8ce88da612ac30a73db0145908355cab192)

---

Modified: src/modules/dialog/dlg_handlers.c

---

Diff:  https://github.com/kamailio/kamailio/commit/9bfac7d0fa750c6368d048a1b577009b3ea32481.diff
Patch: https://github.com/kamailio/kamailio/commit/9bfac7d0fa750c6368d048a1b577009b3ea32481.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