[asterisk-users] Reading the CDR

Dan Journo dan at keshercommunications.com
Mon May 3 09:11:24 CDT 2010


>> I am diverting an incoming call to a mobile phone and a landline using the
>> following:-
>>
>> 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.
>>
>>
>>
>> The CDR only shows the full Dial() information, and not what the final
>> destination was.
>>
>>
>>
>> lastdata contains:
>> SIP/442080000000 at sipprovider&SIP/44700000000 at sipprovider|120|r
>>
>>
>>
>> How can i log which phone answered the diverted call?
>>

> I am 99% sure you will be able to catch this information in AMI. I
> didn't try with call diverts, but it says really alot.

Thanks for your reply.

Currently, I don’t use the AMI and I want to avoid running an extra process that monitors data from the AMI.

I'm looking for a solution that will record the final call information into the CDR.

Thanks
Dan



More information about the asterisk-users mailing list