<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Daniel</p>
    <p><br>
    </p>
    <p>This is the output:</p>
    <p><br>
    </p>
    <p>MariaDB [(none)]> select * from
      provisioning.voip_peer_inbound_rules;<br>
+----+----------+--------+---------+-------------+---------------+----------+---------+<br>
      | id | group_id | field  | pattern | reject_code | reject_reason |
      priority | enabled |<br>
+----+----------+--------+---------+-------------+---------------+----------+---------+<br>
      |  2 |        1 | to_uri | .*      |        NULL | NULL         
      |       50 |       1 |<br>
+----+----------+--------+---------+-------------+---------------+----------+---------+<br>
      1 row in set (0.00 sec)<br>
      <br>
    </p>
    <p>Thanks <br>
    </p>
    <p>Raul</p>
    <p><br>
    </p>
    <div class="moz-signature">
      <meta charset="utf-8">
      <title>Raul Fernandez Gomez</title>
      <style type="text/css">p{font-family: "Courier New", Courier, monospace;}</style></div>
    <div class="moz-cite-prefix">El 10/4/19 a las 13:25, Daniel Grotti
      escribió:<br>
    </div>
    <blockquote type="cite"
      cite="mid:efcdfb83-d512-9f2c-bd35-c6162bc902f1@sipwise.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <tt>Hi,<br>
        what do you get from:<br>
        <br>
        MariaDB [(none)]> select * from
        provisioning.voip_peer_inbound_rules;<br>
        <br>
        <br>
      </tt>
      <pre class="moz-signature" cols="72">--
Daniel Grotti

Head of Customer Support                               Sipwise GmbH
e: <a class="moz-txt-link-abbreviated" href="mailto:dgrotti@sipwise.com" moz-do-not-send="true">dgrotti@sipwise.com</a>                               Europaring F15
t: +43(0)130120332                          A-2345 Brunn Am Gebirge
w: <a class="moz-txt-link-abbreviated" href="http://www.sipwise.com" moz-do-not-send="true">www.sipwise.com</a>          FN: 305595f      FG: LG Wiener Neustadt
</pre>
      <div class="moz-cite-prefix">On 4/10/19 12:19 PM, Raul Fernandez
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:20190410102248.9DE3C5FA49@mail.sipwise.com">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <div>Hi Daniel</div>
        <div><br>
        </div>
        <div>Yes, and it is working with other peer server in the same
          peering group.</div>
        <div><br>
        </div>
        <div>Regards</div>
        <div id="composer_signature">
          <div><br>
            <div dir="auto">Raul Fernandez</div>
          </div>
        </div>
        <div><br>
        </div>
        <div style="font-size:100%;color:#000000"><!-- originalMessage -->
          <div>-------- Mensaje original --------</div>
          <div>De: Daniel Grotti <a class="moz-txt-link-rfc2396E"
              href="mailto:dgrotti@sipwise.com" moz-do-not-send="true"><dgrotti@sipwise.com></a>
          </div>
          <div>Fecha: 10/4/19 9:49 (GMT+01:00) </div>
          <div>Para: <a class="moz-txt-link-abbreviated"
              href="mailto:spce-user@lists.sipwise.com"
              moz-do-not-send="true">spce-user@lists.sipwise.com</a> </div>
          <div>Asunto: Re: [Spce-user] Inbound Peering Rule </div>
          <div><br>
          </div>
        </div>
        <tt>Hi,<br>
          this is correct.<br>
          Is the rule ENABLED with flag enabled=1 ?<br>
          <br>
          <br>
        </tt>
        <pre class="moz-signature" cols="72">--
Daniel Grotti

Head of Customer Support                               Sipwise GmbH
e: <a class="moz-txt-link-abbreviated" href="mailto:dgrotti@sipwise.com" moz-do-not-send="true">dgrotti@sipwise.com</a>                               Europaring F15
t: +43(0)130120332                          A-2345 Brunn Am Gebirge
w: <a class="moz-txt-link-abbreviated" href="http://www.sipwise.com" moz-do-not-send="true">www.sipwise.com</a>          FN: 305595f      FG: LG Wiener Neustadt
</pre>
        <div class="moz-cite-prefix">On 4/10/19 9:20 AM, Raul Fernandez
          Gomez wrote:<br>
        </div>
        <blockquote type="cite"
          cite="mid:96cbde3f-e47b-3928-fedc-caa641e49b7c@berkano.es">
          <meta http-equiv="content-type" content="text/html;
            charset=UTF-8">
          <p>Hi</p>
          <p><br>
          </p>
          <p>Could you please recommend an Inbound Peering Rule for
            accepting any call from the peering servers?</p>
          <p><br>
          </p>
          <p>I am trying with the following:</p>
          <p>- Field: to_uri</p>
          <p>- Pattern: .*</p>
          <p><br>
          </p>
          <p>But it seems that I am doing something wrong:<br>
          </p>
          <p>Apr 10 09:09:59 sipwise proxy[1472]: NOTICE:
            <script>: New request on proxy - M=INVITE <a
              class="moz-txt-link-abbreviated"
              href="mailto:R=sip:876660xxx@185.254.160.126:5060;user=phone"
              moz-do-not-send="true">R=sip:876660xxx@185.254.160.126:5060;user=phone</a>
            <a class="moz-txt-link-abbreviated"
              href="mailto:F=sip:649xxxxxx@trunksip6.lcrcom.es;user=phone"
              moz-do-not-send="true">F=sip:649xxxxxx@trunksip6.lcrcom.es;user=phone</a>
            <a class="moz-txt-link-abbreviated"
              href="mailto:T=sip:876660xxx@trunksip6.lcrcom.es;user=phone"
              moz-do-not-send="true">T=sip:876660xxx@trunksip6.lcrcom.es;user=phone</a>
            IP=185.130.155.216:5060 (127.0.0.1:5060) <a
              class="moz-txt-link-abbreviated"
              href="mailto:ID=5cad96c700000a640000d067e5e9776a@ens.com"
              moz-do-not-send="true">ID=5cad96c700000a640000d067e5e9776a@ens.com</a>
            UA='<null>' DESTIP=127.0.0.1:5062<br>
            Apr 10 09:09:59 sipwise proxy[1472]: NOTICE: <script>:
            Sending reply S=100 Trying fs='127.0.0.1:5062'
            du='127.0.0.1:5060' - <a class="moz-txt-link-abbreviated"
              href="mailto:R=sip:876660xxx@185.254.160.126:5060;user=phone"
              moz-do-not-send="true">R=sip:876660xxx@185.254.160.126:5060;user=phone</a>
            <a class="moz-txt-link-abbreviated"
              href="mailto:ID=5cad96c700000a640000d067e5e9776a@ens.com"
              moz-do-not-send="true">ID=5cad96c700000a640000d067e5e9776a@ens.com</a>
            UA='<null>'<br>
            Apr 10 09:09:59 sipwise proxy[1472]: NOTICE: <script>:
            Call from PSTN - <a class="moz-txt-link-abbreviated"
              href="mailto:R=sip:876660xxx@185.254.160.126:5060;user=phone"
              moz-do-not-send="true">R=sip:876660xxx@185.254.160.126:5060;user=phone</a>
            <a class="moz-txt-link-abbreviated"
              href="mailto:ID=5cad96c700000a640000d067e5e9776a@ens.com"
              moz-do-not-send="true">ID=5cad96c700000a640000d067e5e9776a@ens.com</a>
            UA='<null>'<br>
            Apr 10 09:09:59 sipwise proxy[1472]: NOTICE: <script>:
            <b>No matching inbound peer rule in any peering group,
              rejecting call</b> - <a class="moz-txt-link-abbreviated"
href="mailto:R=sip:876660xxx@185.254.160.126:5060;user=phone"
              moz-do-not-send="true">R=sip:876660xxx@185.254.160.126:5060;user=phone</a>
            <a class="moz-txt-link-abbreviated"
              href="mailto:ID=5cad96c700000a640000d067e5e9776a@ens.com"
              moz-do-not-send="true">ID=5cad96c700000a640000d067e5e9776a@ens.com</a>
            UA='<null>'<br>
            Apr 10 09:09:59 sipwise proxy[1480]: NOTICE: <script>:
            New request on proxy - M=ACK <a
              class="moz-txt-link-abbreviated"
              href="mailto:R=sip:876660xxx@185.254.160.126:5060;user=phone"
              moz-do-not-send="true">R=sip:876660xxx@185.254.160.126:5060;user=phone</a>
            F=<null> T=<null> IP=<null>:<null>
            (127.0.0.1:5060) <a class="moz-txt-link-abbreviated"
              href="mailto:ID=5cad96c700000a640000d067e5e9776a@ens.com"
              moz-do-not-send="true">ID=5cad96c700000a640000d067e5e9776a@ens.com</a>
            UA='<null>' DESTIP=127.0.0.1:5062<br>
            Apr 10 09:09:59 sipwise proxy[1472]: NOTICE: <script>:
            Sending reply S=403 Forbidden fs='127.0.0.1:5062'
            du='127.0.0.1:5060' - <a class="moz-txt-link-abbreviated"
              href="mailto:R=sip:876660xxx@185.254.160.126:5060;user=phone"
              moz-do-not-send="true">R=sip:876660xxx@185.254.160.126:5060;user=phone</a>
            <a class="moz-txt-link-abbreviated"
              href="mailto:ID=5cad96c700000a640000d067e5e9776a@ens.com"
              moz-do-not-send="true">ID=5cad96c700000a640000d067e5e9776a@ens.com</a>
            UA='<null>'<br>
          </p>
          <p><br>
          </p>
          <p>Nevertheless, it works with other peers servers:</p>
          <p>Apr 10 09:15:14 sipwise proxy[1484]: NOTICE:
            <script>: New request on proxy - M=INVITE <a
              class="moz-txt-link-abbreviated"
              href="mailto:R=sip:876613xxx@185.254.160.126:5060"
              moz-do-not-send="true">R=sip:876613xxx@185.254.160.126:5060</a>
            <a class="moz-txt-link-abbreviated"
              href="mailto:F=sip:649xxxxxx@78.136.82.55"
              moz-do-not-send="true">F=sip:649xxxxxx@78.136.82.55</a> <a
              class="moz-txt-link-abbreviated"
              href="mailto:T=sip:876613xxx@185.254.160.126:5060"
              moz-do-not-send="true">T=sip:876613xxx@185.254.160.126:5060</a>
            IP=78.136.82.55:5060 (127.0.0.1:5060)
            ID=3a258f4d-d603-1237-6b80-d09466645245 UA='NP005'
            DESTIP=127.0.0.1:5062<br>
            Apr 10 09:15:14 sipwise proxy[1484]: NOTICE: <script>:
            Sending reply S=100 Trying fs='127.0.0.1:5062'
            du='127.0.0.1:5060' - <a class="moz-txt-link-abbreviated"
              href="mailto:R=sip:876613xxx@185.254.160.126:5060"
              moz-do-not-send="true">R=sip:876613xxx@185.254.160.126:5060</a>
            ID=3a258f4d-d603-1237-6b80-d09466645245 UA='NP005'<br>
            Apr 10 09:15:14 sipwise proxy[1484]: NOTICE: <script>:
            Call from PSTN - <a class="moz-txt-link-abbreviated"
              href="mailto:R=sip:876613xxx@185.254.160.126:5060"
              moz-do-not-send="true">R=sip:876613xxx@185.254.160.126:5060</a>
            ID=3a258f4d-d603-1237-6b80-d09466645245 UA='NP005'<br>
            Apr 10 09:15:14 sipwise proxy[1484]: NOTICE: <script>:
            <b>Inbound peering group '1' matched, looking up peer host</b>
            - <a class="moz-txt-link-abbreviated"
              href="mailto:R=sip:876613xxx@185.254.160.126:5060"
              moz-do-not-send="true">R=sip:876613xxx@185.254.160.126:5060</a>
            ID=3a258f4d-d603-1237-6b80-d09466645245 UA='NP005'<br>
            Apr 10 09:15:14 sipwise proxy[1484]: NOTICE: <script>:<b>
              Selected peering host id '2' as inbound peer</b> - <a
              class="moz-txt-link-abbreviated"
              href="mailto:R=sip:876613xxx@185.254.160.126:5060"
              moz-do-not-send="true">R=sip:876613xxx@185.254.160.126:5060</a>
            ID=3a258f4d-d603-1237-6b80-d09466645245 UA='NP005'<br>
          </p>
          <p><br>
          </p>
          <p>Do I need to call some script after changing the rule?</p>
          <p><br>
          </p>
          <p>Thanks in advance<br>
          </p>
          <div class="moz-signature">Raul <br>
          </div>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <pre class="moz-quote-pre" wrap="">_______________________________________________
Spce-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com" moz-do-not-send="true">Spce-user@lists.sipwise.com</a>
<a class="moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user" moz-do-not-send="true">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
        </blockquote>
        <br>
      </blockquote>
      <br>
    </blockquote>
  </body>
</html>