<div dir="ltr"><div dir="ltr"><br>I tried to remove crypto strings that's not needed with "replace_body()" function before rtpengine execution.. And I got the string what I need. But despite this, when rtpengine is applied and proxy relays message to UA2, rtpengine adds a string what I got rid from SDP on the previous step. And I don't have any idea, from where rtpengine get crypto string in a changed body. Here is what the script in this part looks like:<br><br>branch_route[invite_to_pbx] {<br>   xlog("outgoing to pbx");<br>     if(has_body("application/sdp")) {   <br>         if (replace_body_all("a=crypto:([1-9])+( AES_CM_256)+(.*)$", "")) {<br>            xlog("Replaced");<br>         }          <br>       rtpengine_offer("RTP/SAVP ICE=remove"));<br>      }<br> }<br><br>I also tried to execute this in a request route, but without changing.<div><br></div><div>Can you help me to understand why rtpengine ignores changed SDP? Is my script logic correct? </div><div><br></div><div>Best regards,</div><div>Sergey Pysanko. <br><div id="mt-signature">
        <table border="0" cellpadding="8" cellspacing="0" style="user-select: none;">
            <tbody><tr>
                <td>
                    <a id="signatureLink-logo" href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&" class="" style="text-decoration:none">
                        <img src="https://s3.amazonaws.com/mailtrack-signature/sender-notified-72.gif" alt="Mailtrack" class="" width="32" height="32">
                    </a>
                </td>
                <td>
                    <span style="color:#777">Sender notified by</span> <br>
                    <a id="signatureLink-text" href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&" class="mt-install" style="color:#4374f7">Mailtrack</a>
                    
    </td><td><span style="color:transparent;font-size:0">01/18/22, 07:13:23 PM</span></td>

                
                <td>
                    
                </td>
            </tr>
        </tbody></table>
    </div></div></div><br><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/5836b33a80b535dbfbe58b3f57ac1eed879a9208.png?u=6916461"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 14 янв. 2022 г. в 17:30, Sergey Pisanko <<a href="mailto:serp87@yandex.ru">serp87@yandex.ru</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">Hello.<br><br>I've faced an issue when using rtpengine module with tls transport. When UA originates a call it pointed set of crypto<br>parameters in SDP, like that:<br><br>a=crypto:1 AES_CM_256_HMAC_SHA1_80 inline:PZASLY5HoxVo6Ljz2niwxqNJ+3A2mW71SgfL75cRFtShKQIvcKVF2Y39zGd1fQ==<br>a=crypto:2 AES_CM_256_HMAC_SHA1_32 inline:LRjGKIj8wvfxDP68+5XOEmlvO2ufqxDkhJ3hUQRWzjFulFr2kBztgSjrPSSACw==<br>a=crypto:3 AES_CM_128_HMAC_SHA1_80 inline:Nup7cVUaHGb+oQPf8gg1wDmjVJOZ5K+HZdhyovzz<br>a=crypto:4 AES_CM_128_HMAC_SHA1_32 inline:rjLdKaMyQ7+YQWCcIFKkVRLd+GZxkUogGK/4i1L0<br><br>But when Opensips relays original message to UA2, rtpengine removes all the crypto suite strings except the first one.<br>Unfortunately, there is no way to configure client's behaivior to send certain crypto suite.<br>In other side, UA2, that is PBX, doesn't support all crypto suites except AES_CM_128_HMAC_SHA1_80<br>Is there a way to configure Opensips/rtpengine to choose specific crypto string or to leave crypto set without changing at all?<div><br></div><div>Best Regards,</div><div>Sergey Pysanko.<br><br><br><br><div id="gmail-m_-7462117136257327471mt-signature">
        <table border="0" cellpadding="8" cellspacing="0">
            <tbody><tr>
                <td>
                    <a id="gmail-m_-7462117136257327471signatureLink-logo" href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&" style="text-decoration:none" target="_blank">
                        <img src="https://s3.amazonaws.com/mailtrack-signature/sender-notified-72.gif" alt="Mailtrack" width="32" height="32">
                    </a>
                </td>
                <td>
                    <span style="color:rgb(119,119,119)">Sender notified by</span> <br>
                    <a id="gmail-m_-7462117136257327471signatureLink-text" href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&" style="color:rgb(67,116,247)" target="_blank">Mailtrack</a>
                    
    </td><td><span style="color:transparent;font-size:0px">01/14/22, 05:28:49 PM</span></td>

                
                <td>
                    
                </td>
            </tr>
        </tbody></table>
    </div></div><img width="0" height="0" alt="" style="display: flex;" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"></div>
</blockquote></div></div>