[asterisk-bugs] [JIRA] (ASTERISK-21843) Failed Dial() in a call file does not post a CDR record

Richard Miller (JIRA) noreply at issues.asterisk.org
Wed May 29 07:55:03 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206870#comment-206870 ] 

Richard Miller commented on ASTERISK-21843:
-------------------------------------------

I am using both CDR and CEL logging.  However, the CDR is more concise and less verbose.
                
> Failed Dial() in a call file does not post a CDR record
> -------------------------------------------------------
>
>                 Key: ASTERISK-21843
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21843
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Functions/func_cdr
>    Affects Versions: 11.4.0
>            Reporter: Richard Miller
>         Attachments: func_cdr.patch
>
>
> Ordinarily, a failed Dial() will post a CDR for the last destination in dial list.  However, in a call file using a local channel and the G option to proceed in the dial plan after dialing (to run an AGI which talks to a database), no CDR is posted for a failed call.  This can be worked around by setting unanswered=yes in cdr.conf, but that has undesirable side effects.  One example is that when calling multiple locations in a single Dial(), all the the destinations which did not end up participating in the call also get a CDR posted.  The reason is that the calling leg of the Local channel does not have CDR(dstchannel) set to anything.  CDR(dstchannel) is currently a read-only property.  A patch to func_cdr.c allows setting CDR(dstchannel) when it is empty.  The dial plan can then use this feature in the error handler after a failed Dial().

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list