From 180aa9ddaa86f8b4619ad86722442d61699c55fc Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Tue, 25 Feb 2020 16:50:52 +0100 Subject: [PATCH] TT#76362 externotify add uuid argument * externnotify invokation now sends the subscriber uuid as an argument. Change-Id: I36a7494ec11569a42e895745116565d650b855ef --- debian/patches/series | 1 + .../sipwise_vm_externnotify_by_uuid.patch | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 debian/patches/sipwise_vm_externnotify_by_uuid.patch diff --git a/debian/patches/series b/debian/patches/series index 35e56db..5e943bd 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -24,3 +24,4 @@ sipwise_vm_fix_envelope_play.patch sipwise_vm_asterisk_16_support.patch sipwise_vm_pointers_malloc.patch sipwise_fix_app_voicemail_bugs.patch +sipwise_vm_externnotify_by_uuid.patch diff --git a/debian/patches/sipwise_vm_externnotify_by_uuid.patch b/debian/patches/sipwise_vm_externnotify_by_uuid.patch new file mode 100644 index 0000000..ca17b41 --- /dev/null +++ b/debian/patches/sipwise_vm_externnotify_by_uuid.patch @@ -0,0 +1,22 @@ +--- a/apps/app_voicemail.c ++++ b/apps/app_voicemail.c +@@ -6644,15 +6644,15 @@ + if (msg_time) { + ast_localtime(msg_time, &tm, timezonename); + ast_strftime(date, sizeof(date), "%Y-%m-%dT%H:%M:%S%z", &tm); +- snprintf(arguments, sizeof(arguments), "%s %s %s %d %d %d %d %s %s %d &", ++ snprintf(arguments, sizeof(arguments), "%s %s %s %s %d %d %d %d %s %s %d &", + externnotify, S_OR(context, "\"\""), +- number, newvoicemails, ++ number, extension, newvoicemails, + oldvoicemails, urgentvoicemails, + msgnum, cidnum, date, duration); + } else { // original short notify +- snprintf(arguments, sizeof(arguments), "%s %s %s %d %d %d &", ++ snprintf(arguments, sizeof(arguments), "%s %s %s %s %d %d %d &", + externnotify, S_OR(context, "\"\""), +- number, newvoicemails, ++ number, extension, newvoicemails, + oldvoicemails, urgentvoicemails); + } + ast_debug(1, "Executing %s\n", arguments);