app_dial: Allow macro/gosub pre-bridge execution to occur on priorities
authorMatthew Jordan <mjordan@digium.com>
Fri, 31 Jan 2014 23:34:47 +0000 (23:34 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 31 Jan 2014 23:34:47 +0000 (23:34 +0000)
commitf9229127311cdd6880d8d5b0c506a1f843b8ae28
tree9186295d035bfb4647a0a205ae4f919273498892
parent10e38fb10cb07b0eb60375cc2a8cd46da86b7c5b
app_dial: Allow macro/gosub pre-bridge execution to occur on priorities

The parsing for the destination of the macro/gosub uses the '^' character to
separate out context, extension, and priority. However, the logic for the
macro/gosub execution was written such that it would only do the actual
macro/gosub jump if a '^' character existed. This doesn't apply when the
macro/gosub jump occurs in a priority/priority label. This patch changes
the logic so that the parsing still occurs, but the jump will occur even
for priorities/priority labels.

(issue ASTERISK-23164)

Review: https://reviewboard.asterisk.org/r/3154
........

Merged revisions 407041 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 407074 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 407082 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@407083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_dial.c