[asterisk-users] multiple CDRs for one call (multiple dial attempts during one call)

Atis Lezdins atis at iq-labs.net
Thu Jun 12 13:24:02 CDT 2008


On Thu, Jun 12, 2008 at 9:14 PM, Sherwood McGowan
<sherwood.mcgowan at gmail.com> wrote:
> Atis Lezdins wrote:
>> On Thu, Jun 12, 2008 at 3:36 PM, Rizwan Hisham <rizwanhasham at gmail.com> wrote:
>>
>>> Hi all,
>>> I have setup an asterisk system which:
>>>
>>> recieves incoming sip calls
>>> ask the caller the number they want to dial, and then dial that number
>>> after the caller is done talking and callee hangsup or even if the callee
>>> does not answer the phone, the caller is asked for another number to dial.
>>> And so on....untill the caller hangsup
>>>
>>> Everthing above is working fine. But i dont know how to manipulate the cdr
>>> so that every outgoing call for he caller should be logged. I have looked
>>> into ForkCDR but it seems like it can only be used for transfers.
>>>
>>> Any ideas how i can solve my multiple cdr problem?
>>>
>>
>> ResetCDR(w)
>>
>> Regards,
>> Atis
>>
>>
> I'm not sure that would be a viable solution, the ResetCDR(w) app+option
> is only going to write the cdr and then zero it out, but the next time
> the write occurs wouldn't it just overwrite the existing record?

No, next time it will write new record from the point when ResetCDR was called.

I use it extensively for call event logging, for example:
* Call received to DID A, business hours detected.
* Call sent to IVR 1 for 15 seconds
* Call waited in queue 2 for 20 seconds

etc

Regards,
Atis

-- 
Atis Lezdins,
VoIP Project Manager / Developer,
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835



More information about the asterisk-users mailing list