Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
atis at iq-labs.net
Guest





PostPosted: Thu Jun 12, 2008 7:40 am    Post subject: [asterisk-users] multiple CDRs for one call (multiple dial a Reply with quote

On Thu, Jun 12, 2008 at 3:36 PM, Rizwan Hisham <rizwanhasham at gmail.com> wrote:
Quote:
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

--
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
Back to top
sherwood.mcgowan at gm...
Guest





PostPosted: Thu Jun 12, 2008 1:14 pm    Post subject: [asterisk-users] multiple CDRs for one call (multiple dial a Reply with quote

Atis Lezdins wrote:
Quote:
On Thu, Jun 12, 2008 at 3:36 PM, Rizwan Hisham <rizwanhasham at gmail.com> wrote:

Quote:
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?

I believe that ForkCDR is the solution:
ForkCDR


Synopsis

Forks the Call Data Record

ForkCDR()

Causes the Call Data Record to fork an additional cdr record starting
from the time of the fork call.


Description

Fork The CDR into 2 separate entities.

--
Sherwood McGowan
VoIP / Telecom Solutions
sherwood.mcgowan at gmail.com
Back to top
atis at iq-labs.net
Guest





PostPosted: Thu Jun 12, 2008 1:24 pm    Post subject: [asterisk-users] multiple CDRs for one call (multiple dial a Reply with quote

On Thu, Jun 12, 2008 at 9:14 PM, Sherwood McGowan
<sherwood.mcgowan at gmail.com> wrote:
Quote:
Atis Lezdins wrote:
Quote:
On Thu, Jun 12, 2008 at 3:36 PM, Rizwan Hisham <rizwanhasham at gmail.com> wrote:

Quote:
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
Back to top
sherwood.mcgowan at gm...
Guest





PostPosted: Thu Jun 12, 2008 2:51 pm    Post subject: [asterisk-users] multiple CDRs for one call (multiple dial a Reply with quote

Atis Lezdins wrote:
Quote:
On Thu, Jun 12, 2008 at 9:14 PM, Sherwood McGowan
<sherwood.mcgowan at gmail.com> wrote:

Quote:
Atis Lezdins wrote:

Quote:
On Thu, Jun 12, 2008 at 3:36 PM, Rizwan Hisham <rizwanhasham at gmail.com> wrote:


Quote:
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


Ah thanks Atis! I hadn't played with it before since the documentation
gave info that lead me to believe it wouldn't work for me Smile

Very helpful information Smile

--
Sherwood McGowan
VoIP / Telecom Solutions
sherwood.mcgowan at gmail.com
Back to top
atis at iq-labs.net
Guest





PostPosted: Fri Jun 13, 2008 7:50 am    Post subject: [asterisk-users] multiple CDRs for one call (multiple dial a Reply with quote

On Thu, Jun 12, 2008 at 10:51 PM, Sherwood McGowan
<sherwood.mcgowan at gmail.com> wrote:
Quote:
Atis Lezdins wrote:
Quote:
On Thu, Jun 12, 2008 at 9:14 PM, Sherwood McGowan
<sherwood.mcgowan at gmail.com> wrote:

Quote:
Atis Lezdins wrote:

Quote:
On Thu, Jun 12, 2008 at 3:36 PM, Rizwan Hisham <rizwanhasham at gmail.com> wrote:


Quote:
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


Ah thanks Atis! I hadn't played with it before since the documentation
gave info that lead me to believe it wouldn't work for me Smile

Very helpful information Smile

You're welcome Smile

Oh, btw, you will definitely need to enable unanswered = yes in
cdr.conf as after ResetCDR new entry has disposition NO ANSWER, even
if call is answered before. So without this you could loose them.

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services