rtp_proxy.c: Correctly set msg_type to GSM_TCH_FRAME_AMR on AMR

When forwarding AMR from RTP towards the MNCC interface, we need to set
the apropriate msg_type.  Before this patch it was unitialized,
resulting in improper/unknown msg_types of messages on the MNCC
interface.
This commit is contained in:
Harald Welte 2014-05-18 18:32:05 +02:00
parent a87f8f9891
commit ec75798644
1 changed files with 1 additions and 0 deletions

View File

@ -196,6 +196,7 @@ static int rtp_decode(struct msgb *msg, uint32_t callref, struct msgb **data)
}
break;
case RTP_PT_AMR:
msg_type = GSM_TCH_FRAME_AMR;
break;
default:
DEBUGPC(DLMUX, "received RTP frame with unknown payload "