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

2008-06-13 Thread Atis Lezdins
On Thu, Jun 12, 2008 at 10:51 PM, Sherwood McGowan
[EMAIL PROTECTED] wrote:
 Atis Lezdins wrote:
 On Thu, Jun 12, 2008 at 9:14 PM, Sherwood McGowan
 [EMAIL PROTECTED] wrote:

 Atis Lezdins wrote:

 On Thu, Jun 12, 2008 at 3:36 PM, Rizwan Hisham [EMAIL PROTECTED] 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 onuntill 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 :)

 Very helpful information :)

You're welcome :)

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,
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2008-06-12 Thread Rizwan Hisham
Hi all,
I have setup an asterisk system which:

   1. recieves incoming sip calls
   2. ask the caller the number they want to dial, and then dial that number
   3. 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.
   4. And so onuntill 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?
-- 
Best Regards
Rizwan Hisham
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

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

2008-06-12 Thread Atis Lezdins
On Thu, Jun 12, 2008 at 3:36 PM, Rizwan Hisham [EMAIL PROTECTED] 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 onuntill 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,
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2008-06-12 Thread Sherwood McGowan
Atis Lezdins wrote:
 On Thu, Jun 12, 2008 at 3:36 PM, Rizwan Hisham [EMAIL PROTECTED] 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 onuntill 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
[EMAIL PROTECTED]


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2008-06-12 Thread Atis Lezdins
On Thu, Jun 12, 2008 at 9:14 PM, Sherwood McGowan
[EMAIL PROTECTED] wrote:
 Atis Lezdins wrote:
 On Thu, Jun 12, 2008 at 3:36 PM, Rizwan Hisham [EMAIL PROTECTED] 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 onuntill 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,
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2008-06-12 Thread Sherwood McGowan
Atis Lezdins wrote:
 On Thu, Jun 12, 2008 at 9:14 PM, Sherwood McGowan
 [EMAIL PROTECTED] wrote:
   
 Atis Lezdins wrote:
 
 On Thu, Jun 12, 2008 at 3:36 PM, Rizwan Hisham [EMAIL PROTECTED] 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 onuntill 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 :)

Very helpful information :)

-- 
Sherwood McGowan
VoIP / Telecom Solutions
[EMAIL PROTECTED]


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users