]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Originated calls: Fix several originate call problems.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 18 Apr 2014 16:38:20 +0000 (16:38 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 18 Apr 2014 16:38:20 +0000 (16:38 +0000)
commita44f43d45267c5c9dae97677f3a060c837336c35
tree522efcffd6b54a1b2344bad3e9bc7c5814d3caae
parent341db59212e39c5aebeacba4243519bf371e6d97
Originated calls: Fix several originate call problems.

* Restore the reason value set by pbx_outgoing_attempt() to use
AST_CONTROL_xxx values as all the consumers were expecting rather than
cause codes.

* Fixed the dial routines to set cause codes for more than just
ast_request() so pbx_outgoing_attempt() reason codes will function.

* Fix inconsistent locked_channel return status in pbx_outgoing_attempt().
The chanel may not have been locked or the channel may have been a stale
pointer.

* Fixed the OutgoingSpoolFailed channel to run dialplan whenever the
dialing fails for an originate exten and 1 < synchronous.

* Fix incorrect ast_cond_wait() usage in pbx_outgoing_attempt().
Indroduced by issue ASTERISK-22212 patch.

* Made struct pbx_outgoing use the ao2 lock instead of its own lock for
the cond wait mutex.  No sense in having two locks associated with the
same struct when only one is needed.

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@412581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_originate.c
include/asterisk/pbx.h
main/dial.c
main/pbx.c