[asterisk-bugs] [JIRA] (ASTERISK-22060) Assertion triggered in CDR code when called channel is redirected using AMI
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Sat Jul 13 15:32:03 CDT 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-22060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207947#comment-207947 ]
Matt Jordan commented on ASTERISK-22060:
----------------------------------------
There's two problems here:
# The way I'm doing dial handling in CDRs is over-complicated and prone to failure. If A dials B, A should always be Party A and B should always Party B. Right now, if some channel flags stick around or otherwise not what we expect, the ordering of A/B in the CDR can swap between Dial Begin and Dial End - which results in the FRACK.
# Somehow, when a channel leaves a bridge due to an externally initiated transfer (which an AMI Redirect counts as - but I've also reproduced this with a SIP Blind Transfer), the channel's flags are set such that {{ast_check_hangup}} thinks the channel is hung up. This prevents the "am I an outbound channel who was dialed" flag from being removed from the channel - so we still think it's an outbound channel even when it now has a PBX thread and is executing dialplan.
> Assertion triggered in CDR code when called channel is redirected using AMI
> ---------------------------------------------------------------------------
>
> Key: ASTERISK-22060
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-22060
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: CDR/General
> Affects Versions: 12
> Reporter: Mark Michelson
> Attachments: cdr.txt
>
>
> I can reliably trigger an assertion in CDR code by performing an AMI redirect of a called party.
> My scenario is as follows:
> # Alice places a call to Bob
> # Bob answers the call from Alice
> # An AMI Redirect action is issued to redirect Bob to 6000 at defuault, priority 1.
> # The redirection causes Carol's phone to ring.
> # When Carol answers the call, the assertion is triggered.
> I am including CDR debug of the issue as an attachment.
--
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