From 314d3883dd79bbe79fec792ee773a6481ba8a00c Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 11 Feb 2009 17:18:14 +0000 Subject: [PATCH] Wed Jan 28 12:07:53 CST 2009 Pekka Pessi * outbound.c: make outbound timer deferrable git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11854 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/nua/outbound.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 6348b7aa9b..e31494d7e6 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Wed Feb 11 11:17:39 CST 2009 +Wed Feb 11 11:18:06 CST 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/outbound.c b/libs/sofia-sip/libsofia-sip-ua/nua/outbound.c index c6535c3e4b..1e518f9fc5 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/outbound.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/outbound.c @@ -684,9 +684,11 @@ void outbound_start_keepalive(outbound_t *ob, if (ob->ob_keepalive.timer) su_timer_destroy(ob->ob_keepalive.timer), ob->ob_keepalive.timer = NULL; - if (interval) + if (interval) { ob->ob_keepalive.timer = su_timer_create(su_root_task(ob->ob_root), interval); + su_timer_deferrable(ob->ob_keepalive.timer, 1); + } ob->ob_keepalive.interval = interval;