<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    upgrading will not help. The best is trying to avoid using the two
    operations over the same message. Alternative is to use
    msg_apply_changes() in between them.<br>
    <br>
    It is due to internal architecture of how changes are done to the
    sip message. They are not applied immediately -- see more details
    here:<br>
    <br>
    -
<a class="moz-txt-link-freetext" href="http://www.kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or">http://www.kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 11/04/14 15:02, Daniel Ciprus wrote:<br>
    </div>
    <blockquote cite="mid:5347E7F6.70901@acision.com" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      If you're going to recommend to upgrade/or use something else -
      this is not feasible for some weird reasons. Is this a bug or just
      my misunderstanding how to use this function ?<br>
      <br>
      thanks<br>
      <br>
      <div class="moz-cite-prefix">On 04/11/2014 07:54 AM, Ciprus,
        Daniel wrote:<br>
      </div>
      <blockquote style="border-left: 2px solid #009900 !important;
        border-right: 2px solid #009900 !important; padding: 0px 15px
        0px 15px; margin: 8px 2px;"
        cite="mid:b8ybq3k9mssi0w14fcn5251a.1397217188062@email.android.com"
        type="cite">
        <!--[if !IE]><DIV style="border-left: 2px solid #009900; border-right: 2px solid #009900;  padding: 0px 15px; margin: 2px 0px;"><![endif]-->
        <div>Yes I do</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div style="font-size:7px;color:#575757">Sent via the Samsung
            GALAXY SŪ4, an AT&T 4G LTE smartphone</div>
        </div>
        <br>
        <br>
        -------- Original message --------<br>
        From: Daniel-Constantin Mierla <miconda@gmail.com><br>
          Date:04/11/2014 6:13 AM (GMT-05:00) <br>
          To: "Ciprus, Daniel" <daniel.ciprus@acision.com>,"Kamailio
            (SER) - Users Mailing List"
            <sr-users@lists.sip-router.org><br>
              Subject: Re: [SR-Users] SDP c= IP doesn't get rewritten <br>
              <br>
              <div>Hello,<br>
                <br>
                are you using a rtp relay (e.g., rtpproxy)?<br>
                <br>
                Cheers,<br>
                Daniel<br>
                <br>
                <div class="moz-cite-prefix">On 11/04/14 02:46, Daniel
                  Ciprus wrote:<br>
                </div>
                <blockquote style="border-left: 2px solid #009900
                  !important; border-right: 2px solid #009900
                  !important; padding: 0px 15px 0px 15px; margin: 8px
                  2px;" cite="mid:53473B72.1010907@acision.com"
                  type="cite">
                  <!--[if !IE]><DIV style="border-left: 2px solid #009900; border-right: 2px solid #009900;  padding: 0px 15px; margin: 2px 0px;"><![endif]-->All,
                  <br>
                  <br>
                  I am facing problem with rewriting SDP part of the
                  INVITE, in particular following is in my
                  configuration:<br>
                  <br>
                  #!subst "/RTP_INT_ADDR/10.96.173.15/"<br>
                  #!subst "/RTP_EXT_ADDR/168.7.24.17/"<br>
                  #!subst "/BOT_RTP_ADDR/10.96.173.52/"<br>
                  <br>
                  subst_body('/RTP_INT_ADDR/RTP_EXT_ADDR/g');<br>
                  subst_body('/BOT_RTP_ADDR/RTP_EXT_ADDR/g');<br>
                  <br>
                  and this is what I ended up with:<br>
                  <br>
                  c=IN IP4 10.96.173.15168.7.24.17<br>
                  <br>
                  Apparently 2nd rule doesn't work rewrite, it's doing
                  append instead. What I want to achieve is : if SDP
                  part contains BOT_RTP_ADDR -> rewrite it. In case
                  SDP part contains RTP_INT_ADDR-> rewrite it, so 2x
                  if.
                  <br>
                  <br>
                  I have tried to use sdpops module, it's coring in my
                  case and I have a reason to not upgrade, I just can't.
                  Any other ideas how to handle my problem ?<br>
                  <br>
                  Thanks<br>
                  Dan<br>
                  <br>
                  <br>
                  Server:: kamailio (4.2.0-dev0 (x86_64/linux))<br>
                  Build:: mi_core.c compiled on 17:42:57 Dec 18 2013
                  with gcc 4.4.7<br>
                  Flags:: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS,
                  USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK,
                  SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC,
                  USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
                  USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
                  HAVE_RESOLV_RES<br>
                  GIT:: unknown<br>
                  <br>
                  <br>
                  <div class="moz-signature">-- <br>
                    <b>Daniel Ciprus</b><br>
                    Integration engineer<br>
                    <a moz-do-not-send="true"
                      href="http://www.acision.com">http://www.acision.com</a><br>
                    <br>
                    9954 Mayland Dr<br>
                    Suite 3100<br>
                    Richmond, VA 23233<br>
                    USA<br>
                    T: +1 804 762 5601<br>
                    E: <a moz-do-not-send="true"
                      class="moz-txt-link-abbreviated"
                      href="mailto:daniel.ciprus@acision.com">
                      daniel.ciprus@acision.com</a><br>
                  </div>
                  <br>
                  <hr>
                  <font color="Gray" size="1" face="Arial">This e-mail
                    and any attachment is for authorised use by the
                    intended recipient(s) only. It may contain
                    proprietary material, confidential information
                    and/or be subject to legal privilege. It should not
                    be copied, disclosed to, retained or used by, any
                    other party. If you are not an intended recipient
                    then please promptly delete this e-mail and any
                    attachment and all copies and inform the sender.
                    Thank you for understanding.<br>
                  </font><br clear="all">
                  <br>
                  <fieldset class="mimeAttachmentHeader"></fieldset>
                  <br>
                  <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                  <!--[if !IE]></DIV><![endif]--></blockquote>
                <br>
                <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
              </div>
              <br>
              <hr>
              <font color="Gray" size="1" face="Arial">This e-mail and
                any attachment is for authorised use by the intended
                recipient(s) only. It may contain proprietary material,
                confidential information and/or be subject to legal
                privilege. It should not be copied, disclosed to,
                retained or used by, any other party. If you are not an
                intended recipient then please promptly delete this
                e-mail and any attachment and all copies and inform the
                sender. Thank you for understanding.<br>
              </font><br clear="all">
            </sr-users@lists.sip-router.org></daniel.ciprus@acision.com></miconda@gmail.com><!--[if !IE]></DIV><![endif]--></blockquote>
      <br>
      <div class="moz-signature">-- <br>
        <b>Daniel Ciprus</b><br>
        Integration engineer<br>
        <a moz-do-not-send="true" href="http://www.acision.com">http://www.acision.com</a><br>
        <br>
        9954 Mayland Dr<br>
        Suite 3100<br>
        Richmond, VA 23233<br>
        USA<br>
        T: +1 804 762 5601<br>
        E: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
          href="mailto:daniel.ciprus@acision.com">daniel.ciprus@acision.com</a><br>
      </div>
      <br>
      <hr>
      <font color="Gray" size="1" face="Arial">This e-mail and any
        attachment is for authorised use by the intended recipient(s)
        only. It may contain proprietary material, confidential
        information and/or be subject to legal privilege. It should not
        be copied, disclosed to, retained or used by, any other party.
        If you are not an intended recipient then please promptly delete
        this e-mail and any attachment and all copies and inform the
        sender. Thank you for understanding.<br>
      </font>
      <br clear="all">
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>