mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +00:00
Fix JabberEvents
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60986 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -434,7 +434,9 @@ static int aji_send_exec(struct ast_channel *chan, void *data)
|
|||||||
static void aji_log_hook(void *data, const char *xmpp, size_t size, int is_incoming)
|
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);
|
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 (client->debug) {
|
||||||
if (is_incoming)
|
if (is_incoming)
|
||||||
|
|||||||
Reference in New Issue
Block a user