summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--res/res_jabber.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index f430a7bb1..05c744292 100644
--- a/CHANGES
+++ b/CHANGES
@@ -339,6 +339,8 @@ Asterisk Manager Interface
* 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
---------------------
diff --git a/res/res_jabber.c b/res/res_jabber.c
index ced9ea973..79e31c6e3 100644
--- a/res/res_jabber.c
+++ b/res/res_jabber.c
@@ -2394,6 +2394,12 @@ static void aji_handle_presence(struct aji_client *client, ikspak *pak)
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);
}
/*!