[sr-dev] git:master: dialog: proper detection of keepalive flag for destination

Daniel-Constantin Mierla miconda at gmail.com
Fri Apr 11 23:04:21 CEST 2014


Module: sip-router
Branch: master
Commit: 933a621f40eaa31b193e76f162f9cc016b49aeac
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=933a621f40eaa31b193e76f162f9cc016b49aeac

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Apr 11 23:03:05 2014 +0200

dialog: proper detection of keepalive flag for destination

- credit to Bill Radis, FS#416, for report and fix

---

 modules/dialog/dlg_hash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/dialog/dlg_hash.c b/modules/dialog/dlg_hash.c
index 5afece8..0ec9c36 100644
--- a/modules/dialog/dlg_hash.c
+++ b/modules/dialog/dlg_hash.c
@@ -132,7 +132,7 @@ int dlg_ka_add(dlg_cell_t *dlg)
 
 	if(dlg_ka_interval<=0)
 		return 0;
-	if(!(dlg->iflags & (DLG_IFLAG_KA_SRC | DLG_IFLAG_KA_SRC)))
+	if(!(dlg->iflags & (DLG_IFLAG_KA_SRC | DLG_IFLAG_KA_DST)))
 		return 0;
 
 	dka = (dlg_ka_t*)shm_malloc(sizeof(dlg_ka_t));




More information about the sr-dev mailing list