[Home]

Summary:ASTERISK-29234: Queue Gosub option runs before channels are bridged
Reporter:Bill Kervaski (bkervaski)Labels:
Date Opened:2021-01-05 12:55:26.000-0600Date Closed:2021-01-05 13:17:18.000-0600
Priority:MinorRegression?Yes
Status:Closed/CompleteComponents:Applications/app_queue
Versions:18.1.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:LinuxAttachments:
Description:The Queue docs state for the gosub option:

gosub - Will run a gosub on the called party’s channel (the queue member) once the parties are connected. The subroutine execution starts in the named context at the s exten and priority 1.

However, when using a gosub the CLI shows:

== Spawn extension (predial, foo, 1) exited non-zero on ‘PJSIP/peer-0000016d’

Which indicates the same behavior as the b(context^exten^priority) option.

The result is without the channels bridged first, the ${BRIDGEPEER} channel variable is missing.
Comments:By: Asterisk Team (asteriskteam) 2021-01-05 12:55:27.101-0600

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) 2021-01-05 13:08:29.554-0600

The 'b' option is a pre-dial handler, that is executed before a channel is dialed. The gosub option you reference is when they are connected, but I think where the confusion is coming from is that by connected it means they are essentially paired up. The gosub option executes before any bridge between them occurs, and thus BRIDGEPEER would not be set.

By: Bill Kervaski (bkervaski) 2021-01-05 13:14:12.606-0600

Thanks for the explanation and your time, this lines up with my experience.