sip: media: use number types for payload id and clock rate

This is needed for the next commits where we check the received SDP
offers/answers.
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-04-07 23:53:34 +02:00
committed by Guido Gunther
parent 7d113d4180
commit 157dc1fffb
3 changed files with 11 additions and 11 deletions

View File

@@ -121,9 +121,9 @@ calls_sip_media_manager_static_capabilities (CallsSipMediaManager *self,
for (node = self->supported_codecs; node != NULL; node = node->next) {
MediaCodecInfo *codec = node->data;
g_string_append_printf (media_line, " %s", codec->payload_id);
g_string_append_printf (media_line, " %u", codec->payload_id);
g_string_append_printf (attribute_lines,
"a=rtpmap:%s %s/%s%s",
"a=rtpmap:%u %s/%u%s",
codec->payload_id,
codec->name,
codec->clock_rate,