[asterisk] Fix multiple mailbox support

Mailboxes must be separated with an ampersand; they're currently
separated with commas in the config.
This commit is contained in:
Correl Roush 2024-12-06 10:43:11 -05:00
parent 7fcb81568d
commit 066f8834cd

View file

@ -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)