[asterisk-commits] phsultan: trunk r247500 - in /trunk: CHANGES res/res_jabber.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 18 10:34:16 CST 2010


Author: phsultan
Date: Thu Feb 18 10:34:08 2010
New Revision: 247500

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=247500
Log:
Add a new manager event for our buddies status.

The new JabberStatus event gives a concise view of the status change to the AMI
clients. Thanks fiddur!

(closes issue #16760)
Reported by: fiddur
Patches:
      244498.2.diff uploaded by fiddur (license 678)
Tested by: fiddur, phsultan

Modified:
    trunk/CHANGES
    trunk/res/res_jabber.c

Modified: trunk/CHANGES
URL: http://svnview.digium.com/svn/asterisk/trunk/CHANGES?view=diff&rev=247500&r1=247499&r2=247500
==============================================================================
--- trunk/CHANGES (original)
+++ trunk/CHANGES Thu Feb 18 10:34:08 2010
@@ -339,6 +339,8 @@
  * The redirect command now has new parameters ExtraContext, ExtraExtension, 
    and ExtraPriority to allow redirecting the second channel to a different
    location than the first.
+ * Added new event "JabberStatus" in the Jabber module to monitor buddies
+   status.
 
 Channel Event Logging
 ---------------------

Modified: trunk/res/res_jabber.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_jabber.c?view=diff&rev=247500&r1=247499&r2=247500
==============================================================================
--- trunk/res/res_jabber.c (original)
+++ trunk/res/res_jabber.c Thu Feb 18 10:34:08 2010
@@ -2394,6 +2394,12 @@
 	default:
 		ast_debug(3, "JABBER: Kinky! how did that happen %i\n", pak->show);
 	}
+
+	manager_event(EVENT_FLAG_USER, "JabberStatus",
+			"Account: %s\r\nJID: %s\r\nResource: %s\r\nStatus: %d\r\nPriority: %d"
+			"\r\nDescription: %s\r\n",
+			client->name, pak->from->partial, found->resource, found->status,
+			found->priority, found->description);
 }
 
 /*!




More information about the asterisk-commits mailing list