]> 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:07:32 +0000 (12:07 -0500)
commit1541e2c70acbf0ec6e60d836362b4d660adba955
tree51e0b8cbdb31ba6a2ef2195dfc7163c638accd0e
parentb67e4a390efb2a98febc3a2c38528678e3c266a3
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