[asterisk-dev] [Code Review] Add Congestion detail in CDR call logs when Congestion application is used.

Alec Davis sivad.a at paradise.net.nz
Tue Feb 2 13:46:41 CST 2010


Tend to disagree, there is a significant difference from a reporting point
of view, that an unanswered call is the same as a call that wasn't unable to
be delivered due to a congestion issue.

What do others think?

Alec Davis

-----Original Message-----
From: Terry Wilson [mailto:twilson at digium.com] 
Sent: Wednesday, 3 February 2010 6:47 a.m.
To: Russell Bryant
Cc: Alec Davis; Terry Wilson; Asterisk Developers
Subject: Re: [Code Review] Add Congestion detail in CDR call logs when
Congestion application is used.


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/454/#review1437
-----------------------------------------------------------


By default, Asterisk does not record unanswered calls in the CDR log. In
cdr.conf, if you set unanswered=yes, you will see a "NO ANSWER" result in
the cdr. If anything else was required, I would think that modifying
pbx_builtin_congestion to call ast_cdr_failed() would suffice as opposed to
adding a whole new CDR disposition.

- Terry


On 2010-01-07 12:45:17, Alec Davis wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/454/
> -----------------------------------------------------------
> 
> (Updated 2010-01-07 12:45:17)
> 
> 
> Review request for Asterisk Developers and Russell Bryant.
> 
> 
> Summary
> -------
> 
> Cuurently if the dialplan is designed for whatever reason to terminate a
call with the Congestion() application a CDR log is not recorded for that
call.
> 
> This adds that functionality.
> 
> 
> This addresses bug 15907.
>     https://issues.asterisk.org/view.php?id=15907
> 
> 
> Diffs
> -----
> 
>   trunk/include/asterisk/cdr.h 237965 
>   trunk/main/cdr.c 237965 
>   trunk/main/pbx.c 237965
> 
> Diff: https://reviewboard.asterisk.org/r/454/diff
> 
> 
> Testing
> -------
> 
> Tested and currently been in use with 1.6.1 branch.
> 
> Tested for functionality with trunk.
> 
> dialplan:
> exten => 2001,1,Congestion(0)
> exten => 2098,1,Playback(echo-test)
> 
> output: /var/log/asterisk/cdr-csv/Master.csv for 2 calls, first to
Playback application, 2nd to Congestion(). 
>
"","857","2098","phones","857","SIP/cisco4-00000000","","Playback","echo-tes
t","2010-01-06 20:47:45","2010-01-06 20:47:45","2010-01-06
20:47:47",2,2,"ANSWERED","DOCUMENTATION","1262764065.2",""
>
"","857","2001","phones","857","SIP/cisco4-00000000","","Congestion","0","20
10-01-06 20:50:09",,"2010-01-06
20:50:09",0,0,"CONGESTION","DOCUMENTATION","1262764209.0",""
> 
> 
> Thanks,
> 
> Alec
> 
>




More information about the asterisk-dev mailing list