Run predial routine on local;2 channel where you would expect.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 10 May 2012 21:29:41 +0000 (21:29 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 10 May 2012 21:29:41 +0000 (21:29 +0000)
commit4ea636c7768bca2e2decb96f1b08bfdd9f32bca9
tree3abc3aa14879d0e0f6d80218499a4f6b86f4d5ff
parentdd81b047dbf15a501b81354db505daf50703a1a0
Run predial routine on local;2 channel where you would expect.

Before this patch, the predial routine executes on the ;1 channel of a
local channel pair.  Executing predial on the ;1 channel of a local
channel pair is of limited utility.  Any channel variables set by the
predial routine executing on the ;1 channel will not be available when the
local channel executes dialplan on the ;2 channel.

* Create ast_pre_call() and an associated pre_call() technology callback
to handle running the predial routine.  If a channel technology does not
provide the callback, the predial routine is simply run on the channel.

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@366183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_dial.c
channels/chan_local.c
include/asterisk/channel.h
main/channel.c