<p>There is an old issue in the OpenSIPS which may result in SDP containing mismatching protocols, when processing rtpproxy_offer() on a IPv6 message with default flags. This has been revealed by the new version of the <a href="https://travis-ci.org/sippy/voiptests/">voiptests</a></p>

<p><br>
00:00:03.089/GLOBAL/alice_ua: SENDING message to [::1]:5060:<br>
INVITE sip:bob_6@[::1]:5060 SIP/2.0<br>
v: SIP/2.0/UDP [::1]:5061;branch=z9hG4bKfffb7b9e25497c853146ea72a3399f5c;rport<br>
Max-Forwards: 70<br>
f: "Alice Smith" sip:alice_6_ipv6@[::1];tag=628b36c02f1d1d5a7b4305c050a3feb6<br>
t: sip:bob_6@[::1]<br>
i: 759e9723cfa1bc5c9c294b2a6c816e77@184.71.172.86<br>
CSeq: 200 INVITE<br>
m: Anonymous sip:alice_6_ipv6@[::1]:5061<br>
Expires: 300<br>
User-Agent: Sippy<br>
cisco-GUID: 3824430197-1272056386-4229849152-47475815<br>
h323-conf-id: 3824430197-1272056386-4229849152-47475815<br>
c: application/sdp<br>
l: 409</p>

<p>v=0<br>
o=- 986474003697 986474003697 IN IP6 ::1<br>
s=-<br>
c=IN IP6 2001:0:0:0:7c1:0:52b8:0<br>
t=0 0<br>
m=audio 40534 RTP/AVP 18 0 2 4 8 96 97 98 101<br>
a=rtpmap:18 G729a/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:2 G726-32/8000<br>
a=rtpmap:4 G723/8000<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:96 G726-40/8000<br>
a=rtpmap:97 G726-24/8000<br>
a=rtpmap:98 G726-16/8000<br>
a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-15<br>
a=ptime:30<br>
a=sendrecv<br>
</p>

<p><br>
00:00:03.090/GLOBAL/bob_ua: RECEIVED message from [::1]:5060:<br>
INVITE sip:bob_6@[::1]:5062 SIP/2.0<br>
Record-Route: sip:[0:0:0:0:0:0:0:1];lr;ftag=628b36c02f1d1d5a7b4305c050a3feb6<br>
Via: SIP/2.0/UDP [0:0:0:0:0:0:0:1]:5060;branch=z9hG4bKddc6.7a0c3345.0<br>
v: SIP/2.0/UDP [::1]:5061;received=0:0:0:0:0:0:0:1;branch=z9hG4bKfffb7b9e25497c853146ea72a3399f5c;rport=5061<br>
Max-Forwards: 69<br>
f: "Alice Smith" sip:alice_6_ipv6@[::1];tag=628b36c02f1d1d5a7b4305c050a3feb6<br>
t: sip:bob_6@[::1]<br>
i: 759e9723cfa1bc5c9c294b2a6c816e77@184.71.172.86<br>
CSeq: 200 INVITE<br>
m: Anonymous sip:alice_6_ipv6@[::1]:5061<br>
Expires: 300<br>
User-Agent: Sippy<br>
cisco-GUID: 3824430197-1272056386-4229849152-47475815<br>
h323-conf-id: 3824430197-1272056386-4229849152-47475815<br>
c: application/sdp<br>
Content-Length: 419</p>

<p>v=0<br>
o=- 986474003697 986474003697 IN IP6 ::1<br>
s=-<br>
c=IN IP4 0:0:0:0:0:0:0:1<br>
t=0 0<br>
m=audio 12260 RTP/AVP 18 0 2 4 8 96 97 98 101<br>
a=rtpmap:18 G729a/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:2 G726-32/8000<br>
a=rtpmap:4 G723/8000<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:96 G726-40/8000<br>
a=rtpmap:97 G726-24/8000<br>
a=rtpmap:98 G726-16/8000<br>
a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-15<br>
a=ptime:30<br>
a=sendrecv<br>
a=nortpproxy:yes<br>
</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/523'>https://github.com/kamailio/kamailio/pull/523</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Fix IPv6 handling with the default setup. With the current code,</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/523/files#diff-0">modules/rtpproxy/rtpproxy.c</a>
    (74)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/523.patch'>https://github.com/kamailio/kamailio/pull/523.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/523.diff'>https://github.com/kamailio/kamailio/pull/523.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/523">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZemMr2O1HzOCzhLHSZm-uS-4o5BVks5po1-CgaJpZM4Hl3iM.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/pull/523"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>