<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9779">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ortp: 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: If5bfa4aac37ce95741322f6a7481cf612425d77b<br>Related: OS#2728<br>---<br>M include/osmocom/trau/osmo_ortp.h<br>1 file changed, 6 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/79/9779/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/trau/osmo_ortp.h b/include/osmocom/trau/osmo_ortp.h</span><br><span>index 5fb2960..9cd21c1 100644</span><br><span>--- a/include/osmocom/trau/osmo_ortp.h</span><br><span>+++ b/include/osmocom/trau/osmo_ortp.h</span><br><span>@@ -15,12 +15,12 @@</span><br><span> </span><br><span> /*! \brief standard payload type for GSM Full Rate (FR) */</span><br><span> #define RTP_PT_GSM_FULL 3</span><br><span style="color: hsl(0, 100%, 40%);">-/*! \brief Osmocom pseudo-static paylaod type for Half Rate (HR) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define RTP_PT_GSM_HALF 96</span><br><span style="color: hsl(0, 100%, 40%);">-/*! \brief Osmocom pseudo-static paylaod type for Enhanced Full Rate (EFR) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define RTP_PT_GSM_EFR 97</span><br><span style="color: hsl(0, 100%, 40%);">-/*! \brief Osmocom pseudo-static paylaod type for Adaptive Multi Rate (AMR) */</span><br><span style="color: hsl(0, 100%, 40%);">-#define RTP_PT_AMR 98</span><br><span style="color: hsl(120, 100%, 40%);">+/*! \brief 3gpp (TS 48.103) pseudo-static paylaod type for Half Rate (HR) */</span><br><span style="color: hsl(120, 100%, 40%);">+#define RTP_PT_GSM_HALF 111</span><br><span style="color: hsl(120, 100%, 40%);">+/*! \brief 3gpp (TS 48.103) pseudo-static paylaod type for Enhanced Full Rate (EFR) */</span><br><span style="color: hsl(120, 100%, 40%);">+#define RTP_PT_GSM_EFR 110</span><br><span style="color: hsl(120, 100%, 40%);">+/*! \brief 3gpp (TS 48.103) pseudo-static paylaod type for Adaptive Multi Rate (AMR) */</span><br><span style="color: hsl(120, 100%, 40%);">+#define RTP_PT_AMR 112</span><br><span> </span><br><span> #define GSM_VOICE_SAMPLE_RATE_HZ 8000</span><br><span> #define GSM_VOICE_SAMPLES_PER_MS (GSM_VOICE_SAMPLE_RATE_HZ / 1000)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9779">change 9779</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/9779"/><meta itemprop="name" content="View Change"/></div></div>

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