[Asterisk-cvs] asterisk/channels chan_agent.c,1.109,1.110
markster at lists.digium.com
markster at lists.digium.com
Tue Feb 1 01:08:35 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv22340/channels
Modified Files:
chan_agent.c
Log Message:
Fix agent moh issue (bug #3383)
Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- chan_agent.c 30 Jan 2005 06:55:10 -0000 1.109
+++ chan_agent.c 1 Feb 2005 07:09:56 -0000 1.110
@@ -552,6 +552,8 @@
if (recordagentcalls)
agent_start_monitoring(ast,0);
p->acknowledged = 1;
+ if (p->chan)
+ p->chan->_bridge = ast;
}
res = 0;
}
@@ -759,13 +761,16 @@
{
struct agent_pvt *p;
struct ast_channel *ret=NULL;
+
p = bridge->pvt->pvt;
if (chan == p->chan)
ret = bridge->_bridge;
else if (chan == bridge->_bridge)
ret = p->chan;
- return NULL;
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Asked for bridged channel on '%s'/'%s', returning '%s'\n", chan->name, bridge->name, ret ? ret->name : "<none>");
+ return ret;
}
/*--- agent_new: Create new agent channel ---*/
More information about the svn-commits
mailing list