Merge pull request #95 in FS/freeswitch from ~ITALOROSSI/freeswitch:master to master

* commit 'f87c335e8a49da7b0a2b6f19b45f285f6355e2e0':
  Only waiting for agent channel to hangup.
This commit is contained in:
Mike Jerris 2014-11-19 15:32:19 -06:00
commit 74f243bc3b
1 changed files with 2 additions and 2 deletions

View File

@ -1730,8 +1730,8 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa
/* This is used for the waiting caller to quit waiting for a agent */ /* This is used for the waiting caller to quit waiting for a agent */
switch_channel_set_variable(member_channel, "cc_agent_found", "true"); switch_channel_set_variable(member_channel, "cc_agent_found", "true");
/* Wait until the member hangup or the agent hangup. This will quit also if the agent transfer the call */ /* Wait until the agent hangup. This will quit also if the agent transfer the call */
while(switch_channel_up(member_channel) && switch_channel_up(agent_channel) && globals.running) { while(switch_channel_up(agent_channel) && globals.running) {
switch_yield(100000); switch_yield(100000);
} }
tiers_state = CC_TIER_STATE_READY; tiers_state = CC_TIER_STATE_READY;