Module: kamailio
Branch: master
Commit: 452d257d05fc4c0ccba7515169bacab0be1f0c72
URL:
https://github.com/kamailio/kamailio/commit/452d257d05fc4c0ccba7515169bacab…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2021-03-11T08:28:27+01:00
Merge pull request #2665 from easyrider14/master
cplc: permanent contact not skipped by lookup anymore
---
Modified: src/modules/cplc/cpl_run.c
---
Diff:
https://github.com/kamailio/kamailio/commit/452d257d05fc4c0ccba7515169bacab…
Patch:
https://github.com/kamailio/kamailio/commit/452d257d05fc4c0ccba7515169bacab…
---
diff --git a/src/modules/cplc/cpl_run.c b/src/modules/cplc/cpl_run.c
index 768f6b3d4a..437e512667 100644
--- a/src/modules/cplc/cpl_run.c
+++ b/src/modules/cplc/cpl_run.c
@@ -283,7 +283,7 @@ static inline char *run_lookup( struct cpl_interpreter *intr )
} else {
contact = r->contacts;
/* skip expired contacts */
- while ((contact) && (contact->expires <= tc))
+ while ((contact) && (contact->expires > 0) &&
(contact->expires <= tc))
contact = contact->next;
/* any contacts left? */
if (contact) {