Osmo-CC: Fixed RTP port selection option
This commit is contained in:
parent
4810ff659f
commit
e4c2e514d1
|
@ -1220,6 +1220,7 @@ static int osmo_cc_set_rtp(osmo_cc_endpoint_t *ep, const char *text)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
from = from * 10 + *text - '0';
|
from = from * 10 + *text - '0';
|
||||||
|
text++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* remove spaces after keyword */
|
/* 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);
|
PDEBUG(DCC, DEBUG_ERROR, "Given 'to' port in '%s' is invalid.\n", text);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
from = from * 10 + *text - '0';
|
to = to * 10 + *text - '0';
|
||||||
|
text++;
|
||||||
}
|
}
|
||||||
|
|
||||||
osmo_cc_set_rtp_ports(&ep->session_config, from, to);
|
osmo_cc_set_rtp_ports(&ep->session_config, from, to);
|
||||||
|
|
Loading…
Reference in New Issue