Skip to content
Snippets Groups Projects
Commit 6c09bc24 authored by Eloi Bail's avatar Eloi Bail Committed by Guillaume Roguez
Browse files

tool/dringctrl: add method to get codec details

add method to get codec details of an account

Issue: #81048
Change-Id: I0889ef08a94d0fb642ba85f7f3cc3bff380033b9
parent 5ad6d2a9
No related branches found
No related tags found
No related merge requests found
......@@ -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',
metavar='<account>',type=str)
#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():
printAccountDetails(account)
if args.gacd:
for codecId in ctrl.getActiveCodecs(args.gacd):
print("# codec",codecId,"-------------")
print(ctrl.getCodecDetails(args.gacd, codecId))
print("#-- ")
if args.sac:
ctrl.setAccount(args.sac)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment