<p>For example calling from kamailio config file<br>
<code>rtpengine_answer("SDES-off ICE=remove trust-address replace-origin replace-session-connection UDP/TLS/RTP/SAVP");</code> will result in passing "UDP/TLS/RTP/SAVP" to rtpengine as an undefined flag instead of interpreting it as a valid transport protocol.<br>
Relevant entry form rtpengine log:<br>
<code>Feb 14 04:55:20 rtpengine[27464]: DEBUG: [ct5Atc9TLOVPwKPDYBHPdwDz@y94Z4s9yJ1MvK7XDiiI7vbC3]: Dump for 'answer' from 127.0.0.1:57578: { "sdp": "</code><br>
<code>v=0</code><br>
<code>o=- 3727601701 3727601702 IN IP4 10.10.1.145</code><br>
<code>s=pjmedia</code><br>
<code>c=IN IP4 162.253.31.67</code><br>
<code>b=AS:1974</code><br>
<code>t=0 0</code><br>
<code>a=X-nat:0</code><br>
<code>m=audio 18228 RTP/AVP 8 0 9 101</code><br>
<code>c=IN IP4 162.253.31.67</code><br>
<code>b=TIAS:64000</code><br>
<code>a=rtcp:18229 IN IP4 162.253.31.67</code><br>
<code>a=sendrecv</code><br>
<code>a=rtpmap:9 G722/8000</code><br>
<code>a=rtpmap:8 PCMA/8000</code><br>
<code>a=rtpmap:0 PCMU/8000</code><br>
<code>a=rtpmap:101 telephone-event/8000</code><br>
<code>a=fmtp:101 0-15</code><br>
<code>m=video 18344 RTP/AVP 99 34</code><br>
<code>c=IN IP4 162.253.31.67</code><br>
<code>b=TIAS:1800000</code><br>
<code>a=rtcp:18345 IN IP4 162.253.31.67</code><br>
<code>a=sendrecv</code><br>
<code>a=rtpmap:34 H263/90000</code><br>
<code>a=fmtp:34 CIF4=1;CIF=1;QCIF=1;SQCIF=1</code><br>
<code>a=rtcp-fb:* nack pli</code><br>
<code>a=rtcp-fb:* nack</code><br>
<code>a=rtcp-fb:* ccm fir</code><br>
<code>a=rtcp-fb:* ccm tmmbr</code><br>
<code>a=rtpmap:99 H264/90000</code><br>
<code>a=fmtp:99 profile-level-id=42001f; packetization-mode=1;max-br=1800</code><br>
<code>m=text 0 RTP/AVP 105 102",</code><br>
<code>"ICE": "remove",</code><br>
<code>"flags": [ "SDES-off", "trust-address", "UDP/TLS/RTP/SAVP" ],</code><br>
<code>"replace": [ "origin", "session-connection" ],</code><br>
<code>"rtcp-mux": [ "demux" ],</code><br>
<code>"call-id": "ct5Atc9TLOVPwKPDYBHPdwDz@y94Z4s9yJ1MvK7XDiiI7vbC3",</code><br>
<code>"received-from": [ "IP4", "162.253.31.86" ],</code><br>
<code>"from-tag": "g61LnUx6Lm5ZwUAp",</code><br>
<code>"to-tag": "RCzLEby054b4GsK8OM5th2kArDosQ9N6", "command": "answer"</code><br>
<code>}</code><br>
<code>Feb 14 04:55:20 kammed-1-lv-103 rtpengine[27464]: WARNING: [ct5Atc9TLOVPwKPDYBHPdwDz@y94Z4s9yJ1MvK7XDiiI7vbC3]: Unknown flag encountered: 'UDP/TLS/RTP/SAVP'</code></p>
<p>I know that rtpengine itself can correctly handle UDP/TLS/RTP/SAVP and UDP/TLS/RTP/SAVPF as long as kamailio rtpengine module passes them as transport protocol and not flags.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1458#issuecomment-369053981">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZZmUEEvB62jxknIVpE6v3a6liPADks5tZIVKgaJpZM4SVLjF">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZYzZzaxWoSQrCH0sa_VwfbnynPjMks5tZIVKgaJpZM4SVLjF.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1458#issuecomment-369053981"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@jerzyptak in #1458: For example calling from kamailio config file \r\n`rtpengine_answer(\"SDES-off ICE=remove trust-address replace-origin replace-session-connection UDP/TLS/RTP/SAVP\");` will result in passing \"UDP/TLS/RTP/SAVP\" to rtpengine as an undefined flag instead of interpreting it as a valid transport protocol.\r\nRelevant entry form rtpengine log:\r\n`Feb 14 04:55:20 rtpengine[27464]: DEBUG: [ct5Atc9TLOVPwKPDYBHPdwDz@y94Z4s9yJ1MvK7XDiiI7vbC3]: Dump for 'answer' from 127.0.0.1:57578: { \"sdp\": \"`\r\n`\t\tv=0`\r\n`\t\to=- 3727601701 3727601702 IN IP4 10.10.1.145`\r\n`\t\ts=pjmedia`\r\n`\t\tc=IN IP4 162.253.31.67`\r\n`\t\tb=AS:1974`\r\n`\t\tt=0 0`\r\n`\t\ta=X-nat:0`\r\n`\t\tm=audio 18228 RTP/AVP 8 0 9 101`\r\n`\t\tc=IN IP4 162.253.31.67`\r\n`\t\tb=TIAS:64000`\r\n`\t\ta=rtcp:18229 IN IP4 162.253.31.67`\r\n`\t\ta=sendrecv`\r\n`\t\ta=rtpmap:9 G722/8000`\r\n`\t\ta=rtpmap:8 PCMA/8000`\r\n`\t\ta=rtpmap:0 PCMU/8000`\r\n`\t\ta=rtpmap:101 telephone-event/8000`\r\n`\t\ta=fmtp:101 0-15`\r\n`\t\tm=video 18344 RTP/AVP 99 34`\r\n`\t\tc=IN IP4 162.253.31.67`\r\n`\t\tb=TIAS:1800000`\r\n`\t\ta=rtcp:18345 IN IP4 162.253.31.67`\r\n`\t\ta=sendrecv`\r\n`\t\ta=rtpmap:34 H263/90000`\r\n`\t\ta=fmtp:34 CIF4=1;CIF=1;QCIF=1;SQCIF=1`\r\n`\t\ta=rtcp-fb:* nack pli`\r\n`\t\ta=rtcp-fb:* nack`\r\n`\t\ta=rtcp-fb:* ccm fir`\r\n`\t\ta=rtcp-fb:* ccm tmmbr`\r\n`\t\ta=rtpmap:99 H264/90000`\r\n`\t\ta=fmtp:99 profile-level-id=42001f; packetization-mode=1;max-br=1800`\r\n`\t\tm=text 0 RTP/AVP 105 102\", `\r\n`\t\"ICE\": \"remove\", `\r\n`\t\"flags\": [ \"SDES-off\", \"trust-address\", \"UDP/TLS/RTP/SAVP\" ], `\r\n`\t\"replace\": [ \"origin\", \"session-connection\" ], `\r\n`\t\"rtcp-mux\": [ \"demux\" ], `\r\n`\t\"call-id\": \"ct5Atc9TLOVPwKPDYBHPdwDz@y94Z4s9yJ1MvK7XDiiI7vbC3\", `\r\n`\t\"received-from\": [ \"IP4\", \"162.253.31.86\" ], `\r\n`\t\"from-tag\": \"g61LnUx6Lm5ZwUAp\", `\r\n`\t\"to-tag\": \"RCzLEby054b4GsK8OM5th2kArDosQ9N6\", \"command\": \"answer\" `\r\n`}`\r\n`Feb 14 04:55:20 kammed-1-lv-103 rtpengine[27464]: WARNING: [ct5Atc9TLOVPwKPDYBHPdwDz@y94Z4s9yJ1MvK7XDiiI7vbC3]: Unknown flag encountered: 'UDP/TLS/RTP/SAVP' `\r\n\r\nI know that rtpengine itself can correctly handle UDP/TLS/RTP/SAVP and UDP/TLS/RTP/SAVPF as long as kamailio rtpengine module passes them as transport protocol and not flags.\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1458#issuecomment-369053981"}}}</script>