<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#42392c" bgcolor="#ffffff">
    <font size="+1"><font face="Cantarell">Hello Miha,<br>
        <br>
        You can try in dialog requests section use <br>
        <br>
               if(has_body("application/sdp")) {<br>
                        if(search_body("a=sendonly") ||
        search_body("a=inactive")) {<br>
        <br>
        Also might need try use <br>
        <br>
        from-tag parameter, address (media address from the SDP), SRTP
        flags<span style="color: rgb(0, 0, 0); font-family: Helvetica,
          Arial; font-size: 12px; font-style: normal;
          font-variant-ligatures: normal; font-variant-caps: normal;
          font-weight: 400; letter-spacing: normal; orphans: 2;
          text-align: justify; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 2; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; background-color: rgb(255,
          255, 255); text-decoration-thickness: initial;
          text-decoration-style: initial; text-decoration-color:
          initial; display: inline !important; float: none;"><br>
          <br>
          <br>
        </span>volga629<br>
      </font></font><br>
    <div class="moz-cite-prefix">On 8/9/21 3:19 AM, Miha via Users
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:4f5f16ff-ebbe-9243-047e-f3e48c98dcd9@softnet.si">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <font face="Calibri Light">Hi<br>
        <br>
        when call is being trasfered to another number MS Teams sends
        new Invite with SDP as 'a=inactive'. How can I put ringback ton
        as MOH for this sitation?<br>
        <br>
        I tried with:<br>
        <br>
      </font>
      <div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap"><div><span style="color:rgb(212,212,212)">if(is_audio_on_hold()) {</span></div><div><span style="color:rgb(212,212,212)">                 xlog(</span><span style="color:rgb(206,145,120)">"L_INFO"</span><span style="color:rgb(212,212,212)">, </span><span style="color:rgb(206,145,120)">"onHOLD"</span><span style="color:rgb(212,212,212)">)</span><span style="color:rgb(106,153,85)">;</span></div><div><span style="color:rgb(212,212,212)">                 </span></div><div><span style="color:rgb(212,212,212)">                                    rtpengine_play_media(</span><span style="color:rgb(206,145,120)">"file=/home/ringback.wav"</span><span style="color:rgb(212,212,212)">)</span><span style="color:rgb(106,153,85)">;</span></div>
<div><span style="color:rgb(212,212,212)">                  }
</span></div></div>
      <br>
      From logs i can see that due to a=inactive rtpengine will not play
      media. I tried also to replace inactive with sendonly with
      function body_replace before I call rtpengine_play_media but it
      does not help.<br>
      <br>
      <br>
      thank you<br>
      miha<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>