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.
33 lines
1.3 KiB
33 lines
1.3 KiB
From: Sipwise Development Team <support@sipwise.com>
|
|
Date: Mon, 21 Feb 2022 14:17:23 +0100
|
|
Subject: sipwise_vm_envelope_behaviour
|
|
|
|
envelope variable is taken globally from voicemail.conf
|
|
and currently ignored per user
|
|
---
|
|
apps/app_voicemail.c | 4 +---
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
|
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
|
|
index 77d81df..8dcbc73 100644
|
|
--- a/apps/app_voicemail.c
|
|
+++ b/apps/app_voicemail.c
|
|
@@ -1727,8 +1727,6 @@ 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);
|
|
} else if (!strcasecmp(var, "moveheard")){
|
|
ast_set2_flag(vmu, ast_true(value), VM_MOVEHEARD);
|
|
} else if (!strcasecmp(var, "sayduration")){
|
|
@@ -16216,7 +16214,7 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s
|
|
context = ast_variable_retrieve(msg_cfg, "message", "context");
|
|
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) {
|