Hi,
Been trying to wrap my head around this one, and just not getting it (possibly too tired, brain no likey)…
Asterisk 11 with FPBX 2.11
Manager has a perl script which does some analysis on call records, he is interesting in only inbound/outbound external calls, and internal on-net calls get ignored.
The problem I have is that the CDR records generated for a blind xfer versus an attended xfer are different. Here’s an example;
Attended xfer to extension
"0429123456",“222”,“21”,“17”,“ANSWERED”,"2015-06-03 15:05:56"
“222”,“225”,“14”,“11”,“ANSWERED”,“2015-06-03 15:06:08”
Blind xfer to extension
"0429123456",“222”,“9”,“7”,“ANSWERED”,"2015-06-03 15:08:54"
“0429123456”,“225”,“11”,“8”,“ANSWERED”,“2015-06-03 15:09:04”
So, as we can see in an attended xfer, call comes into 222 (reception), then 222 does an attended xfer to 225. Because the second part of the call generates a CDR showing the call from 222 - 225, this is ultimately disregarded as an on-net call.
Looking at the blind xfer, we see the CDR behaviour which is desirable - you can see the call come into 222 then you can also see the external call connected to 225 - thus, the stats reflect that 225 took an external inbound call.
Is it possible to get the CDR’s for an attended xfer to actually show the real connected party CID, instead of showing the CID of the internal extension which initiated the xfer?