[asterisk-commits] oej: trunk r60986 - /trunk/res/res_jabber.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Apr 9 11:13:31 MST 2007
Author: oej
Date: Mon Apr 9 13:13:30 2007
New Revision: 60986
URL: http://svn.digium.com/view/asterisk?view=rev&rev=60986
Log:
Fix JabberEvents
Modified:
trunk/res/res_jabber.c
Modified: trunk/res/res_jabber.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_jabber.c?view=diff&rev=60986&r1=60985&r2=60986
==============================================================================
--- trunk/res/res_jabber.c (original)
+++ trunk/res/res_jabber.c Mon Apr 9 13:13:30 2007
@@ -434,7 +434,9 @@
static void aji_log_hook(void *data, const char *xmpp, size_t size, int is_incoming)
{
struct aji_client *client = ASTOBJ_REF((struct aji_client *) data);
- manager_event(EVENT_FLAG_USER, "JabberEvent", "Account: %s\r\nPacket: %s\r\n", client->name, xmpp);
+
+ if (!ast_strlen_zero(xmpp))
+ manager_event(EVENT_FLAG_USER, "JabberEvent", "Account: %s\r\nPacket: %s\r\n", client->name, xmpp);
if (client->debug) {
if (is_incoming)
More information about the asterisk-commits
mailing list