From a8d2e32d39a61bfdf81463b0165efedf5a66b00d Mon Sep 17 00:00:00 2001 From: Kent Ekholm Date: Fri, 12 Oct 2018 17:12:11 +0200 Subject: [PATCH] Modified dialplan template for local calls to make hangup context be called regardless of which party is hanging up the call. Ref: #15917 --- .../files/etc/asterisk_templates/extensions_local_line.TEMPLATE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voice-client/files/etc/asterisk_templates/extensions_local_line.TEMPLATE b/voice-client/files/etc/asterisk_templates/extensions_local_line.TEMPLATE index 62c043449..0b6835b18 100644 --- a/voice-client/files/etc/asterisk_templates/extensions_local_line.TEMPLATE +++ b/voice-client/files/etc/asterisk_templates/extensions_local_line.TEMPLATE @@ -1,4 +1,4 @@ -exten => |EXTEN|,1,Dial(BRCM/|LINE|,|TIMEOUT|,g) +exten => |EXTEN|,1,Dial(BRCM/|LINE|,|TIMEOUT|,gF(hangup,h,2)) exten => |EXTEN|,n,GotoIf($["${DIALSTATUS}"="ANSWER"]?endcall) exten => |EXTEN|,n,|VOICEMAIL| exten => |EXTEN|,n(endcall),Macro(endcall,BRCM,|LINE|,|EXTEN|,${CHANNEL(name)},|MAX_RETRIES|,|RETRYTIME|,|WAITTIME|,|CBBS_KEY|,|CONGESTIONTONE|)