From 991a0808b9da58d2831e6de991be954713b41dd1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 16 Mar 2017 10:46:53 +0000 Subject: [PATCH] talk: Show correct status when user is checking voicemail messages Signed-off-by: Michael Tremer --- templates/talk/modules/contact.html | 5 +---- webapp/backend/asterisk.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/templates/talk/modules/contact.html b/templates/talk/modules/contact.html index 46d5e4d0..6c12b4d1 100644 --- a/templates/talk/modules/contact.html +++ b/templates/talk/modules/contact.html @@ -4,7 +4,7 @@ {% elif application == "Echo" %} {{ _("Echo Test") }} -{% elif application == "VoiceMail" %} +{% elif application in ("VoiceMail", "VoiceMailMain") %} {{ _("Voicemail") }}: {% if account %} @@ -23,9 +23,6 @@ {% elif number in ("980", "981", "982", "983", "984", "985", "986", "987", "988", "989") %} {{ _("Parked Calls Extension") }} ({{ number }}) -{% elif number == "990" %} - {{ _("Voicemail") }} - {% elif number == "992" %} {{ _("Music") }} diff --git a/webapp/backend/asterisk.py b/webapp/backend/asterisk.py index 54a68112..a45539fd 100644 --- a/webapp/backend/asterisk.py +++ b/webapp/backend/asterisk.py @@ -242,7 +242,7 @@ class Channel(object): elif self.application == "Echo": return None - elif self.application == "VoiceMail": + elif self.application in ("VoiceMail", "VoiceMailMain"): try: user, rest = self.data.split("@", 1) except: -- 2.47.3