Commit 6c09bc24 authored by Éloi Bail's avatar Éloi Bail Committed by Guillaume Roguez

tool/dringctrl: add method to get codec details

add method to get codec details of an account

Issue: #81048
Change-Id: I0889ef08a94d0fb642ba85f7f3cc3bff380033b9
parent 5ad6d2a9
......@@ -69,6 +69,9 @@ if __name__ == "__main__":
parser.add_argument('--sacl', help='Set active codecs for active account',
metavar='<codec list>', type=str)
parser.add_argument('--gacd', help='Get active codecs details for the account',
#parser.add_argument('--gcc', help='Get current callid', action='store_true')
parser.add_argument('--gcl', help='Get call list', action='store_true')
......@@ -117,6 +120,12 @@ if __name__ == "__main__":
for account in ctrl.getAllAccounts():
if args.gacd:
for codecId in ctrl.getActiveCodecs(args.gacd):
print("# codec",codecId,"-------------")
print(ctrl.getCodecDetails(args.gacd, codecId))
print("#-- ")
if args.sac:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment