<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>there is \r\n after <br>
</p>
<p>a=rtpmap:8 PCMA/8000</p>
<p>because</p>
<p>--uniqueBoundary--</p>
<p>is on next line.</p>
<p>Maybe is the fault of the code extracting sdp from multi-part
body. Open an issue on github bug tracker not to forget about it.
If nobody looks at it, I will try to do it, but it may take few
days given traveling.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 18.08.17 22:21, Diego Nadares wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAP-r+ep2=ApQni7YuvKPvj5RYimCdFUz5qDzxyQXmLKK4-pD6w@mail.gmail.com">
<div dir="ltr">Hi guys,
<div><br>
</div>
<div>I have the following multipart body</div>
<div><br>
</div>
<div>
<div>Content-Type: multipart/mixed;boundary=uniqueBoundary</div>
<div>Remote-Party-ID: <a class="moz-txt-link-rfc2396E" href="tel:1112222;phone-context=+54"><tel:1112222;phone-context=+54></a></div>
<div>Content-Length: 364</div>
<div><br>
</div>
<div>--uniqueBoundary</div>
<div>Content-Type: application/sdp</div>
<div><br>
</div>
<div>v=0</div>
<div>o=user1 53655765 2353687637 IN IP4 111.111.111.111</div>
<div>s=-</div>
<div>c=IN IP4 111.111.111.111</div>
<div>t=0 0</div>
<div>m=audio 6000 RTP/AVP 8</div>
<div><b>a=rtpmap:8 PCMA/8000</b></div>
<div><b>--uniqueBoundary--</b></div>
<div>Content-Type: application/gtd</div>
<div>Content-Disposition: signal;handling=optional</div>
<div><br>
</div>
<div>IAM,</div>
<div>CPC,20</div>
<div>GCI,885sdfasdf1123</div>
<div><br>
</div>
<div>--uniqueBoundary--</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>As you can see <b>--uniqueBoundary </b>before <b>a=rtpmap:8
PCMA/8000</b> has not an extra '\r\n'. Is this correct? Or
should have it?</div>
<div><br>
</div>
<div>The thing is that rtpengine is receiving sdp with no final
'\r'n' from kamailio:</div>
<div><br>
Dump for 'offer' from <a href="http://127.0.0.1:37388"
moz-do-not-send="true">127.0.0.1:37388</a>: { "sdp":
"v=0#015#012o=user1 53655765 2353687637 IN IP4
111.111.111.111#015#012s=-#015#012c=IN IP4
111.111.111.111#015#012t=0 0#015#012m=audio 6000 RTP/AVP
8#015#012<b>a=rtpmap:8 PCMA/8000"</b>, "ICE": "remove",
"direction": [ "pub", "priv" ], "replace": [ "origin",
"session-connection" ], "transport-protocol": "RTP/AVP",
"call-id": "<a href="mailto:1-17755@111.111.111.111"
moz-do-not-send="true">1-17755@111.111.111.111</a>",
"received-from": [ "IP4", "111.111.111.111" ], "from-tag":
"1", "command": "offer" }</div>
<div><br>
</div>
<div>And the resulting sdp from rtpengine is this:<br>
</div>
<div><br>
</div>
<div>
<div>--uniqueBoundary</div>
<div>Content-Type: application/sdp</div>
<div><br>
</div>
<div>v=0</div>
<div>o=user1 53655765 2353687637 IN IP4 172.16.213.16</div>
<div>s=-</div>
<div>c=IN IP4 172.16.213.16</div>
<div>t=0 0</div>
<div>m=audio 35066 RTP/AVP 8</div>
<div><b>a=rtpmap:8 PCMA/8000a=sendrecv</b></div>
<div>a=rtcp:35067</div>
<div><br>
</div>
</div>
<div>The problem is related with that '\r\n' but Is this a
malformed message or a possible bug?</div>
<div><br>
</div>
<div>Thanks in advance!</div>
<div><br>
</div>
<div>Diego</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>