[Asterisk-Users] Transferred calls CDRs

Domjan Attila adomjan at tvnet.hu
Sat Mar 26 20:01:03 MST 2005


Hi, 
when u have transferred call ${EXTEN} and ${DNID} is different.
from my dialplan:

....
....
exten => _[0-9*#].,3,GotoIf($[${EXTEN} != ${DNID}]?1000)
exten => _[0-9*#].,4,Goto(from-sip-user-2|${EXTEN}|1)
....
....
exten => _[0-9*#].,1000,SetVar(EXTENBACKUP)=${EXTEN})
exten => _[0-9*#].,1001,Goto(${DNID}|1002)
;avoid transfer and cf loop
exten => _[0-9*#].,1002,ExecIf($["${RDNIS}" != ""]|Hangup)
exten => _[0-9*#].,n,ForkCDR
exten => _[0-9*#].,n,AppendCDRUserField(RDNIS=${EXTEN}\;)
exten => _[0-9*#].,n,SetAccount(${ext_account})
;${ext_account} is previously set 
exten => _[0-9*#].,n,SetAMAFlags(billing)
exten => _[0-9*#].,n,Goto(from-sip-user-2|${EXTENBACKUP}|1)

On Sat, 2005-03-26 at 23:35 +0000, Filipe Murias wrote:
> Hello!
> 
> I have been doing some tests with call transfers and I have been looking at
> the CDRs that Asterisk generates.
> 
> Scenario 1:
> A calls B
> B answers and does a blind transfer to C (using # key)
> C answers and talks with A
> 
> Scenario 2:
> A calls B
> B answers and does an attended transfer do C (using the phone's transfer
> key)
> C answers, B hangs up, and C talks with A
> 
> For scenario 1, the CDR shows only one call between A and C for the whole
> duration of the call A->B and A->C.
> 
> For scenario 2, there are two CDRs, both between A and C. The first one has
> the duration of both calls and the second one has the duration of the second
> call (A->C).
> 
> Is this the correct behaviour ???
> 
> Shouldn't there be two CDRs for scenario 1 ?
> And for scenerio 2, the source and destination shouldn't be the same in both
> CDRs! The first CDR should be for the call A-B and the second for the call
> B-C. Does anybody agree ?
> 
> Please give me your feedback. If there is a way to change this, please tell
> me. I'm using Asterisk 1.0.7.
> 
> Thank you,
> 
> Filipe Múrias
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Domjan Attila <adomjan at tvnet.hu>




More information about the asterisk-users mailing list