<div dir="ltr">Hi Igor, hi kamailions,<div><br></div><div>i create an kamailio logfile with sipflow via $mb. Its corresponding to the kamailio.cfg in this thread.</div><div>Callflow is B2BUA 172.20.170.1 -->  172.20.120.59  --> <a href="http://172.20.120.101/212.XX.XX.XXX">172.20.120.101/212.XX.XX.XXX</a> --> MS-Teams.</div><div><br></div><div>172.20.170.1 B2BUA, unencrypted media</div><div>172.20.120.59 INTERNAL SIP-ROUTER (no problems, no media)<br></div><div><br></div><div>SBC/Kamailio</div><div>172.20.120.101 (internal)</div><div>212.XX.XX.XXX (external)   <br></div><div><br></div><div>After successful connection i press the "on hold" button in MS-Teams chat to force an RE-INVITE.</div><div>Here you see the 200 OK without SRTP to MS-TEAMS</div><div><br><a href="https://gist.github.com/khorsmann/9951b02f03970d45bafb0b59d26d6a02#file-kamailio-logfile-txt-L895">https://gist.github.com/khorsmann/9951b02f03970d45bafb0b59d26d6a02#file-kamailio-logfile-txt-L895</a><br>200 OK without SRTP<br><br><a href="https://gist.github.com/khorsmann/9951b02f03970d45bafb0b59d26d6a02#file-kamailio-logfile-txt-L994">https://gist.github.com/khorsmann/9951b02f03970d45bafb0b59d26d6a02#file-kamailio-logfile-txt-L994</a><br>REASON: Q.850;cause=79;text="InternalDiagCode: SrtpEncryptionRequired, InternalErrorPhrase: Remote did not offer required SRTP"<br></div><div><br></div><div>Cheers Karsten</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 7. Nov. 2019 um 12:01 Uhr schrieb Igor Olhovskiy <<a href="mailto:igorolhovskiy@gmail.com">igorolhovskiy@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>Can you give an example of SIP trace where it's not working as expected?</div><br><div>Cause reading through config will not help much without setting up a lab.</div><br><div>On Nov 7 2019, at 11:27 am, Karsten Horsmann <<a href="mailto:khorsmann@gmail.com" target="_blank">khorsmann@gmail.com</a>> wrote:</div><blockquote><div><div><div><div>Hello Mailinglist,</div><div><br></div><div>i try to figure out, how to solve RE-INVITES and SRTP:</div><div><br></div><div><div>i have an kamailio route names route[MEDIAPROXY] that i used to controll rtpengine in an private and public ip setup. This works fine for me now.</div></div><div><br></div><div>It use the permission module and the adress table to figure out </div><div><div>$var(mediagroup) = allow_address_group($Ri, 0); received from internal or external ip.</div></div><div>The idea is from SBC-OS chamless stolen, so thanks for that.</div><div><br></div><div>So fare so good. I adapted SRTP also to this.</div><div>But on RE-INVITES it stops handling SRTP correctly to the encryption upstream.</div><div>And i am sure, its my fault. But i have no clue how to detect that correctly.</div><div><br></div><div>Any hints where i can read more about an correct handling on this?</div><div><br></div><div>Here my main-config file / kamailio 5.3.x and rtpengine.</div><div><div><a href="https://gist.github.com/khorsmann/02bd98a628a190caee68fc3d876a3448" title="https://gist.github.com/khorsmann/02bd98a628a190caee68fc3d876a3448" target="_blank">https://gist.github.com/khorsmann/02bd98a628a190caee68fc3d876a3448</a></div></div><div><div><br></div><div>--</div><div><div>Mit freundlichen Grüßen</div><div>*Karsten Horsmann*</div></div></div></div></div><div>_______________________________________________</div><div>Kamailio (SER) - Users Mailing List</div><div><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a></div><div><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></div></div></blockquote>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mit freundlichen Grüßen<br>*Karsten Horsmann*<br></div>