Asterisk
  1. Asterisk
  2. ASTERISK-7628

CDR(billsec), CDR(calldate), CDR(duration), CDR(end) are not available in dialplan or AGI

    Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Target Release Version/s: None
    • Component/s: Core/General
    • Labels:
      None
    • Mantis ID:
      7832
    • Regression:
      No

      Description

      These CDR variables are not available in the dialplan or in an AGI.

      calldate should always be available. billsec and duration should also, but it could be argued that it may be misleading since the call has not ended.

      All should be available to dialplan steps in the "h" extension including AGI's called with deadagi().

      My agi, called from the "h" extension by deadagi() writes my CDR's.

        Activity

        Hide
        Thiago Maluf added a comment -

        Send your config file (extensions.conf) to see your bug

        Show
        Thiago Maluf added a comment - Send your config file (extensions.conf) to see your bug
        Hide
        Russell Bryant added a comment -

        This issue has already been addressed. In Asterisk 1.4, you will have the following option in cdr.conf:

        ; Normally, CDR's are not closed out until after all extensions are finished
        ; executing. By enabling this option, the CDR will be ended before executing
        ; the "h" extension so that CDR values such as "end" and "billsec" may be
        ; retrieved inside of of this extension.
        ;endbeforehexten=no

        This change was not included in the 1.2 series as it is a new feature and a change of behavior that not everyone would want.

        Show
        Russell Bryant added a comment - This issue has already been addressed. In Asterisk 1.4, you will have the following option in cdr.conf: ; Normally, CDR's are not closed out until after all extensions are finished ; executing. By enabling this option, the CDR will be ended before executing ; the "h" extension so that CDR values such as "end" and "billsec" may be ; retrieved inside of of this extension. ;endbeforehexten=no This change was not included in the 1.2 series as it is a new feature and a change of behavior that not everyone would want.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development