]> 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:36:30 +0000 (16:36 -0500)
commit5a19d3dfe030a16731382fd6cbb661374ea734a9
tree4d285b7d4db635126809404bb572ee41b66744ec
parentdf9791676edceb47a492ef8952b10479ecf9a8ea
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