[Home]

Summary:ASTERISK-14858: billsec not 0 for NO ANSWER calls
Reporter:Daniel Harper (dharper)Labels:
Date Opened:2009-09-22 00:45:53Date Closed:2011-06-07 14:08:11
Priority:MinorRegression?No
Status:Closed/CompleteComponents:CDR/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:billsec is not 0 when a call is not answered.

ie the timeout is set to 25 on the dial command. cdr duration for a NO ANSWER call is 27, billsec is 26. billsec should be 0.

We are using the cdr_addon_mysql as our cdr backend (from asterisk-addons-1.4.8)

Comments:By: Tilghman Lesher (tilghman) 2009-09-22 02:38:49

What kind of channel are you using?  I'd really like to see the console log for this call.

By: Daniel Harper (dharper) 2009-09-22 23:46:07

Call is placed through an AMI Originate on a "Local" channel ....

Connected to Asterisk 1.4.26 currently running on dialer1 (pid = 29066)
Verbosity is at least 10
Core debug is at least 10
   -- Executing [8014@tcg-queue:1] Queue("Local/8014@tcg-queue-da4d,2", "8014") in new stack
   -- Music class  requested but no musiconhold loaded.
   -- agent_call, call to agent '8014' call on 'SIP/132-b80b8240'
   -- <SIP/132-b80b8240> Playing 'beep' (language 'en')
   -- Agent/8014 answered Local/8014@tcg-queue-da4d,2
      > Channel Local/8014@tcg-queue-da4d,1 was answered.
   -- Executing [00150395319428@tcg-outbound-var:1] NoOp("Local/8014@tcg-queue-da4d,1", "tremayne-advdial-pri-var|0395319428|15") in new stack
   -- Executing [00150395319428@tcg-outbound-var:2] Macro("Local/8014@tcg-queue-da4d,1", "tremayne-advdial-pri-var|0395319428|15") in new stack
   -- Executing [s@macro-tremayne-advdial-pri-var:1] NoOp("Local/8014@tcg-queue-da4d,1", "PRI-Var-Macro-0395319428-15") in new stack
   -- Executing [s@macro-tremayne-advdial-pri-var:2] Dial("Local/8014@tcg-queue-da4d,1", "DAHDI/g1/18320395319428|15|g") in new stack
   -- Requested transfer capability: 0x00 - SPEECH
   -- Called g1/18320395319428
   -- Local/8014@tcg-queue-da4d,1 requested special control 20, passing it to DAHDI/1-1
   -- DAHDI/1-1 is proceeding passing it to Local/8014@tcg-queue-da4d,1
   -- Local/8014@tcg-queue-da4d,1 requested special control 20, passing it to DAHDI/1-1
   -- Local/8014@tcg-queue-da4d,1 requested special control 20, passing it to DAHDI/1-1
   -- DAHDI/1-1 is ringing
   -- Local/8014@tcg-queue-da4d,1 requested special control 20, passing it to DAHDI/1-1
   -- Local/8014@tcg-queue-da4d,1 requested special control 20, passing it to DAHDI/1-1
   -- Nobody picked up in 15000 ms
   -- Hungup 'DAHDI/1-1'
   -- Executing [s@macro-tremayne-advdial-pri-var:3] NoOp("Local/8014@tcg-queue-da4d,1", "Got Dialstatus NOANSWER") in new stack
   -- Executing [s@macro-tremayne-advdial-pri-var:4] UserEvent("Local/8014@tcg-queue-da4d,1", "DialCompleteEx|Account: ProjectNotSet^SIP/132^0395319428^NOANSWER^0") in new stack
   -- Executing [s@macro-tremayne-advdial-pri-var:5] Set("Local/8014@tcg-queue-da4d,1", "CDR(userfield)=hangupcause:0^dialstatus:NOANSWER") in new stack
   -- Executing [s@macro-tremayne-advdial-pri-var:6] Hangup("Local/8014@tcg-queue-da4d,1", "") in new stack
 == Spawn extension (tcg-outbound-var, 00150395319428, 2) exited non-zero on 'Local/8014@tcg-queue-da4d,1'
   -- Music class default requested but no musiconhold loaded.
 == Spawn extension (tcg-queue, 8014, 1) exited non-zero on 'Local/8014@tcg-queue-da4d,2'

CDR from MYSQL ....

| calldate            | clid    | src | dst            | dcontext         | channel                     | dstchannel | lastapp | lastdata                      | duration | billsec | disposition | amaflags | accountcode   | uniqueid | userfield | cdrid  | cdrmed |
| 2009-09-23 14:38:17 | SIP/132                          |           | 00150395319428 | tcg-outbound-var | Local/8014@tcg-queue-da4d,1    | DAHDI/1-1  | Hangup  |                               |       16 |      15 | ANSWERED    |        3 | ProjectNotSet |          | hangupcause:0^dialstatus:NOANSWER    | 495676 |      0 |

Also isn't disposition is ANSWER instead of NOANSWER (ie $DIALSTATUS)?