audio: Remove the hardcoding of the RTP Payload
The MGCP config must be correct and use 99 for RTP AMR.
This commit is contained in:
parent
3488c3ddc4
commit
128892f55f
|
@ -284,7 +284,6 @@ struct gsm_network {
|
||||||
|
|
||||||
/* MSC data in case we are a true BSC */
|
/* MSC data in case we are a true BSC */
|
||||||
struct osmo_msc_data *msc_data;
|
struct osmo_msc_data *msc_data;
|
||||||
int hardcoded_rtp_payload;
|
|
||||||
|
|
||||||
/* subscriber related features */
|
/* subscriber related features */
|
||||||
int keep_subscr;
|
int keep_subscr;
|
||||||
|
|
|
@ -1580,10 +1580,6 @@ static uint8_t ipa_rtp_pt_for_lchan(struct gsm_lchan *lchan)
|
||||||
{
|
{
|
||||||
struct gsm_network *net = lchan->ts->trx->bts->network;
|
struct gsm_network *net = lchan->ts->trx->bts->network;
|
||||||
|
|
||||||
/* allow to hardcode the rtp payload */
|
|
||||||
if (net->hardcoded_rtp_payload != 0)
|
|
||||||
return net->hardcoded_rtp_payload;
|
|
||||||
|
|
||||||
switch (lchan->tch_mode) {
|
switch (lchan->tch_mode) {
|
||||||
case GSM48_CMODE_SPEECH_V1:
|
case GSM48_CMODE_SPEECH_V1:
|
||||||
switch (lchan->type) {
|
switch (lchan->type) {
|
||||||
|
|
|
@ -64,7 +64,6 @@ static int handle_abisip_signal(unsigned int subsys, unsigned int signal,
|
||||||
|
|
||||||
int osmo_bsc_audio_init(struct gsm_network *net)
|
int osmo_bsc_audio_init(struct gsm_network *net)
|
||||||
{
|
{
|
||||||
net->hardcoded_rtp_payload = 98;
|
|
||||||
osmo_signal_register_handler(SS_ABISIP, handle_abisip_signal, net);
|
osmo_signal_register_handler(SS_ABISIP, handle_abisip_signal, net);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue