mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Fix agent moh issue (bug #3383)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -552,6 +552,8 @@ static int agent_call(struct ast_channel *ast, char *dest, int timeout)
|
||||
if (recordagentcalls)
|
||||
agent_start_monitoring(ast,0);
|
||||
p->acknowledged = 1;
|
||||
if (p->chan)
|
||||
p->chan->_bridge = ast;
|
||||
}
|
||||
res = 0;
|
||||
}
|
||||
@@ -759,13 +761,16 @@ static struct ast_channel *agent_bridgedchannel(struct ast_channel *chan, struct
|
||||
{
|
||||
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 ---*/
|
||||
|
Reference in New Issue
Block a user