diff options
author | phsultan <phsultan@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-18 16:34:08 +0000 |
---|---|---|
committer | phsultan <phsultan@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-18 16:34:08 +0000 |
commit | fbea4f8872e08ad3688774eb88d5e00f854c46ef (patch) | |
tree | a1ad3218a414badb604dafef9093cb6deb06d085 /res/res_jabber.c | |
parent | 3fbc021972b84cbd0f6afa77e7823a3f057a73db (diff) |
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
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@247500 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_jabber.c')
-rw-r--r-- | res/res_jabber.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } /*! |