[Asterisk-code-review] main/pbx.c: Fixed to call the ast_softhangup() (...asterisk[master])

sungtae kim asteriskteam at digium.com
Wed Mar 13 20:00:31 CDT 2019


sungtae kim has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/11149


Change subject: main/pbx.c: Fixed to call the ast_softhangup()
......................................................................

main/pbx.c: Fixed to call the ast_softhangup()

If the channel moved to the normal dialplan from the stasis() application,
it doesn't create a SoftChannelRequest(AMI)/ChannelHangupRequest(ARI) events.
Fixed it to call the those events create handler for in any case.

ASTERISK-28336

Change-Id: I6652359e42bb9fe3f2c44c03df4365c183baf73d
---
M main/pbx.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/49/11149/1

diff --git a/main/pbx.c b/main/pbx.c
index ee5ed7e..6e6c654 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -4559,8 +4559,8 @@
 		ast_log(LOG_WARNING, "Don't know what to do with '%s'\n", ast_channel_name(c));
 	}
 
+	ast_softhangup(c, AST_SOFTHANGUP_APPUNLOAD);
 	if (!args || !args->no_hangup_chan) {
-		ast_softhangup(c, AST_SOFTHANGUP_APPUNLOAD);
 		if (!ast_test_flag(ast_channel_flags(c), AST_FLAG_BRIDGE_HANGUP_RUN)
 			&& ast_exists_extension(c, ast_channel_context(c), "h", 1,
 				S_COR(ast_channel_caller(c)->id.number.valid,

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11149
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I6652359e42bb9fe3f2c44c03df4365c183baf73d
Gerrit-Change-Number: 11149
Gerrit-PatchSet: 1
Gerrit-Owner: sungtae kim <pchero21 at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190313/b78037a8/attachment-0001.html>


More information about the asterisk-code-review mailing list