]> git.ipfire.org Git - ipfire.org.git/commitdiff
talk: Show native channel format as codec
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Mar 2017 10:40:28 +0000 (10:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Mar 2017 10:40:28 +0000 (10:40 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
webapp/backend/asterisk.py

index 34479e5cf0709f648f063525e9333f856ef20954..430c7206f3e75476e6da67d462ab760813203e63 100644 (file)
@@ -207,10 +207,9 @@ class Channel(object):
 
         @property
         def format(self):
-                return "%s/%s" % (
-                        self.status.get("Readformat"),
-                        self.status.get("Writeformat"),
-                )
+                format = self.status.get("Nativeformats")
+
+                return format.lstrip("(").rstrip(")")
 
         @staticmethod
         def _format_number(number):