[Asterisk-cvs] asterisk/channels chan_agent.c,1.112,1.113
markster at lists.digium.com
markster at lists.digium.com
Thu Feb 10 00:35:58 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv29452/channels
Modified Files:
chan_agent.c
Log Message:
Make agent support sending url (bug #3543)
Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -d -r1.112 -r1.113
--- chan_agent.c 8 Feb 2005 07:49:40 -0000 1.112
+++ chan_agent.c 10 Feb 2005 06:36:09 -0000 1.113
@@ -414,6 +414,17 @@
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;
@@ -816,6 +827,7 @@
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;
More information about the svn-commits
mailing list