<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9782">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">rtp_proxy: use 3GPP assigned payload type numbers<br><br>The payload types for AMR, EFR, and GSM-HR are dynamic payload types. In<br>theory those can have any number from the IANA reserved dynamic payload type<br>rante. However 3GPP TS 48.103 assignes AMR, EFR and GSM-HR a fixed payload type<br>number from the dynamic payload type range. Lets make sure our payload types<br>use the 3GPP payload type numbers instead of arbitrary choosen ones.<br><br>- change payload type define constants to match 3GPP TS 48.103<br><br>Change-Id: I96784be13254b16744211ed3bd1c9e6ad9a792ba<br>Related: OS#2728<br>---<br>M openbsc/include/openbsc/rtp_proxy.h<br>1 file changed, 6 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/82/9782/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/openbsc/include/openbsc/rtp_proxy.h b/openbsc/include/openbsc/rtp_proxy.h</span><br><span>index 52ffefd..2969889 100644</span><br><span>--- a/openbsc/include/openbsc/rtp_proxy.h</span><br><span>+++ b/openbsc/include/openbsc/rtp_proxy.h</span><br><span>@@ -30,9 +30,12 @@</span><br><span> #include <openbsc/mncc.h></span><br><span> </span><br><span> #define RTP_PT_GSM_FULL 3</span><br><span style="color: hsl(0, 100%, 40%);">-#define RTP_PT_GSM_HALF 96</span><br><span style="color: hsl(0, 100%, 40%);">-#define RTP_PT_GSM_EFR 97</span><br><span style="color: hsl(0, 100%, 40%);">-#define RTP_PT_AMR 98</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/* see also: 3GPP TS 48.103 chapter 5.4.2.2 RTP Payload */</span><br><span style="color: hsl(120, 100%, 40%);">+#define RTP_PT_GSM_HALF 111</span><br><span style="color: hsl(120, 100%, 40%);">+#define RTP_PT_GSM_EFR 110</span><br><span style="color: hsl(120, 100%, 40%);">+#define RTP_PT_AMR 112</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> #define RTP_LEN_GSM_FULL 33</span><br><span> #define RTP_LEN_GSM_HALF 15</span><br><span> #define RTP_LEN_GSM_EFR 31</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9782">change 9782</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/9782"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: openbsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I96784be13254b16744211ed3bd1c9e6ad9a792ba </div>
<div style="display:none"> Gerrit-Change-Number: 9782 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>