<div><div dir="auto">Can you please share a pcap?</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 1 Aug 2019 at 13:40, Dragomir Haralambiev <<a href="mailto:goup2010@gmail.com">goup2010@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>I check this. All like OK. Here is SIP flow<br><br>1. tpengine_offer<br><br>UAC1 SRTP ---INVITE ---->  Opensips+rtpengine<br><b>audio 4004 RTP/SAVP 8 0 18 101</b><br>$var(rtpengine_flags) = "RTP/AVP replace-session-connection replace-origin ICE=remove";<br>tpengine_offer("$var(rtpengine_flags)");<br>Opensips+rtpengine ----- INVITE --> UAC2 RTP <br><b>audio 50190 RTP/AVP 8 0 18 101 </b><br><br>2. rtpengine_answer when receive 183 (Early Media)<br><b>audio 15612 RTP/AVP 0 8 18 101</b><br>Opensips+rtpengine <---- 183 Early Media ---- UAC2 RTP  <br>$var(rtpengine_flags) = "RTP/SAVP replace-session-connection replace-origin ICE=force";<br>rtpengine_answer("$var(rtpengine_flags)");<br><br>3. rtpengine_answer when receive 200 OK<br><b>audio 15612 RTP/AVP 0 8 18 101</b><br>Opensips+rtpengine <---- 200 OK---- UAC2 RTP  <br>$var(rtpengine_flags) = "RTP/SAVP replace-session-connection replace-origin ICE=force";<br>rtpengine_answer("$var(rtpengine_flags)");<br>UAC1 <----- 200 OK ----- Opensips+rtpengine<br><b>audio 50208 RTP/SAVP 0 8 18 101</b><br><br><br>4. tpengine_offer when receive re-INVITE<br>UAC1 SRTP ---INVITE ---->  Opensips+rtpengine<br><b>audio 4004 RTP/SAVP 0 101</b><br>$var(rtpengine_flags) = "RTP/AVP replace-session-connection replace-origin ICE=remove";<br>tpengine_offer("$var(rtpengine_flags)");<br>Opensips+rtpengine ----- INVITE --> UAC2 RTP <br><b>audio 50190 RTP/AVP 0 101</b><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">На чт, 1.08.2019 г. в 15:16 ч. David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> написа:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="auto">You must check your SDPs, verify all going to srtp is indeed SRTP SDP. And all going to UAC is not SRTP</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 1 Aug 2019 at 11:59, Dragomir Haralambiev <<a href="mailto:goup2010@gmail.com" target="_blank">goup2010@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>1. tpengine_offer</div><div><br></div><div>UAC1 SRTP ---INVITE ---->  Opensips+rtpengine<br></div><div>$var(rtpengine_flags) = "RTP/AVP replace-session-connection replace-origin ICE=remove";<br></div><div>tpengine_offer("$var(rtpengine_flags)");<br></div><div>Opensips+rtpengine ----- INVITE --> UAC2 RTP <br> <br></div><div><br></div><div>2. rtpengine_answer when receive 183 (Early Media)<br>Opensips+rtpengine <---- 183 Early Media ---- UAC2 RTP  </div><div>$var(rtpengine_flags) = "RTP/SAVP replace-session-connection replace-origin ICE=force";<br></div><div>rtpengine_answer("$var(rtpengine_flags)");<br></div><div><br></div><div><div>3. rtpengine_answer when receive 200 OK<br>Opensips+rtpengine <---- 200 OK---- UAC2 RTP  </div><div>$var(rtpengine_flags) = "RTP/SAVP replace-session-connection replace-origin ICE=force";<br></div><div>rtpengine_answer("$var(rtpengine_flags)");</div></div><div><br></div><div>4. tpengine_offer when receive re-INVITE</div><div><div>UAC1 SRTP ---INVITE ---->  Opensips+rtpengine<br></div><div>$var(rtpengine_flags) = "RTP/AVP replace-session-connection replace-origin ICE=remove";<br></div><div>tpengine_offer("$var(rtpengine_flags)");<br></div><div>Opensips+rtpengine ----- INVITE --> UAC2 RTP </div></div><div><br></div><div><br></div><div>In this case UAC1 SRTP not receive voice.</div><div><br></div><div>Best regards,</div><div>Dragomir</div></div><div dir="auto"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 31, 2019, 16:15 David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="auto">Hello,</div></div><div dir="auto"><br></div><div dir="auto">You need to do this for every leg of the call. This means:</div><div dir="auto"><br></div><div dir="auto">Call from SRTP client TO non-SRTP:</div><div dir="auto">Remove the ICE, etc.</div><div dir="auto"><br></div><div dir="auto">When the REPLY with the 200 SDP comes back FROM the non-SRTP, you need to ADD ICE, etc.</div><div dir="auto"><br></div><div dir="auto">Hope that makes sense</div><div dir="auto"><br></div><div dir="auto">David</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 31 Jul 2019 at 14:03, Dragomir Haralambiev <<a href="mailto:goup2010@gmail.com" rel="noreferrer" target="_blank">goup2010@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>When change the answer flag to <br><div><br></div><div>$var(rtpengine_flags) = "

RTP/SAVP  rtcp-mux-offer ICE=force";<br> rtpengine_answer("$var(rtpengine_flags)");</div><div><br>Call is connected but UAC1 not send and receive voices.<br><br>Regards,<br><br>Dragomir</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">На ср, 31.07.2019 г. в 15:53 ч. Sasmita Panda <<a href="mailto:spanda@3clogic.com" rel="noreferrer" target="_blank">spanda@3clogic.com</a>> написа:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Dragomir, <div><br></div><div>I had mentioned to modify this according to your requirement .   If your phone only support RTP/SAVP then change the flag what I have mentioned  while answering . </div><div><br></div><div><br clear="all"><div><div dir="ltr" class="m_-7764297873334163620gmail-m_-8057423983614491610m_-1756204680590074018gmail-m_6344501278610946311m_-4179999896114864088m_5211163795673592186gmail-m_1480638525637025979gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Senior Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 31, 2019 at 6:17 PM Johan De Clercq <<a href="mailto:Johan@democon.be" rel="noreferrer" target="_blank">Johan@democon.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Use rtp/savp</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 31 Jul 2019, 14:40 Dragomir Haralambiev, <<a href="mailto:goup2010@gmail.com" rel="noreferrer" target="_blank">goup2010@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Thanks for your replay, but this not working.<br><br>UAC1 receive 183 session progress with:<br>receive audio 50106 UDP/TLS/RTP/SAVP 0 8 18 101<br><br>UAC1   send to Opensips CANCEL.<br><br>I make test with MicroSips latest version.</div><div><br></div><div>Best regards,</div><div>Dragomir</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">На ср, 31.07.2019 г. в 15:04 ч. Sasmita Panda <<a href="mailto:spanda@3clogic.com" rel="noreferrer noreferrer" target="_blank">spanda@3clogic.com</a>> написа:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi , <div><br></div><div>You have to do something like below  wherever you are calling rtpengine_offer/rtpengine_answer. </div><div><br></div><div>$var(rtpengine_flags) = "RTP/AVP replace-session-connection replace-origin ICE=remove";<br> rtpengine_offer("$var(rtpengine_flags)");</div><div><br></div><div>$var(rtpengine_flags) = "UDP/TLS/RTP/SAVP rtcp-mux-offer ICE=force";<br> rtpengine_answer("$var(rtpengine_flags)");</div><div><br></div><div>You can modify this according to your requirement . </div><div><br><div><div dir="ltr" class="m_-7764297873334163620gmail-m_-8057423983614491610m_-1756204680590074018gmail-m_6344501278610946311m_-4179999896114864088m_5211163795673592186gmail-m_1480638525637025979gmail-m_-7879230189473668138m_-2933306098099706415gmail-m_-5866768877819836426gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><i><br></i></b></div><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Senior Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 31, 2019 at 5:16 PM Dragomir Haralambiev <<a href="mailto:goup2010@gmail.com" rel="noreferrer noreferrer" target="_blank">goup2010@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have 2 applications connected to Opensips+rtpengine:<br>UAC1 -<span style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-size:13px">use encryption always.</span><span style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-size:13px"> </span>SRTP (RTP/SAVP)<br>UAC2 -

<span style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-size:13px">never use encryption</span>  <span style="font-size:13px;color:rgb(0,0,0);font-family:Arial,Helvetica">.</span><span style="font-size:13px;color:rgb(0,0,0);font-family:Arial,Helvetica"> </span>RTP (RTP/AVP)  <br><br>How to setup Opensips to make follow call:<br>UAC1 SRTP -----> Opensips+rtpengine -------> UAC2 RTP</div><div><br></div><div>Thanks,</div><div>Dragomir</div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="m_-7764297873334163620gmail-m_-8057423983614491610m_-1756204680590074018gmail-m_6344501278610946311m_-4179999896114864088gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" rel="noreferrer" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="m_-7764297873334163620gmail-m_-8057423983614491610gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>