[Home]

Summary:ASTERISK-30497: ChannelRedirect aborting hangup handler execution
Reporter:Egil Hjelmeland (hjelmis)Labels:
Date Opened:2023-04-19 03:31:08Date Closed:
Priority:MinorRegression?
Status:Triage/NewComponents:Applications/app_channelredirect
Versions:18.17.0 Frequency of
Occurrence
Frequent
Related
Issues:
Environment:Attachments:
Description:A ChannelRedirect on a channel that is in the process of hanging up can prevent hangup handler on the channel to complete. I believe this is a bug.

I improved the situation for our part with the following patch

<inline patch removed>

Not sure if this is the right upstream fix for the problem.

Background: For my employer I have been crafting a queuing application to our liking through dialplan programming, relying heavily on ChannelRedirect to manipulate queue call legs, func_odbc to keep track of call(_leg) states, and hangup handlers to clean up call(_leg) records in the database.
Comments:By: Asterisk Team (asteriskteam) 2023-04-19 03:31:11.970-0500

WARNING

JIRA will be going read-only at the end of April, 2023. We will be starting fresh on Github at https://github.com/asterisk/asterisk at that time. No issues or patches will be copied to Github. If you file an issue on JIRA at this time you will need to recreate it on Github after this date. The same applies if you have a patch.

WARNING

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Joshua C. Colp (jcolp) 2023-04-19 03:36:22.383-0500

Inline patches are not accepted. Contributions must have a valid license agreement. We are also moving to Github at the end of the month, so it is suggested to wait until then to submit things. You will also have to sign a license agreement then.

By: Egil Hjelmeland (hjelmis) 2023-04-19 03:41:40.921-0500

OK. A quick feedback on whether the patch makes sense would be nice though, so I don't waste my my time on something that will be rejected.

By: Joshua C. Colp (jcolp) 2023-04-19 03:44:20.462-0500

I can not look at unlicensed code.