Dial API: Add a dial option to indicate the dialed channel will replace dialer
authorJonathan Rose <jrose@digium.com>
Fri, 5 Sep 2014 20:22:12 +0000 (20:22 +0000)
committerJonathan Rose <jrose@digium.com>
Fri, 5 Sep 2014 20:22:12 +0000 (20:22 +0000)
commit85878c4dd86dc80e387588acbd689835047279a7
tree827f6e42327e541f02e326583fa851bb70d1dca7
parente19017fc00c80bedd39f1ce7c830b31193b88c6a
Dial API: Add a dial option to indicate the dialed channel will replace dialer

Adds an option to the dial API that marks an outgoing dial as replacing the dialing channel for the purpose of propagating accountcode. When it is used, AST_CHANNEL_REQUESTOR_REPLACEMENT is used instead of AST_CHANNEL_REQUESTOR_BRIDGE_PEER when setting accountcodes on the involved channels with ast_channel_req_accountcodes.

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

Merged revisions 422684 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@422697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/dial.h
main/dial.c