Module: kamailio Branch: master Commit: 740bc8ce88da612ac30a73db0145908355cab192 URL: https://github.com/kamailio/kamailio/commit/740bc8ce88da612ac30a73db01459083...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/740bc8ce88da612ac30a73db01459083... Patch: https://github.com/kamailio/kamailio/commit/740bc8ce88da612ac30a73db01459083...
---
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; }