]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_originate: Set ORIGINATE_STATUS correctly on failure
authorSean Bright <sean.bright@gmail.com>
Tue, 10 Oct 2017 17:01:05 +0000 (13:01 -0400)
committerSean Bright <sean.bright@gmail.com>
Tue, 10 Oct 2017 17:06:11 +0000 (13:06 -0400)
commite71a65a358203ce1086891e44d09e12c83f05d57
tree4057e6f306022c3ceeed79288b85f3afff2a39ea
parentda07a3bb621f640a1971b5fe149d6fbd0be1e7d0
app_originate: Set ORIGINATE_STATUS correctly on failure

We were ignoring the return value from ast_pbx_outgoing_exten() and
ast_pbx_outgoing_app() which could fail before setting the reason code.
This resulted in failures being reported as success.

ASTERISK-25266 #close
Reported by: Allen Ford

Change-Id: Idf16237b7e41b527d2c69c865829128686beeb3b
apps/app_originate.c