dexter has uploaded this change for review. ( https://gerrit.osmocom.org/9780


Change subject: rtp: use 3GPP assigned payload type numbers
......................................................................

rtp: use 3GPP assigned payload type numbers

The payload types for AMR, EFR, and GSM-HR are dynamic payload types. In
theory those can have any number from the IANA reserved dynamic payload type
rante. However 3GPP TS 48.103 assignes AMR, EFR and GSM-HR a fixed payload type
number from the dynamic payload type range. Lets make sure our payload types
use the 3GPP payload type numbers instead of arbitrary choosen ones.

- change payload type define constants to match 3GPP TS 48.103

Change-Id: Ife9ea525a615685c4b2369e491db46452b63c6cb
Related: OS#2728
---
M include/osmocom/netif/rtp.h
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/80/9780/1

diff --git a/include/osmocom/netif/rtp.h b/include/osmocom/netif/rtp.h
index c01df41..8029803 100644
--- a/include/osmocom/netif/rtp.h
+++ b/include/osmocom/netif/rtp.h
@@ -77,12 +77,12 @@
 #define RTP_PT_GSM_FULL_PAYLOAD_LEN    33
 #define RTP_PT_GSM_FULL_DURATION       160     /* in samples. */

-#define RTP_PT_GSM_HALF                        96
+#define RTP_PT_GSM_HALF                        111     /* see also: 3GPP TS 
48.103 chapter 5.4.2.2 RTP Payload */

-#define RTP_PT_GSM_EFR                 97
+#define RTP_PT_GSM_EFR                 110     /* see also: 3GPP TS 48.103 
chapter 5.4.2.2 RTP Payload */
 #define RTP_PT_GSM_EFR_PAYLOAD_LEN     31
 #define RTP_PT_GSM_EFR_DURATION                160     /* in samples. */

-#define RTP_PT_AMR                     98
+#define RTP_PT_AMR                     112     /* see also: 3GPP TS 48.103 
chapter 5.4.2.2 RTP Payload */

 #endif

--
To view, visit https://gerrit.osmocom.org/9780
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife9ea525a615685c4b2369e491db46452b63c6cb
Gerrit-Change-Number: 9780
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>

Reply via email to