From: Michael Tremer Date: Thu, 16 Mar 2017 10:40:28 +0000 (+0000) Subject: talk: Show native channel format as codec X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41313ef09026170b8e6edc19f5bd90ef0894c7f3;p=ipfire.org.git talk: Show native channel format as codec Signed-off-by: Michael Tremer --- diff --git a/webapp/backend/asterisk.py b/webapp/backend/asterisk.py index 34479e5c..430c7206 100644 --- a/webapp/backend/asterisk.py +++ b/webapp/backend/asterisk.py @@ -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):