mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
FS-7500: refactoring
This commit is contained in:
committed by
Michael Jerris
parent
3584da00d0
commit
970064294c
@@ -922,7 +922,9 @@ static void parse_bandwidth(sdp_parser_t *p, char *r, sdp_bandwidth_t **result)
|
||||
|
||||
if (su_casematch(name, "CT"))
|
||||
modifier = sdp_bw_ct, name = NULL;
|
||||
else if (su_casematch(name, "AS") == 0)
|
||||
else if (su_casematch(name, "TIAS") == 1)
|
||||
modifier = sdp_bw_tias, name = NULL;
|
||||
else if (su_casematch(name, "AS") == 1)
|
||||
modifier = sdp_bw_as, name = NULL;
|
||||
else
|
||||
modifier = sdp_bw_x;
|
||||
|
||||
@@ -430,6 +430,7 @@ static void print_bandwidths(sdp_printer_t *p, sdp_bandwidth_t const *b)
|
||||
switch (b->b_modifier) {
|
||||
case sdp_bw_ct: name = "CT"; break;
|
||||
case sdp_bw_as: name = "AS"; break;
|
||||
case sdp_bw_tias: name = "TIAS"; break;
|
||||
default: name = b->b_modifier_name; break;
|
||||
}
|
||||
|
||||
|
||||
@@ -143,6 +143,7 @@ typedef enum
|
||||
sdp_bw_x, /**< Unknown bandwidth type */
|
||||
sdp_bw_ct, /**< Conference total */
|
||||
sdp_bw_as, /**< Application-specific */
|
||||
sdp_bw_tias, /**< Application-specific */
|
||||
} sdp_bandwidth_e;
|
||||
|
||||
/** Session or media bandwidth. */
|
||||
|
||||
Reference in New Issue
Block a user