<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Rodrigo,<br>
      <br>
      Take a look at the {sdp} transformation, it might help you:<br>
          <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-Tran-2-2#toc79">http://www.opensips.org/Documentation/Script-Tran-2-2#toc79</a><br>
      <br>
      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></pre>
    <div class="moz-cite-prefix">On 27.07.2016 23:14, Rodrigo Pimenta
      Carvalho wrote:<br>
    </div>
    <blockquote
cite="mid:BY2PR02MB16556BE602A333909C33C2DEB50F0@BY2PR02MB1655.namprd02.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
        <p>Hi.</p>
        <p><br>
        </p>
        <p>A SDP message is:</p>
        <p><br>
        </p>
        <div>v=0 <br>
          o=Z 0 0 IN IP4 192.168.21.40   <br>
          s=Z <br>
          c=IN IP4 192.168.21.40 <br>
          t=0 0 <br>
          m=audio 8000 RTP/AVP 3 110 8 0 98 101 <br>
          a=rtpmap:110 speex/8000 <br>
          a=rtpmap:98 iLBC/8000 <br>
          a=fmtp:98 mode=20 <br>
          a=rtpmap:101 telephone-event/8000 <br>
          a=fmtp:101 0-15 <br>
          a=sendrecv</div>
        <p><br>
        </p>
        <p>It can be in a SIP INVITE or in a SIP OK message.</p>
        <p><br>
        </p>
        <p>How can I read the IP4 from there, in case of SIP INVITE or
          SIP OK, and get the value 192.168.21.40 for example?
          <br>
        </p>
        <p>Is there a module and function that provides such information
          in my script?</p>
        <p><br>
        </p>
        <p>Any hint will be very helpful!</p>
        <p><br>
        </p>
        <p>Best regards.<br>
        </p>
        <p><br>
        </p>
        <p><br>
        </p>
        <div id="Signature">
          <div name="divtagdefaultwrapper"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:; margin:0">
            <div class="BodyFragment"><font size="2">
                <div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
                  Inatel Competence Center<br>
                  Software<br>
                  Ph: +55 35 3471 9200 RAMAL 979<br>
                </div>
              </font></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>