]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 211957 via svnmerge from
authorMatthew Nicholson <mnicholson@digium.com>
Wed, 12 Aug 2009 23:16:20 +0000 (23:16 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Wed, 12 Aug 2009 23:16:20 +0000 (23:16 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
  r211957 | mnicholson | 2009-08-12 18:14:36 -0500 (Wed, 12 Aug 2009) | 17 lines

  Merged revisions 211953 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r211953 | mnicholson | 2009-08-12 18:04:02 -0500 (Wed, 12 Aug 2009) | 10 lines

    This patch adds additional checking when generating queue log TRANSFER events.

    The additional checks prevent generation of false TRANSFER events in certain situations.

    (closes issue #14536)
    Reported by: aragon
    Patches:
          queue-log-xfer-fix1.diff uploaded by mnicholson (license 96)
    Tested by: aragon, mnicholson
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@211958 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 5f12fb668e533286d1d1ca39582d519657daaa5d..71526a9cf1a7fc69a75217e1a446a1199fd0a027 100644 (file)
@@ -4020,7 +4020,9 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
                ast_channel_lock(qe->chan);
                if (!attended_transfer_occurred(qe->chan)) {
                        struct ast_datastore *tds;
-                       if (strcasecmp(oldcontext, qe->chan->context) || strcasecmp(oldexten, qe->chan->exten)) {
+
+                       /* detect a blind transfer */
+                       if (!(qe->chan->_softhangup | peer->_softhangup) && (strcasecmp(oldcontext, qe->chan->context) || strcasecmp(oldexten, qe->chan->exten))) {
                                ast_queue_log(queuename, qe->chan->uniqueid, member->membername, "TRANSFER", "%s|%s|%ld|%ld|%d",
                                        qe->chan->exten, qe->chan->context, (long) (callstart - qe->start),
                                        (long) (time(NULL) - callstart), qe->opos);