diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-10 22:11:27 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-10 22:11:27 +0000 |
commit | 4aa41272e2d0bd0793c40400f54cd670f3b786aa (patch) | |
tree | ed2b5794e019f009a0dac9690dd9dc54271ea728 /main | |
parent | 781d7e4c759e77a09f46eb36276cd981c541ccde (diff) |
Merged revisions 142474 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r142474 | murf | 2008-09-10 15:58:17 -0600 (Wed, 10 Sep 2008) | 30 lines
(closes issue #12318)
Reported by: krtorio
I made a small change to the code that handles local channel situations.
In that code, I copy the answer time from the peer cdr, to the bridge_cdr,
but I wasn't also copying the disposition from the peer cdr.
So, Now I copy the disposition, and I've tested against
these cases:
1. phone 1 never answers the phone; no cdr is generated at all.
this should show up as a manager command failure or something.
2. phone 2 never answers. CDR is generated, says NO ANSWER
3. phone 2 is busy. CDR is generated, says BUSY
4. phone 2 answers: CDR is generated, times are correct; disposition
is ANSWERED, which is correct. The start time is the time that
the manager dialed the first phone. The answer time is the time
the second phone picks up.
I purposely left the cid and src fields blank; since this call really
originates from the manager, there is no 'easy' data to put in these
fields. If you feel strongly that these fields should be filled in,
re-open this bug and I'll dig further.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@142475 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/features.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/features.c b/main/features.c index e81a24f59..c2c2ee9b3 100644 --- a/main/features.c +++ b/main/features.c @@ -2162,6 +2162,8 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast if (peer->cdr && !ast_tvzero(peer->cdr->answer)) { bridge_cdr->answer = peer->cdr->answer; chan->cdr->answer = peer->cdr->answer; + bridge_cdr->disposition = peer->cdr->disposition; + chan->cdr->disposition = peer->cdr->disposition; } else { ast_cdr_answer(bridge_cdr); ast_cdr_answer(chan->cdr); /* for the sake of cli status checks */ |