<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hi,</div>
<div> </div>
<div>I've done some exploring of the source code and have a hunch as to what's happening.</div>
<div> </div>
<div>The full trace is as follows where:</div>
<ol style="margin:0;padding-left:36pt;">
<li>Endpoints = 10.1.17.12 / 10.249.224.9</li><li>SRS = 10.1.17.24</li><li>OpenSIPS = 10.1.17.15</li></ol>
<div> </div>
<div>12 21:33:50.208348 10.1.17.15 5060 10.249.224.9 54204 SIP/SDP 1125 Request: INVITE <a href="sip:1125@10.249.224.9:54204;ob"><font color="#467886"><u>sip:1125@10.249.224.9:54204;ob</u></font></a> | </div>
<div>13 21:33:50.235594 10.249.224.9 54204 10.1.17.15 5060 SIP 539 Status: 100 Trying | </div>
<div>14 21:33:50.235938 10.249.224.9 54204 10.1.17.15 5060 SIP 725 Status: 180 Ringing | </div>
<div>15 21:33:50.236090 10.1.17.15 5060 10.1.17.12 5060 SIP 641 Status: 180 Ringing | </div>
<div>20 21:33:53.262006 10.249.224.9 54204 10.1.17.15 5060 SIP/SDP 1171 Status: 200 OK (INVITE) | </div>
<div>21 21:33:53.262560 10.1.17.15 5060 10.1.17.12 5060 SIP/SDP 1073 Status: 200 OK (INVITE) | </div>
<div>22 21:33:53.263170 10.1.17.12 5060 10.1.17.15 5060 SIP 532 Request: ACK <a href="sip:1125@10.249.224.9:54204;ob"><font color="#467886"><u>sip:1125@10.249.224.9:54204;ob</u></font></a> | </div>
<div>24 21:33:53.263325 10.1.17.15 5060 10.1.17.24 5060 SIP/SDP/XML 1026 Request: INVITE <a href="sip:10.1.17.24:5060"><font color="#467886"><u>sip:10.1.17.24:5060</u></font></a> |</div>
<div> </div>
<div>The errors logged:</div>
<div> </div>
<div>Apr 22 21:33:50 vltelcceprd211 /usr/sbin/opensips[902536]: ERROR:rtp_relay:rtp_relay_copy_offer: rtp not established!</div>
<div>Apr 22 21:33:50 vltelcceprd211 /usr/sbin/opensips[902536]: ERROR:siprec:src_start_recording: could not start recording!</div>
<div>Apr 22 21:33:50 vltelcceprd211 /usr/sbin/opensips[902536]: ERROR:siprec:tm_start_recording: cannot start recording!</div>
<div> </div>
<div>It looks like either the callback tm_start_recording is being called too early on the 1XX packets or rtp_relay_copy_offer isn’t handling the unconfirmed session correctly?</div>
<div> </div>
<div>And perhaps the invite to the SRS shouldn’t be going out if there’s no RTP stream?</div>
<div> </div>
<div>I’m of course not an expert in the OpenSIPS architecture so I could be wrong. :) </div>
<div> </div>
<div>I’d appreciate it if someone more knowledgeable could confirm.</div>
<div> </div>
<div>Kind regards</div>
<div> </div>
<div>Luis</div>
<div> </div>
<div>Date: Tue, 23 Apr 2024 08:39:33 +0000</div>
<div>From: Luis Leal <<a href="mailto:luisl@scarab.co.za">luisl@scarab.co.za</a>></div>
<div>To: "<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>" <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>></div>
<div>Subject: [OpenSIPS-Users] OpenSIPS 3.4 SIPREC Issue</div>
<div>Message-ID: <<a href="mailto:47660a2ed6764bc58081e8e2a54f1a86@scarab.co.za">47660a2ed6764bc58081e8e2a54f1a86@scarab.co.za</a>></div>
<div>Content-Type: text/plain; charset="utf-8"</div>
<div> </div>
<div>Hi there,</div>
<div> </div>
<div>We're encountering a curious issue with SIPREC in upgrading from 3.2 to 3.4.4 and I was hoping someone would be able to shed some light on it.</div>
<div> </div>
<div>There are two symptoms:</div>
<div> </div>
<div> 1. Errors in the opensips log</div>
<div> 2. SIPREC invite with correct SDP details (as per rtpengine log) but stream metadata missing from the XML metadata</div>
<div> </div>
<div>The errors in the log are as follows:</div>
<div> </div>
<div>Apr 22 21:33:50 vltelcceprd211 /usr/sbin/opensips[902536]: ERROR:rtp_relay:rtp_relay_copy_offer: rtp not established!</div>
<div>Apr 22 21:33:50 vltelcceprd211 /usr/sbin/opensips[902536]: ERROR:siprec:src_start_recording: could not start recording!</div>
<div>Apr 22 21:33:50 vltelcceprd211 /usr/sbin/opensips[902536]: ERROR:siprec:tm_start_recording: cannot start recording!</div>
<div> </div>
<div>The curious part is that the above error happens before the 200 OK is received. The relevant SIP trace is:</div>
<div> </div>
<div>12 21:33:50.208348 10.1.17.15 5060 10.249.224.9 54204 SIP/SDP 1125 Request: INVITE <a href="sip:1125@10.249.224.9:54204;ob">sip:1125@10.249.224.9:54204;ob</a> |</div>
<div> </div>
<div>...Snip...</div>
<div> </div>
<div>21 21:33:53.262560 10.1.17.15 5060 10.1.17.12 5060 SIP/SDP 1073 Status: 200 OK (INVITE) |</div>
<div> </div>
<div>The SIPREC invite is still generated though but is missing stream details (participant details masked with +27XXXXXXXXX for privacy):</div>
<div> </div>
<div> Session Initiation Protocol (SIP as raw text)</div>
<div> INVITE <a href="sip:10.1.17.24:5060">sip:10.1.17.24:5060</a> SIP/2.0</div>
<div> Via: SIP/2.0/UDP 10.1.17.15:5060;branch=z9hG4bK0235.aca30813.0</div>
<div> To: <a href="sip:10.1.17.24:5060">sip:10.1.17.24:5060</a></div>
<div> From: <a href="sip:10.1.17.24:5060;tag=c5d35275eae8a009626d3007dc8441a2-ce21">sip:10.1.17.24:5060;tag=c5d35275eae8a009626d3007dc8441a2-ce21</a></div>
<div> CSeq: 2 INVITE</div>
<div> Call-ID: B2B.364.22430.1713814432.535273629</div>
<div> Max-Forwards: 70</div>
<div> Content-Length: 1995</div>
<div> User-Agent: OpenSIPS (3.4.4 (x86_64/linux))</div>
<div> Require: siprec</div>
<div> Content-Type: multipart/mixed;boundary=OSS-unique-boundary-42</div>
<div> Contact: <a href="sip:10.1.17.15:5060;+sip.src">sip:10.1.17.15:5060;+sip.src</a></div>
<div> </div>
<div> --OSS-unique-boundary-42</div>
<div> Content-Type: application/sdp</div>
<div> </div>
<div> v=0</div>
<div> o=- 7360776941148045834 7360776941148045834 IN IP4 10.1.17.8</div>
<div> s=rtpengine-12-3-1-2-0-mr12-3-1-2-1-el9</div>
<div> t=0 0</div>
<div> m=audio 31432 RTP/AVP 8 101</div>
<div> c=IN IP4 10.1.17.8</div>
<div> a=label:0</div>
<div> a=rtpmap:8 PCMA/8000</div>
<div> a=rtpmap:101 telephone-event/8000</div>
<div> a=fmtp:101 0-16</div>
<div> a=ssrc:1120210035 cname:060168be20ab122b</div>
<div> a=sendonly</div>
<div> a=rtcp:31433</div>
<div> m=audio 36760 RTP/AVP 8 101</div>
<div> c=IN IP4 10.1.17.8</div>
<div> a=label:1</div>
<div> a=rtpmap:8 PCMA/8000</div>
<div> a=rtpmap:101 telephone-event/8000</div>
<div> a=fmtp:101 0-16</div>
<div> a=sendonly</div>
<div> a=rtcp:36761</div>
<div> a=ptime:20</div>
<div> </div>
<div> --OSS-unique-boundary-42</div>
<div> Content-Type: application/rs-metadata+xml</div>
<div> Content-Disposition: recording-session</div>
<div> </div>
<div> <?xml version="1.0" encoding="UTF-8"?></div>
<div> <recording xmlns='urn:ietf:params:xml:ns:recording:1'></div>
<div> <datamode>complete</datamode></div>
<div> <session session_id="bjfrXRxoRe26JWSzzS2Cag=="></div>
<div> <sipSessionID>2d409cb6-b066-4579-8c49-c6e6a7b9d600</sipSessionID></div>
<div> </session></div>
<div> <participant participant_id="FYGs/tYNSeym0Ty1p+NTIw=="></div>
<div> <nameID aor=sip:+27XXXXXXXXX@10.1.17.12></div>
<div> <name>+27XXXXXXXXX</name></div>
<div> </nameID></div>
<div> </participant></div>
<div> <participant participant_id="F2NjJh6eQBmXVzUNZUDmMA=="></div>
<div> <nameID aor=sip:1125@sipcce.metmom.mmih.biz/></div>
<div> </participant></div>
<div> <sessionrecordingassoc session_id="bjfrXRxoRe26JWSzzS2Cag=="></div>
<div> <associate-time>2024-04-22T21:33:50+0200</associate-time></div>
<div> </sessionrecordingassoc></div>
<div> <participantsessionassoc participant_id="FYGs/tYNSeym0Ty1p+NTIw==" session_id="bjfrXRxoRe26JWSzzS2Cag=="></div>
<div> <associate-time>2024-04-22T21:33:50+0200</associate-time></div>
<div> </participantsessionassoc></div>
<div> <participantsessionassoc participant_id="F2NjJh6eQBmXVzUNZUDmMA==" session_id="bjfrXRxoRe26JWSzzS2Cag=="></div>
<div> <associate-time>2024-04-22T21:33:50+0200</associate-time></div>
<div> </participantsessionassoc></div>
<div> <participantstreamassoc participant_id="FYGs/tYNSeym0Ty1p+NTIw=="></div>
<div> </participantstreamassoc></div>
<div> <participantstreamassoc participant_id="F2NjJh6eQBmXVzUNZUDmMA=="></div>
<div> </participantstreamassoc></div>
<div> </recording></div>
<div> --OSS-unique-boundary-42--</div>
<div> </div>
<div>Is there a configuration item we're missing perhaps?</div>
<div> </div>
<div>Kind regards</div>
<div> </div>
<div>Luis Leal</div>
<div> </div>
<div> </div>
<div> </div>
<div>-------------- next part --------------</div>
<div>An HTML attachment was scrubbed...</div>
<div>URL: <<a href="http://lists.opensips.org/pipermail/users/attachments/20240423/af8657b5/attachment.html">http://lists.opensips.org/pipermail/users/attachments/20240423/af8657b5/attachment.html</a>></div>
<div> </div>
<div>------------------------------</div>
<div> </div>
<div>Subject: Digest Footer</div>
<div> </div>
<div>_______________________________________________</div>
<div>Users mailing list</div>
<div><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a></div>
<div><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div>
<div> </div>
<div> </div>
<div>------------------------------</div>
<div> </div>
<div>End of Users Digest, Vol 189, Issue 77</div>
<div>**************************************</div>
<div> </div>
</span></font>
</body>
</html>