[asterisk-users] Reading the CDR

Philipp von Klitzing klitzing at pool.informatik.rwth-aachen.de
Mon May 3 09:25:44 CDT 2010


Hi!

> exten => 
> 0203000000,3,Dial(SIP/442080000000 at sipprovider&SIP/44700000000 at sipprovider
> ,120,r)
> 
> For billing purposes, i need to be able to work out whether the diverted
> call was answered by the mobile or whether it was answered by the
> landline.
> 
> How can i log which phone answered the diverted call?

A couple of suggestions:

- use Dial(Local/fixed&Local/mobile), i.e. use Local channels
- you could also consider the M() option to Dial together with the CDR 
userfield for logging whatever channel variable make sense to you
- have you looked at the destination channel in the CDR?

Philipp




More information about the asterisk-users mailing list