Hello Bogdan-Andrei,<div>The issue with on hold RTP stream resume. I am not sure how to opensips should handle properly.</div><div>I code bellow provide partial solution.</div><div><br></div><div>volga629 <br><br>On Tue, 16 May, 2017 at 4:38 AM, Bogdan-Andrei Iancu <bogdan@opensips.org> wrote:<br>
<blockquote type="cite">
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  
  
    <tt>Hello Volga,<br>
      <br>
      What exactly does not work for you ? the detection at SIP level of
      the hold resume ? the actual RTP resume ?<br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
    <div class="moz-cite-prefix">On 05/15/2017 06:06 PM,
      <a class="moz-txt-link-abbreviated" href="mailto:volga629@networklab.ca">volga629@networklab.ca</a> wrote:<br>
    </div>
    <blockquote cite="mid:1494860777.3909.1@smtp.networklab.ca" type="cite">Hello Everyone,
      <div>Thank you </div>
      <div><br>
      </div>
      <div>That extract ip correctly.</div>
      <div><br>
      </div>
      <div>$var(cline-ip) = $(rb{sdp.line,c}{s.select,2, });</div>
      <div><br>
      </div>
      <div>My issue that I am trying make opensips handle music on hold
        resume working properly.</div>
      <div>I am not sure if possible do simpler way.</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>Relevant code</div>
      <div><br>
      </div>
      <div>route[ONHOLD] {</div>
      <div>        if(is_method("INVITE|UPDATE") &&
        has_body("application/sdp")) {</div>
      <div>                if(is_audio_on_hold()) {</div>
      <div>                        if(search_body("a=sendonly") ||
        search_body("a=inactive.")) {</div>
      <div>                                $var(cline-ip) =
        $(rb{sdp.line,c}{s.select,2, });</div>
      <div>                                xlog("L_INFO", "[$rm] On hold
        call SDP IP [$var(cline-ip)]\n");</div>
      <div>                                if(!nat_uac_test("8") ||
        $(var(cline-ip){s.select,1,.})==0) {</div>
      <div>                                        xlog("L_INFO", "[$rm]
        On hold call going from WAN SouceIP <$si> to LAN.\n");</div>
      <div>                                       
        rtpengine_offer("replace-origin external internal RTP/AVP
        ICE=remove");</div>
      <div>                                        t_on_reply("2");</div>
      <div>                                }</div>
      <div>                        }</div>
      <div>                }</div>
      <div>        }</div>
      <div>}</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>volga629</div>
      <div><br>
        On Mon, 15 May, 2017 at 5:23 AM, Bogdan-Andrei Iancu
        <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a> wrote:<br>
        <blockquote type="cite">
          <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
          <tt>Hi Volga,<br>
            <br>
            You can use the sdp transformation :<br>
                <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-Tran-2-3#toc80">http://www.opensips.org/Documentation/Script-Tran-2-3#toc80</a><br>
            <br>
            Regards,<br>
          </tt>
          <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
          <div class="moz-cite-prefix">On 05/14/2017 06:28 AM, <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:volga629@networklab.ca"></a><a class="moz-txt-link-abbreviated" href="mailto:volga629@networklab.ca">volga629@networklab.ca</a>
            wrote:<br>
          </div>
          <blockquote cite="mid:1494732536.3909.0@smtp.networklab.ca" type="cite">Hello Everyone,
            <div>What good approach to test/detect 0.0.0.0 in sdp c IN =
              line ?</div>
            <div>I don't see any functions to parse sdp properly.</div>
            <div><br>
            </div>
            <div>volga629</div>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
        </blockquote>
      </div>
    </blockquote>
    <br>
  

</blockquote></div>