[asterisk-bugs] [JIRA] (ASTERISK-21843) Failed Dial() in a call file does not post a CDR record
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Fri May 31 15:23:04 CDT 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-21843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rusty Newton closed ASTERISK-21843.
-----------------------------------
Resolution: Not A Bug
Closing out in regards to Mjordan's comments. We won't change CDR behavior any further in the currently supported branches and it won't apply to CDR in 12.
@Richard Miller, despite this not working out for inclusion, thanks for reporting and providing a patch!
> 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