[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 10:23:04 CDT 2013


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

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

Thank you for your explanation.

The patch does not allow you to modify a record where the dstchannel is already populated.  It is not intended to abuse the CDR posting mechanism.  The patch works for me in this particular situation.  If it does not make it into production releases, I can live with maintaining this patch for myself.  I am using this in a production environment and am not ready to experiment with a beta version of 12 at this time.


                
> 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