This is where tha patch was applied in apps/app_queue.c
1574 if (res) {
1575 /* Again, keep going even if there's an error */
1576 if (option_debug)
1577 ast_log(LOG_DEBUG, "ast call on peer returned %d\n", res);
1578 if (option_verbose > 2)
1579 ast_verbose(VERBOSE_PREFIX_3 "Couldn't call %s\n", tmp->interface);
1580 ast_hangup(tmp->chan);
1581 tmp->chan = NULL;
1582 tmp->stillgoing = 0;
1583 (*busies)++;
1584 return 0;
1585 } else {
1586 if ( qe->parent->strategy != QUEUE_STRATEGY_RINGALL ) {
1587 ast_queue_log(qe->parent->name, qe->chan->uniqueid, tmp->interface, "AGENTATTEMPT", "");
1588 }
1589
1590 if (qe->parent->eventwhencalled) {
1591 manager_event(EVENT_FLAG_AGENT, "AgentCalled",
1592 "AgentCalled: %s\r\n"
1593 "ChannelCalling: %s\r\n"
1594 "CallerID: %s\r\n"
1595 "CallerIDName: %s\r\n"
1596 "Context: %s\r\n"
1597 "Extension: %s\r\n"
1598 "Priority: %d\r\n",
1599 tmp->interface, qe->chan->name,
1600 tmp->chan->cid.cid_num ? tmp->chan->cid.cid_num : "unknown",
1601 tmp->chan->cid.cid_name ? tmp->chan->cid.cid_name : "unknown",
1602 qe->chan->context, qe->chan->exten, qe->chan->priority);
1603 }
and this is an extract of queue_log
1193735323|1193735294.133081|7006|NONE|ENTERQUEUE||$CLIENT_CLID
1193735391|1193735294.133081|7006|Local/705@from-internal/n|AGENTATTEMPT|
1193735392|1193735294.133081|7006|Local/708@from-internal/n|AGENTATTEMPT|
1193735397|1193735294.133081|7006|Local/708@from-internal/n|AGENTATTEMPT|
1193735397|1193735294.133081|7006|Local/705@from-internal/n|AGENTATTEMPT|
1193735406|1193735294.133081|7006|Local/708@from-internal/n|AGENTATTEMPT|
1193735407|1193735294.133081|7006|Local/705@from-internal/n|AGENTATTEMPT|
1193735412|1193735294.133081|7006|Local/708@from-internal/n|AGENTATTEMPT|
1193735412|1193735294.133081|7006|Local/705@from-internal/n|AGENTATTEMPT|
1193735422|1193735294.133081|7006|Local/708@from-internal/n|AGENTATTEMPT|
1193735422|1193735294.133081|7006|Local/705@from-internal/n|AGENTATTEMPT|
1193735427|1193735294.133081|7006|Local/708@from-internal/n|AGENTATTEMPT|
1193735427|1193735294.133081|7006|Local/705@from-internal/n|AGENTATTEMPT|
1193735437|1193735294.133081|7006|Local/708@from-internal/n|AGENTATTEMPT|
1193735437|1193735294.133081|7006|Local/705@from-internal/n|AGENTATTEMPT|
1193735442|1193735294.133081|7006|Local/708@from-internal/n|AGENTATTEMPT|
1193735442|1193735294.133081|7006|Local/705@from-internal/n|AGENTATTEMPT|
1193735447|1193735294.133081|7006|NONE|EXITWITHTIMEOUT|1
705 and 708 where the only two agents logged in the queue 7006 and both of them were talking.