]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_mf, app_sf: Return -1 if channel hangs up.
authorNaveen Albert <asterisk@phreaknet.org>
Sat, 5 Mar 2022 01:41:30 +0000 (01:41 +0000)
committerKevin Harwell <kharwell@digium.com>
Fri, 8 Apr 2022 21:35:20 +0000 (16:35 -0500)
commit1873b7ece61dcf139b9bfb8ae46479511cdb4a53
tree28be71bc0d5656a1548b2e8a8cb9faba3c19bddc
parent3707f2e14445f94b9cbc503661cb829021248ffb
app_mf, app_sf: Return -1 if channel hangs up.

The ReceiveMF and ReceiveSF applications currently always
return 0, even if a channel has hung up. The call will still
end but generally applications are expected to return -1 if
the channel has hung up.

We now return -1 if a hangup occured to bring this behavior
in line with this norm. This has no functional impact, but
merely increases conformity with how these modules interact
with the PBX core.

ASTERISK-29951 #close

Change-Id: I234d755050ab8ed58f197c6925b968ba26b14033
apps/app_mf.c
apps/app_sf.c