[asterisk-users] CDR and transfers! :(

Raúl Gómez C. nachogomez at gmail.com
Tue Apr 15 15:51:19 CDT 2008


Hi list,

I've been reading the archives and I know that transfers are unimplemented
in the CDR (
http://lists.digium.com/pipermail/asterisk-users/2007-June/189902.html)

In my case I'm running Asterisk 1.4.17 as an Office PBX. In this setup just
a small group of users are able to make long distance call directly from
his/her extension, so the ones who can't needs to ask the
operator/receptionist to call these numbers and then transfer (almost always
atxfer) the call back to them.

In this case, I want to account the whole call duration to the user that
have requested it, not the operator, but I cannot manage to find a way to
map the CDR generated by the operator with the CDR generated by the
transfer.

This is an example of the generated CDRs by atxfer:

John Doe make a long distance call, talk a few seconds and then make an
attended transfer to extension 128.

"John Doe <111>","111","128","SIP/128-0071d340","2008-04-15
14:31:31","2008-04-15 14:31:32","2008-04-15
14:31:41","10","9","ANSWERED","1208286068.2256"
"John Doe <111>","111","902125555555","Zap/4-1","2008-04-15
14:31:08","2008-04-15 14:31:14","2008-04-15
14:31:41","33","27","ANSWERED","1208286068.2255"
"111","111","s","","2008-04-15 14:31:08","2008-04-15 14:31:14","2008-04-15
14:31:41","33","27","ANSWERED","1208286068.2256"
"111","111","s","Zap/4-1","2008-04-15 14:31:31","2008-04-15
14:31:32","2008-04-15 14:31:47","16","15","ANSWERED","1208286091.2260"


This is an example of the generated CDRs by blind xfer:

John Doe make a long distance call, talk a few seconds and then make a blind
transfer to extension 128.

"John Doe <111>","111","904124172996","Zap/6-1","2008-04-11
13:10:48","2008-04-11 13:10:55","2008-04-11
13:11:13","25","18","ANSWERED","1207935648.5256"
"111","111","128","SIP/128-006fec80","2008-04-11 13:11:13","2008-04-11
13:11:22","2008-04-11 13:11:32","19","10","ANSWERED","1207935673.5258"

In this case I think you can guess the "uniqueid" of the transferred call by
adding the call duration (25 in this example) made by John Doe to the
"uniqueid" of the same call, but that's not the case in the atxfer scenario.

I think this is a very common scenario so, how are you doing to handle this
situation???


-- 
Raul Gomez
Linux Counter #156439
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080416/ef779769/attachment-0001.htm 


More information about the asterisk-users mailing list