diff src/g23m-aci/aci/ati_cmd.c @ 301:4bb5772a05a3

AT%SPVER: new command for setting custom speech version lists The speech version list in the Bearer Capability IE tells the network which speech codecs are supported by the MS, and in which order of preference. The standard behaviour is to list all codecs that are supported by the hw+fw platform, and the standard preference order is newer over older, FR over HR. But sometimes it is desirable (for network testing) to artificially restrict which codecs the test MS will declare as supported, and/or to list them in some peculiar non-standard order of preference. Add a new private AT command, AT%SPVER, allowing the user to set and clear custom speech version lists for the Bearer Capability IE composer in CC.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 May 2023 21:43:10 +0000
parents 91e61d00a6b5
children d32ac4edb634
line wrap: on
line diff
--- a/src/g23m-aci/aci/ati_cmd.c	Tue Dec 13 02:44:01 2022 +0000
+++ b/src/g23m-aci/aci/ati_cmd.c	Sun May 21 21:43:10 2023 +0000
@@ -790,6 +790,8 @@
 EXTERN T_ATI_RSLT atAtVIBR (char *cl, UBYTE srcId);
 EXTERN T_ATI_RSLT atAtVIBS (char *cl, UBYTE srcId);
 #endif
+EXTERN T_ATI_RSLT atPercentSPVER (char *cl, UBYTE srcId);
+EXTERN T_ATI_RSLT queatPercentSPVER (char *cl, UBYTE srcId);
 
 LOCAL const ATCommand_bas cmds_bas[] =
 {
@@ -1273,6 +1275,8 @@
     {"@VIBR",	AT_CMD_AT_VIBR,  atAtVIBR,	0,	0,	0},
     {"@VIBS",	AT_CMD_AT_VIBS,  atAtVIBS,	0,	0,	0},
 #endif
+    {"%SPVER",	AT_CMD_P_SPVER,  atPercentSPVER, test_gen, queatPercentSPVER,
+				"%s: (0,1),(0-5),(0-5),(0-5),(0-5),(0-5)"},
     /* terminator */
     {NULL,AT_CMD_NONE,NULL,NULL,NULL,NULL}
 };