mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +00:00
fix queue URL passing (bug #3543)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -379,6 +379,17 @@ static struct ast_frame *agent_read(struct ast_channel *ast)
|
||||
return f;
|
||||
}
|
||||
|
||||
static int agent_sendhtml(struct ast_channel *ast, int subclass, char *data, int datalen)
|
||||
{
|
||||
struct agent_pvt *p = ast->pvt->pvt;
|
||||
int res = -1;
|
||||
ast_mutex_lock(&p->lock);
|
||||
if (p->chan)
|
||||
res = ast_channel_sendhtml(p->chan, subclass, data, datalen);
|
||||
ast_mutex_unlock(&p->lock);
|
||||
return res;
|
||||
}
|
||||
|
||||
static int agent_write(struct ast_channel *ast, struct ast_frame *f)
|
||||
{
|
||||
struct agent_pvt *p = ast->pvt->pvt;
|
||||
@@ -748,6 +759,7 @@ static struct ast_channel *agent_new(struct agent_pvt *p, int state)
|
||||
tmp->pvt->answer = agent_answer;
|
||||
tmp->pvt->read = agent_read;
|
||||
tmp->pvt->write = agent_write;
|
||||
tmp->pvt->send_html = agent_sendhtml;
|
||||
tmp->pvt->exception = agent_read;
|
||||
tmp->pvt->indicate = agent_indicate;
|
||||
tmp->pvt->fixup = agent_fixup;
|
||||
|
Reference in New Issue
Block a user