diff options
author | Joshua Colp <jcolp@digium.com> | 2017-04-30 21:40:16 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2017-05-04 16:39:59 -0500 |
commit | 8cbdd0a5b8f6d007111e09a51c06303c07c6cdf2 (patch) | |
tree | a354b9a5e4a30180b84377f1a5716fadde3a538b /include/asterisk/channel.h | |
parent | 24e5ae7e0afcfa509a665dff03c2a2d4e6f4c208 (diff) |
bridge: Fix returning to dialplan when executing Bridge() from AMI.
When using the Bridge AMI action on the same channel multiple times
it was possible for the channel to return to the wrong location in
the dialplan if the other party hung up. This happened because the
priority of the channel was not preserved across each action
invocation and it would fail to move on to the next priority in
other cases.
This change makes it so that the priority of a channel is preserved
when taking control of it from another thread and it is incremented
as appropriate such that the priority reflects where the channel
should next be executed in the dialplan, not where it may or may not
currently be.
The Bridge AMI action was also changed to ensure that it too
starts the channels at the next location in the dialplan.
ASTERISK-24529
Change-Id: I52406669cf64208aef7252a65b63ade31fbf7a5a
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r-- | include/asterisk/channel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 219e5a28e..3acd07774 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -4513,6 +4513,9 @@ struct ast_bridge_channel *ast_channel_get_bridge_channel(struct ast_channel *ch * * \note absolutely _NO_ channel locks should be held before calling this function. * + * \note The dialplan location on the returned channel is where the channel + * should be started in the dialplan if it is returned to it. + * * \param yankee The channel to gain control of * \retval NULL Could not gain control of the channel * \retval non-NULL The channel |