From 7a0bc23a92fed0a75a63ac375580676f95b536f0 Mon Sep 17 00:00:00 2001 From: mpmc Date: Tue, 27 Jun 2023 16:34:23 +0100 Subject: [PATCH] ast: always provide default language --- asterisk/conf/asterisk.conf | 3 ++- asterisk/conf/extensions.conf | 5 +++-- asterisk/conf/pjsip_wizard.conf | 6 ++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/asterisk/conf/asterisk.conf b/asterisk/conf/asterisk.conf index ba482bd..44ca704 100644 --- a/asterisk/conf/asterisk.conf +++ b/asterisk/conf/asterisk.conf @@ -2,7 +2,7 @@ ; /etc/asterisk/asterisk.conf ; ; Directories are standard. -[directories](!) +[directories] astcachedir => /var/cache/asterisk astetcdir => /etc/asterisk astmoddir => /usr/lib/asterisk/modules @@ -21,4 +21,5 @@ runuser = asterisk rungroup = asterisk ; Main language. +languageprefix = yes defaultlanguage = en_GB diff --git a/asterisk/conf/extensions.conf b/asterisk/conf/extensions.conf index aa4702a..d43cab9 100644 --- a/asterisk/conf/extensions.conf +++ b/asterisk/conf/extensions.conf @@ -8,12 +8,13 @@ exten => s,1,Verbose(1, "INFO ${CALLERID(num)} was passed to default.") same => n,Wait(1) same => n,Answer(1) same => n,Goto(s-info,1) - same => n,Goto(s-info,1) - same => n,Goto(s-info,1) same => n,Hangup(3) exten => s-info,1,PlayTones(info) same => n,Playback(hangup-try-again) + same => n,PlayTones(info) + same => n,Playback(hangup-try-again) + same => n,Playback(hangup-try-again) [globals] diff --git a/asterisk/conf/pjsip_wizard.conf b/asterisk/conf/pjsip_wizard.conf index 977f505..d306d27 100644 --- a/asterisk/conf/pjsip_wizard.conf +++ b/asterisk/conf/pjsip_wizard.conf @@ -24,6 +24,9 @@ endpoint/allow = !all,alaw ; Call encryption. endpoint/media_encryption = no +; Default language, pjsip wizard appears to ignore global setting. +endpoint/language = en_GB + ; ; This template contains default settings for all local extensions. [extension-defaults](!) @@ -46,6 +49,9 @@ endpoint/allow = !all,alaw ; choosing. endpoint/subscribe_context = subscribe +; Default language, pjsip wizard appears to ignore global setting. +endpoint/language = en_GB + ; ; Load user extensions. #tryinclude pjsip_users.conf