<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi!,<br>
    <br>
    I had the same question (but with caller pattern), and I had applied
    the regex that you say and works fine, but if I add another rule
    with other caller pattern it don't works. How can I add two negative
    rules? I have spce 4.5.6.<br>
    <br>
    The rules that i have created are this:<br>
    <br>
    Calle prefix: 34902<br>
    Caller pattern: ^sips?:(?!(34123456789)).+$<br>
    <br>
    Calle prefix: 34902<br>
    Caller pattern: ^sips?:(?!(34987654321)).+$<br>
    <br>
    Thanks a lot!<br>
    <br>
    <div class="moz-signature">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <title></title>
      <font size="-1"><font face="Calibri">Saludos,<br>
          Robert Cuaresma<br>
        </font></font><span
        style="font-size:8.0pt;font-family:"Arial
        Narrow",sans-serif;
        color:#17365D;mso-ansi-language:CA;mso-fareast-language:ES"
        lang="CA"></span><br>
    </div>
    <div class="moz-cite-prefix">El 16/04/2018 a las 9:38, Hohl Matthias
      escribió:<br>
    </div>
    <blockquote type="cite"
cite="mid:1034736912.1966083.1523864316145.JavaMail.zimbra@mx.telematica.at">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;
        mso-fareast-language:DE-AT;}
span.m-7758985901414976991hoenzb
        {mso-style-name:m_-7758985901414976991hoenzb;}
span.E-MailFormatvorlage22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">Yes, this is normal beavior.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">Read this 6.6.2.3 => <a
href="https://www.sipwise.org/doc/mr5.5.3/spce/ar01s06.html#_creating_peerings"
              moz-do-not-send="true">https://www.sipwise.org/doc/mr5.5.3/spce/ar01s06.html#_creating_peerings</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">If you on version 5.x.x use negative lookahead
            to disallow this number on your higher priority peering, so
            it will fallback to your lower priority peering.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">Callee Prefix: .<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">Callee Pattern: </span><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333;background:white"
            lang="EN-US">^sips?:(?!(431234567)).+$<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333;background:white"
            lang="EN-US">Caller Pattern: .<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333;background:white"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333;background:white"
            lang="EN-US">This means: allow every Callee number expect of
            431234567 from every subscriber.</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
              style="font-size:11.0pt;font-family:"Calibri",sans-serif"
              lang="DE">Von:</span></b><span
            style="font-size:11.0pt;font-family:"Calibri",sans-serif"
            lang="DE"> Spce-user
            <a class="moz-txt-link-rfc2396E" href="mailto:spce-user-bounces@lists.sipwise.com"><spce-user-bounces@lists.sipwise.com></a> <b>Im Auftrag
              von </b>Matt Schwinn<br>
            <b>Gesendet:</b> Sonntag, 15. April 2018 19:49<br>
            <b>An:</b> Daniel Grotti <a class="moz-txt-link-rfc2396E" href="mailto:dgrotti@sipwise.com"><dgrotti@sipwise.com></a><br>
            <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:spce-user@lists.sipwise.com">spce-user@lists.sipwise.com</a><br>
            <b>Betreff:</b> Re: [Spce-user] Route One Phone Number (CN
            or DID)<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">I have finally gotten around to testing
            this and I believe this is incorrect, however I am using the
            caller pattern in this instance.  If I have the peer set at
            priority 9, then the pattern never matches.  I can only get
            it to match if I change the priority to 1 (higher than my
            other peers).  Can someone verify?<o:p></o:p></p>
        </div>
        <div>
          <p class="MsoNormal"><o:p> </o:p></p>
          <div>
            <p class="MsoNormal">On Thu, Mar 1, 2018 at 10:36 AM, Daniel
              Grotti <<a href="mailto:dgrotti@sipwise.com"
                target="_blank" moz-do-not-send="true">dgrotti@sipwise.com</a>>
              wrote:<o:p></o:p></p>
            <blockquote style="border:none;border-left:solid #CCCCCC
              1.0pt;padding:0cm 0cm 0cm
              6.0pt;margin-left:4.8pt;margin-right:0cm">
              <div>
                <p class="MsoNormal"><tt><span style="font-size:10.0pt">Priority
                      does not matter, cause callee prefix match will
                      win as best match to the callee number.</span></tt><span
                    style="font-size:10.0pt;font-family:"Courier
                    New""><br>
                    <br>
                    <br>
                  </span><o:p></o:p></p>
                <pre>-- <o:p></o:p></pre>
                <pre>Daniel Grotti<o:p></o:p></pre>
                <pre>Head of Customer Support<o:p></o:p></pre>
                <pre>Sipwise GmbH, Campus 21/Europaring F15<o:p></o:p></pre>
                <pre>AT-2345 Brunn am Gebirge<o:p></o:p></pre>
                <pre><o:p> </o:p></pre>
                <pre>Office: +43(0)130120332<o:p></o:p></pre>
                <pre>Email: <a href="mailto:dgrotti@sipwise.com" target="_blank" moz-do-not-send="true">dgrotti@sipwise.com</a><o:p></o:p></pre>
                <pre>Website: <a href="https://www.sipwise.com" target="_blank" moz-do-not-send="true">https://www.sipwise.com</a><o:p></o:p></pre>
                <div>
                  <div>
                    <div>
                      <p class="MsoNormal">On 03/01/2018 07:27 PM, Matt
                        Schwinn wrote:<o:p></o:p></p>
                    </div>
                    <blockquote
                      style="margin-top:5.0pt;margin-bottom:5.0pt">
                      <div>
                        <div>
                          <p class="MsoNormal"
                            style="margin-bottom:12.0pt">Ok excellent. 
                            Will this simply work, or does the peering
                            group need to be higher priority than my
                            default?  Currently the peer I would like it
                            to go out is priority 2.  Also, how would I
                            specify several Callee numbers?  Comma
                            separated?<o:p></o:p></p>
                        </div>
                        <p class="MsoNormal">Thank you again!<o:p></o:p></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><o:p> </o:p></p>
                        <div>
                          <p class="MsoNormal">On Thu, Mar 1, 2018 at
                            9:18 AM, Daniel Grotti <<a
                              href="mailto:dgrotti@sipwise.com"
                              target="_blank" moz-do-not-send="true">dgrotti@sipwise.com</a>>
                            wrote:<o:p></o:p></p>
                          <blockquote
                            style="border:none;border-left:solid #CCCCCC
                            1.0pt;padding:0cm 0cm 0cm
                            6.0pt;margin-left:4.8pt;margin-right:0cm">
                            <div>
                              <p class="MsoNormal"><tt><span
                                    style="font-size:10.0pt">Hi,</span></tt><span
style="font-size:10.0pt;font-family:"Courier New""><br>
                                  <tt>then specify the Callee number in
                                    teh peering rule of peering group
                                    you want to engage.</tt><br>
                                  <br>
                                  <tt>Cheers,</tt><span
                                    style="color:#888888"><br>
                                    <br>
                                  </span></span><span
                                  class="m-7758985901414976991hoenzb"><span
                                    style="color:#888888"><o:p></o:p></span></span></p>
                              <pre><span style="color:#888888">-- <o:p></o:p></span></pre>
                              <pre><span style="color:#888888">Daniel Grotti<o:p></o:p></span></pre>
                              <pre><span style="color:#888888">Head of Customer Support<o:p></o:p></span></pre>
                              <pre><span style="color:#888888">Sipwise GmbH, Campus 21/Europaring F15<o:p></o:p></span></pre>
                              <pre><span style="color:#888888">AT-2345 Brunn am Gebirge<o:p></o:p></span></pre>
                              <pre><span style="color:#888888"><o:p> </o:p></span></pre>
                              <pre><span style="color:#888888">Office: +43(0)130120332<o:p></o:p></span></pre>
                              <pre><span style="color:#888888">Email: <a href="mailto:dgrotti@sipwise.com" target="_blank" moz-do-not-send="true">dgrotti@sipwise.com</a><o:p></o:p></span></pre>
                              <pre><span style="color:#888888">Website: <a href="https://www.sipwise.com" target="_blank" moz-do-not-send="true">https://www.sipwise.com</a><o:p></o:p></span></pre>
                              <div>
                                <div>
                                  <div>
                                    <p class="MsoNormal">On 03/01/2018
                                      06:14 PM, Matt Schwinn wrote:<o:p></o:p></p>
                                  </div>
                                  <blockquote
                                    style="margin-top:5.0pt;margin-bottom:5.0pt">
                                    <div>
                                      <p class="MsoNormal">Callee...
                                        from one of my callers.<o:p></o:p></p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal"><o:p> </o:p></p>
                                      <div>
                                        <p class="MsoNormal">On Wed, Feb
                                          28, 2018 at 10:28 PM, Daniel
                                          Grotti <<a
                                            href="mailto:dgrotti@sipwise.com"
                                            target="_blank"
                                            moz-do-not-send="true">dgrotti@sipwise.com</a>>
                                          wrote:<o:p></o:p></p>
                                        <blockquote
                                          style="border:none;border-left:solid
                                          #CCCCCC 1.0pt;padding:0cm 0cm
                                          0cm
                                          6.0pt;margin-left:4.8pt;margin-right:0cm">
                                          <div>
                                            <p class="MsoNormal">Hi, <o:p></o:p></p>
                                            <div>
                                              <p class="MsoNormal">Which
                                                number is rejected?
                                                Caller number or callee
                                                number?<o:p></o:p></p>
                                            </div>
                                            <div>
                                              <p class="MsoNormal"><o:p> </o:p></p>
                                            </div>
                                            <div>
                                              <p class="MsoNormal"
                                                style="margin-bottom:12.0pt">Daniel<o:p></o:p></p>
                                              <div
id="m_-7758985901414976991m_-835569262977778928m_2443408233208410435AppleMailSignature">
                                                <p class="MsoNormal">Sent
                                                  from my iPhone<o:p></o:p></p>
                                              </div>
                                              <div>
                                                <div>
                                                  <div>
                                                    <p class="MsoNormal"
style="margin-bottom:12.0pt"><br>
                                                      On 01.03.2018, at
                                                      00:41, Matt
                                                      Schwinn <<a
                                                        href="mailto:winwithschwinn@gmail.com"
                                                        target="_blank"
moz-do-not-send="true">winwithschwinn@gmail.com</a>> wrote:<o:p></o:p></p>
                                                  </div>
                                                  <blockquote
                                                    style="margin-top:5.0pt;margin-bottom:5.0pt">
                                                    <div>
                                                      <div>
                                                        <p
                                                          class="MsoNormal">My
                                                          main provider
                                                          is rejecting a
                                                          phone number
                                                          that another
                                                          provider is
                                                          not.  I'd like
                                                          to route the
                                                          one number to
                                                          my secondary
                                                          provider. 
                                                          What is the
                                                          best way for
                                                          me to do
                                                          this?  I have
                                                          some ideas,
                                                          but I'd like
                                                          advice from
                                                          someone who
                                                          has done this
                                                          before. 
                                                          Thanks all!<br
                                                          clear="all">
                                                          <o:p></o:p></p>
                                                        <div>
                                                          <div>
                                                          <p
                                                          class="MsoNormal"><br>
                                                          -- <o:p></o:p></p>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <p
                                                          class="MsoNormal">Enjoy
                                                          the day!<br>
                                                          Matt Schwinn<br>
                                                          TCG
                                                          Technologies
                                                          LLC <o:p></o:p></p>
                                                          </div>
                                                          <div>
                                                          <p
                                                          class="MsoNormal">     
                                                          and<o:p></o:p></p>
                                                          </div>
                                                          <div>
                                                          <p
                                                          class="MsoNormal">Company
                                                          B<o:p></o:p></p>
                                                          </div>
                                                          <div>
                                                          <p
                                                          class="MsoNormal">209-202-3329<o:p></o:p></p>
                                                          </div>
                                                          <div>
                                                          <p
                                                          class="MsoNormal"><a
href="http://www.TCGTechLLC.com" target="_blank" moz-do-not-send="true">www.TCGTechLLC.com</a><o:p></o:p></p>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </blockquote>
                                                </div>
                                              </div>
                                              <blockquote
                                                style="margin-top:5.0pt;margin-bottom:5.0pt">
                                                <div>
                                                  <p class="MsoNormal">_______________________________________________<br>
                                                    Spce-user mailing
                                                    list<br>
                                                    <a
                                                      href="mailto:Spce-user@lists.sipwise.com"
                                                      target="_blank"
                                                      moz-do-not-send="true">Spce-user@lists.sipwise.com</a><br>
                                                    <a
                                                      href="https://lists.sipwise.com/listinfo/spce-user"
                                                      target="_blank"
                                                      moz-do-not-send="true">https://lists.sipwise.com/listinfo/spce-user</a><o:p></o:p></p>
                                                </div>
                                              </blockquote>
                                            </div>
                                          </div>
                                        </blockquote>
                                      </div>
                                      <p class="MsoNormal"><br>
                                        <br clear="all">
                                        <br>
                                        -- <o:p></o:p></p>
                                      <div>
                                        <div>
                                          <div>
                                            <div>
                                              <div>
                                                <div>
                                                  <div>
                                                    <div>
                                                      <div>
                                                        <div>
                                                          <div>
                                                          <p
                                                          class="MsoNormal">Enjoy
                                                          the day!<br>
                                                          Matt Schwinn<br>
                                                          TCG
                                                          Technologies
                                                          LLC <o:p></o:p></p>
                                                          </div>
                                                          <div>
                                                          <p
                                                          class="MsoNormal">     
                                                          and<o:p></o:p></p>
                                                          </div>
                                                          <div>
                                                          <p
                                                          class="MsoNormal">Company
                                                          B<o:p></o:p></p>
                                                          </div>
                                                          <div>
                                                          <p
                                                          class="MsoNormal">209-202-3329<o:p></o:p></p>
                                                          </div>
                                                          <div>
                                                          <p
                                                          class="MsoNormal"><a
href="http://www.TCGTechLLC.com" target="_blank" moz-do-not-send="true">www.TCGTechLLC.com</a><o:p></o:p></p>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </blockquote>
                                  <p class="MsoNormal"><o:p> </o:p></p>
                                </div>
                              </div>
                            </div>
                          </blockquote>
                        </div>
                        <p class="MsoNormal"><br>
                          <br clear="all">
                          <br>
                          -- <o:p></o:p></p>
                        <div>
                          <div>
                            <div>
                              <div>
                                <div>
                                  <div>
                                    <div>
                                      <div>
                                        <div>
                                          <div>
                                            <div>
                                              <p class="MsoNormal">Enjoy
                                                the day!<br>
                                                Matt Schwinn<br>
                                                TCG Technologies LLC <o:p></o:p></p>
                                            </div>
                                            <div>
                                              <p class="MsoNormal">     
                                                and<o:p></o:p></p>
                                            </div>
                                            <div>
                                              <p class="MsoNormal">Company
                                                B<o:p></o:p></p>
                                            </div>
                                            <div>
                                              <p class="MsoNormal">209-202-3329<o:p></o:p></p>
                                            </div>
                                            <div>
                                              <p class="MsoNormal"><a
                                                  href="http://www.TCGTechLLC.com"
                                                  target="_blank"
                                                  moz-do-not-send="true">www.TCGTechLLC.com</a><o:p></o:p></p>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                    <p class="MsoNormal"><o:p> </o:p></p>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <p class="MsoNormal"><br>
            <br clear="all">
            <br>
            -- <o:p></o:p></p>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div>
                            <div>
                              <div>
                                <p class="MsoNormal">Enjoy the day!<br>
                                  Matt Schwinn<br>
                                  TCG Technologies LLC <o:p></o:p></p>
                              </div>
                              <div>
                                <p class="MsoNormal">      and<o:p></o:p></p>
                              </div>
                              <div>
                                <p class="MsoNormal">Company B<o:p></o:p></p>
                              </div>
                              <div>
                                <p class="MsoNormal">209-202-3329<o:p></o:p></p>
                              </div>
                              <div>
                                <p class="MsoNormal"><a
                                    href="http://www.TCGTechLLC.com"
                                    target="_blank"
                                    moz-do-not-send="true">www.TCGTechLLC.com</a><o:p></o:p></p>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Spce-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a>
<a class="moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>