From 066f8834cdf1b64e026491d813ef4537bc2c1585 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Fri, 6 Dec 2024 10:43:11 -0500 Subject: [PATCH] [asterisk] Fix multiple mailbox support Mailboxes must be separated with an ampersand; they're currently separated with commas in the config. --- roles/asterisk/templates/extensions.conf.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/asterisk/templates/extensions.conf.j2 b/roles/asterisk/templates/extensions.conf.j2 index afb77d4..8f05c4d 100644 --- a/roles/asterisk/templates/extensions.conf.j2 +++ b/roles/asterisk/templates/extensions.conf.j2 @@ -48,9 +48,11 @@ exten => 700,1,Answer() same = n,Hangup() ; Other extensions -3-digit extensions dial their associated devices -exten => _XXX,1,Dial(PJSIP/${EXTEN}, 15) +; 3-digit extensions dial their associated devices +exten => _XXX,1,NoOp() + same = n,Dial(PJSIP/${EXTEN}, 15) same = n,Set(MAILBOXES=${PJSIP_ENDPOINT(${EXTEN},mailboxes)}) + same = n,Set(MAILBOXES=${REPLACE(MAILBOXES,\,,&)}) same = n,ExecIf($[${LEN(${MAILBOXES})} = 0]?Congestion(10)) same = n,Voicemail(${MAILBOXES}) same = n,Playback(vm-goodbye)