|
|
@ -492,6 +492,8 @@ static int gtalk_answer(struct ast_channel *ast)
|
|
|
|
ast_debug(1, "Answer!\n");
|
|
|
|
ast_debug(1, "Answer!\n");
|
|
|
|
ast_mutex_lock(&p->lock);
|
|
|
|
ast_mutex_lock(&p->lock);
|
|
|
|
gtalk_invite(p, p->them, p->us,p->sid, 0);
|
|
|
|
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);
|
|
|
|
ast_mutex_unlock(&p->lock);
|
|
|
|
return res;
|
|
|
|
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;
|
|
|
|
tmp->hangupcause = AST_CAUSE_SWITCH_CONGESTION;
|
|
|
|
ast_hangup(tmp);
|
|
|
|
ast_hangup(tmp);
|
|
|
|
tmp = NULL;
|
|
|
|
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;
|
|
|
|
return tmp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|