From b54dda4cefe89665d98074cf3767858fa6ecdb6e Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sun, 20 Dec 2009 22:06:40 +0100 Subject: ipaccess: Send RTP Payload IE for CRCX & MDCX For GSM V1 FR, the payload type is fixed to 3 in the RFC. But for the other codecs, the payload type is dynamically assigned between 96 and 127. Here, we use a static mapping internal to OpenBSC. This patch is needed to make a rather old 139 unit (with sw version 120a002_v149b42d0) work with something else than FR codec. I also tested this patch on a newer 139 (with sw version 120a352_v267b22d0) to make sure it didn't add a regression. More testing with newer EDGE units should be done by whoever has some of theses. Signed-off-by: Sylvain Munaut --- openbsc/include/openbsc/rtp_proxy.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbsc/include/openbsc/rtp_proxy.h') diff --git a/openbsc/include/openbsc/rtp_proxy.h b/openbsc/include/openbsc/rtp_proxy.h index f82711a8e..65b1a5fac 100644 --- a/openbsc/include/openbsc/rtp_proxy.h +++ b/openbsc/include/openbsc/rtp_proxy.h @@ -28,6 +28,12 @@ #include #include +#define RTP_PT_GSM_FULL 3 +#define RTP_PT_GSM_HALF 96 +#define RTP_PT_GSM_EFR 97 +#define RTP_PT_AMR_FULL 98 +#define RTP_PT_AMR_HALF 99 + enum rtp_rx_action { RTP_NONE, RTP_PROXY, -- cgit v1.2.3