<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="Calibri Light">Hello<br>
      <br>
       have issue with replace_body as it does not change SDP.<br>
      My code looks like this:<br>
      <br>
      if (has_body("application/sdp")){           <br>
                  if(search_body("a=inactive")){<br>
                       <b>replace_body("^a=inactive$", "a=sendonly");</b><br>
                  <br>
                  }<br>
      <br>
                       $var(rtpengine_flags) ="trust-address
      replace-origin replace-session-connection  ICE=remove RTP/AVP
      rtcp-mux-demux";<br>
                       rtpengine_offer("$var(rtpengine_flags)");<br>
                       <br>
                        if(is_audio_on_hold()) {<br>
                       <br>
                          rtpengine_play_media("callee
      file=/home/ringback.wav");<br>
                        }<br>
          <br>
                   t_on_reply("1");<br>
      }<br>
      <br>
      What could be wrong that inactive is not replaced by sendonly?<br>
      On a leg I can see "a=inactive" and also on b leg "a=inactive".<br>
      <br>
      <br>
      thank you<br>
      miha<br>
    </font>
  </body>
</html>