mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-25 22:18:07 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@247500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -339,6 +339,8 @@ Asterisk Manager Interface
|
|||||||
* The redirect command now has new parameters ExtraContext, ExtraExtension,
|
* The redirect command now has new parameters ExtraContext, ExtraExtension,
|
||||||
and ExtraPriority to allow redirecting the second channel to a different
|
and ExtraPriority to allow redirecting the second channel to a different
|
||||||
location than the first.
|
location than the first.
|
||||||
|
* Added new event "JabberStatus" in the Jabber module to monitor buddies
|
||||||
|
status.
|
||||||
|
|
||||||
Channel Event Logging
|
Channel Event Logging
|
||||||
---------------------
|
---------------------
|
||||||
|
|||||||
@@ -2394,6 +2394,12 @@ static void aji_handle_presence(struct aji_client *client, ikspak *pak)
|
|||||||
default:
|
default:
|
||||||
ast_debug(3, "JABBER: Kinky! how did that happen %i\n", pak->show);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
Reference in New Issue
Block a user