You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.4 KiB
35 lines
1.4 KiB
From: Sipwise Development Team <support@sipwise.com>
|
|
Date: Mon, 4 Nov 2024 15:37:29 +0100
|
|
Subject: sipwise_vm_envelope_behaviour
|
|
|
|
---
|
|
apps/app_voicemail.c | 8 +++++---
|
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
|
|
index faf8f9f..39682af 100644
|
|
--- a/apps/app_voicemail.c
|
|
+++ b/apps/app_voicemail.c
|
|
@@ -1537,8 +1537,10 @@ static void apply_option(struct ast_vm_user *vmu, const char *var, const char *v
|
|
ast_set2_flag(vmu, ast_true(value), VM_MESSAGEWRAP);
|
|
} else if (!strcasecmp(var, "operator")) {
|
|
ast_set2_flag(vmu, ast_true(value), VM_OPERATOR);
|
|
- } else if (!strcasecmp(var, "envelope")){
|
|
- ast_set2_flag(vmu, ast_true(value), VM_ENVELOPE);
|
|
+ // envelope variable is taken globally from voicemail.conf
|
|
+ // and currently ignored per user
|
|
+ //} else if (!strcasecmp(var, "envelope")){
|
|
+ // ast_set2_flag(vmu, ast_true(value), VM_ENVELOPE);
|
|
} else if (!strcasecmp(var, "moveheard")){
|
|
ast_set2_flag(vmu, ast_true(value), VM_MOVEHEARD);
|
|
} else if (!strcasecmp(var, "sayduration")){
|
|
@@ -15896,7 +15898,7 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s
|
|
context = ast_variable_retrieve(msg_cfg, "message", "macrocontext");
|
|
switch (option) {
|
|
case 3: /* Play message envelope */
|
|
- if (!res) {
|
|
+ if ((!res) && (ast_test_flag(vmu, VM_ENVELOPE))) {
|
|
res = play_message_datetime(chan, vmu, origtime, filename);
|
|
}
|
|
if (!res) {
|