Osmo-CC: Fixed RTP port selection option

This commit is contained in:
Andreas Eversberg 2021-12-28 13:00:19 +01:00
parent 4810ff659f
commit e4c2e514d1
1 changed files with 3 additions and 1 deletions

View File

@ -1220,6 +1220,7 @@ static int osmo_cc_set_rtp(osmo_cc_endpoint_t *ep, const char *text)
return -EINVAL;
}
from = from * 10 + *text - '0';
text++;
}
/* remove spaces after keyword */
@ -1235,7 +1236,8 @@ static int osmo_cc_set_rtp(osmo_cc_endpoint_t *ep, const char *text)
PDEBUG(DCC, DEBUG_ERROR, "Given 'to' port in '%s' is invalid.\n", text);
return -EINVAL;
}
from = from * 10 + *text - '0';
to = to * 10 + *text - '0';
text++;
}
osmo_cc_set_rtp_ports(&ep->session_config, from, to);