Skip to content

Commit

Permalink
sdpops: reformat the codecs map
Browse files Browse the repository at this point in the history
(cherry picked from commit 359a442)
(cherry picked from commit 855c767)
  • Loading branch information
miconda committed Apr 29, 2024
1 parent f1969ec commit 8bb69fd
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions src/modules/sdpops/sdpops_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,29 @@ Registration Procedures: Standards Action Process or expert approval
*/

typedef struct _codecsmap
{
/* clang-format off */
typedef struct _codecsmap {
str name;
str ids;
} codecsmap_t;

codecsmap_t sdpops_codecsmap_table[] = {{{"PCMU", 4}, {"0", 1}},
{{"GSM", 3}, {"3", 1}}, {{"G723", 4}, {"4", 1}},
{{"DVI4", 4}, {"5,6,16,17", 9}}, {{"LPC", 3}, {"7", 1}},
{{"PCMA", 4}, {"8", 1}}, {{"G722", 4}, {"9", 1}},
{{"L16", 3}, {"10,11", 5}}, {{"QCELP", 5}, {"12", 2}},
{{"CN", 2}, {"13", 5}}, {{"MPA", 3}, {"14", 2}},
{{"G728", 4}, {"15", 2}}, {{"G729", 4}, {"18", 2}}, {{0, 0}, {0, 0}}};
codecsmap_t sdpops_codecsmap_table[] = {
{{"PCMU", 4}, {"0", 1}},
{{"GSM", 3}, {"3", 1}},
{{"G723", 4}, {"4", 1}},
{{"DVI4", 4}, {"5,6,16,17", 9}},
{{"LPC", 3}, {"7", 1}},
{{"PCMA", 4}, {"8", 1}},
{{"G722", 4}, {"9", 1}},
{{"L16", 3}, {"10,11", 5}},
{{"QCELP", 5}, {"12", 2}},
{{"CN", 2}, {"13", 5}},
{{"MPA", 3}, {"14", 2}},
{{"G728", 4}, {"15", 2}},
{{"G729", 4}, {"18", 2}},
{{0, 0}, {0, 0}}
};
/* clang-format on */

/**
* set the string with the IDs mapped to codec name
Expand Down

0 comments on commit 8bb69fd

Please sign in to comment.