[asterisk-commits] phsultan: branch 1.4 r114198 - /branches/1.4/res/res_jabber.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 17 08:42:23 CDT 2008


Author: phsultan
Date: Thu Apr 17 08:42:23 2008
New Revision: 114198

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114198
Log:
Use keepalives effectively in order diagnose bug #12432.

Modified:
    branches/1.4/res/res_jabber.c

Modified: branches/1.4/res/res_jabber.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_jabber.c?view=diff&rev=114198&r1=114197&r2=114198
==============================================================================
--- branches/1.4/res/res_jabber.c (original)
+++ branches/1.4/res/res_jabber.c Thu Apr 17 08:42:23 2008
@@ -1565,7 +1565,7 @@
 		else if (res == IKS_NET_TLSFAIL)
 			ast_log(LOG_WARNING, "JABBER:  Failure in TLS.\n");
 		else if (client->timeout == 0 && client->state == AJI_CONNECTED) {
-			res = iks_send_raw(client->p, " ");
+			res = client->keepalive ? iks_send_raw(client->p, " ") : IKS_OK;
 			if(res == IKS_OK)
 				client->timeout = 50;
 			else




More information about the asterisk-commits mailing list