mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Manager events from the "moremanager" branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -492,6 +492,8 @@ static int gtalk_answer(struct ast_channel *ast)
|
||||
ast_debug(1, "Answer!\n");
|
||||
ast_mutex_lock(&p->lock);
|
||||
gtalk_invite(p, p->them, p->us,p->sid, 0);
|
||||
manager_event(EVENT_FLAG_SYSTEM, "ChannelUpdate", "Channel: %s\r\nChanneltype: %s\r\nGtalk-SID: %s\r\n",
|
||||
ast->name, "GTALK", p->sid);
|
||||
ast_mutex_unlock(&p->lock);
|
||||
return res;
|
||||
}
|
||||
@@ -1003,8 +1005,11 @@ static struct ast_channel *gtalk_new(struct gtalk *client, struct gtalk_pvt *i,
|
||||
tmp->hangupcause = AST_CAUSE_SWITCH_CONGESTION;
|
||||
ast_hangup(tmp);
|
||||
tmp = NULL;
|
||||
} else {
|
||||
manager_event(EVENT_FLAG_SYSTEM, "ChannelUpdate",
|
||||
"Channel: %s\r\nChanneltype: %s\r\nGtalk-SID: %s\r\n",
|
||||
i->owner ? i->owner->name : "", "Gtalk", i->sid);
|
||||
}
|
||||
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user