<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I will look at the code, apparently this is from fix_nated_sdp() --
    even there is supposed to be no NAT in IPv6, this function can be
    used to update the IP in SDP independent of the NAT detection
    function, therefore shoudl work with ipv6 addresses.<br>
    <br>
    Detecting IPv6 can be done by search_body(), there should be
    something like:<br>
    <br>
    c=IN IP6 ...<br>
    <br>
    There are some transformations that can extract lines based on
    matching rules -- they can be useful when needing to extract the
    address.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 02/02/15 12:50, Sebastian Damm
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABkWSFzzVJdhuqtVp+1qJxUduK2bJZNk11On5bBWtL_d9m31Cw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi,<br>
            <br>
          </div>
          since we integrated IPv6 into our existing routing logic, in
          some cases "fix_nated_sdp" gets called for IPv6 calls, too.
          (Actually, this just happens because of the mistakenly
          detected NAT.) But that ends up with a an error in the log.<br>
          <br>
          ERROR: nathelper [nathelper.c:1685]: replace_sdp_ip(): not an
          IPv4 address in 'c=' SDP<br>
          <br>
          So I'm looking for a way to exempt IPv6 calls from that. But I
          can't find a pseudovariable which carries the SDP contact IP.
          I guess I could take some function from the sdpops module, but
          is there a more convenient way to get just the contact IP?<br>
          <br>
        </div>
        Best Regards,<br>
        Sebastian<br>
      </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>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>