Module: kamailio
Branch: 5.1
Commit: b66ebc658b22b992c4b0c6ecad7915b217b344a1
URL:
https://github.com/kamailio/kamailio/commit/b66ebc658b22b992c4b0c6ecad7915b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2019-01-04T22:56:16+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/b66ebc658b22b992c4b0c6ecad7915b…
Patch:
https://github.com/kamailio/kamailio/commit/b66ebc658b22b992c4b0c6ecad7915b…
---
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;
}