<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <font face="monospace">Oh, I see what you mean.....well, you can
      define the listen socket with the name of the interface, not
      necessarily with its IP.<br>
      <br>
      Like:<br>
      socket = udp:eth0:5060<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021 
  <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
    <div class="moz-cite-prefix">On 11/17/21 9:54 AM, Bogdan-Andrei
      Iancu wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c5e0500b-4e28-383f-190c-294c61698ea6@opensips.org">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <font face="monospace">Hi,<br>
        <br>
        How do you define the listening socket in OpenSIPs cfg ? (the
        one related to the DHCP interface)<br>
        <br>
        Regards,<br>
      </font>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021 
  <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/" moz-do-not-send="true">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
      <div class="moz-cite-prefix">On 11/17/21 2:19 AM, Muhamad Putra
        Abdullah wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:SI2PR03MB556139C218B9E2A6B736870BFD9A9@SI2PR03MB5561.apcprd03.prod.outlook.com">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        <div style="color: rgb(33, 33, 33); background-color: rgb(255,
          255, 255);" dir="auto"> Hi,</div>
        <div style="color: rgb(33, 33, 33); background-color: rgb(255,
          255, 255);" dir="auto"> <br>
        </div>
        <div style="color: rgb(33, 33, 33); background-color: rgb(255,
          255, 255);" dir="auto"> Is there a way to get the IP address
          of DHCP interface to use in the script? I can get the call go
          through if I set both the interface as static.</div>
        <div style="color: rgb(33, 33, 33); background-color: rgb(255,
          255, 255);" dir="auto"> <br>
        </div>
        <div style="color: rgb(33, 33, 33); background-color: rgb(255,
          255, 255);" dir="auto"> Regards</div>
        <div id="ms-outlook-mobile-signature">
          <div><br>
          </div>
          Get <a href="https://aka.ms/AAb9ysg" moz-do-not-send="true">Outlook
            for Android</a></div>
        <div id="id-7c8cb1de-0d49-4aee-8134-d15557d98ca5"
          class="ms-outlook-mobile-reference-message">
          <div style="font-family: sans-serif; font-size: 12pt; color:
            rgb(0, 0, 0);"><br>
          </div>
          <hr style="display:inline-block;width:98%" tabindex="-1">
          <div id="divRplyFwdMsg"><strong>From:</strong> Bogdan-Andrei
            Iancu <a class="moz-txt-link-rfc2396E"
              href="mailto:bogdan@opensips.org" moz-do-not-send="true"><bogdan@opensips.org></a><br>
            <strong>Sent:</strong> Tuesday, November 16, 2021, 6:45 PM<br>
            <strong>To:</strong> OpenSIPS users mailling list; Muhamad
            Putra Abdullah<br>
            <strong>Subject:</strong> Re: [OpenSIPS-Users] How to get
            all listening socket IP address as variable<br>
          </div>
          <br>
          <font face="monospace">Hi,<br>
            <br>
            via the socket_xx() vars you can get only the sockets
            relative to/used by that call, you cannot iterate thru the
            listening sockets.<br>
            <br>
            Regards,<br>
          </font>
          <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021 
  <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/" moz-do-not-send="true">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
          <div class="moz-cite-prefix">On 11/15/21 9:39 AM, Muhamad
            Putra Abdullah wrote:<br>
          </div>
          <blockquote type="cite">
            <meta name="Generator" content="Microsoft Word 15 (filtered
              medium)">
            <style>@font-face
        {font-family:"Cambria Math"}@font-face
        {font-family:Calibri}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}.MsoChpDefault
        {}div.WordSection1
        {}</style>
            <div class="WordSection1">
              <p class="MsoNormal"><span lang="EN-US">Hi, </span></p>
              <p class="MsoNormal"><span lang="EN-US"> </span></p>
              <p class="MsoNormal"><span lang="EN-US">I have 2 listening
                  interface for opensips 3.2. How do I get both IP
                  address to be used as variable in opensips config
                  file? I try to use socket_in/ socket_out but failed to
                  get the other interface IP address.</span></p>
              <p class="MsoNormal"><span lang="EN-US"> </span></p>
              <p class="MsoNormal"><span lang="EN-US">Thanks </span></p>
              <p class="MsoNormal"> </p>
              <p class="MsoNormal">Sent from <a
                  href="https://go.microsoft.com/fwlink/?LinkId=550986"
                  moz-do-not-send="true"> Mail</a> for Windows</p>
              <p class="MsoNormal"> </p>
            </div>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <pre class="moz-quote-pre">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
          </blockquote>
          <br>
          <br>
        </div>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>