<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    the error message is what you printed from config and $du was not
    set.<br>
    <br>
    If you want to troubleshoot better, set debug=3 in kamailio.cfg and
    watch the log messages -- there will be plenty of them and you
    should get a better idea of what happens there.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 21/10/14 14:29, aft wrote:<br>
    </div>
    <blockquote
cite="mid:CAGuaRCvink2t+8c_60Dj3xODXXTtw+m7fb4F4m0TGUZ6gdFa8w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I'm trying to re packet rtp streams based on Destination
          IP. I've implemented it like below :</div>
        <div><br>
        </div>
        <div>
          <div>route[NATMANAGE] {</div>
          <div>#!ifdef WITH_NAT</div>
          <div>        if (is_request()) {</div>
          <div>                if(has_totag()) {</div>
          <div>                        if(check_route_param("nat=yes"))
            {</div>
          <div>                                setbflag(FLB_NATB);</div>
          <div>                        }</div>
          <div>                }</div>
          <div>        }</div>
          <div>        if (!(isflagset(FLT_NATS) ||
            isbflagset(FLB_NATB)))</div>
          <div>                return;</div>
          <div>        if (is_request()) {</div>
          <div>                if (!has_totag()) {</div>
          <div>                        add_rr_param(";nat=yes");</div>
          <div>                }</div>
          <div>                xlog("Destination [$du]...");</div>
          <div>                if ($du == "108.59.14.153")</div>
          <div>                        rtpproxy_manage("coz20");</div>
          <div>                else</div>
          <div>                        rtpproxy_manage("coz100");</div>
          <div>        }</div>
          <div>        if (is_reply()) {</div>
          <div>                if(isbflagset(FLB_NATB)) {</div>
          <div><br>
          </div>
          <div>                        fix_nated_contact();</div>
          <div>                }</div>
          <div>                rtpproxy_manage("coz100");</div>
          <div>        }</div>
          <div>#!endif</div>
          <div>        return;</div>
          <div>}</div>
        </div>
        <div><br>
        </div>
        <div>But its not working, and the log comes up like :</div>
        <div><br>
        </div>
        <div>
          <div>Oct 21 08:12:33 srv4617 /usr/local/sbin/kamailio[28346]:
            ERROR: <script>: Destination...... <null></div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <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://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>