<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
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 Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-ZA;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-ZA" link="blue" vlink="purple"><div class="WordSection1"><pre><span style="color:black">Hi Daniel,</span></pre><pre><span style="color:black"> </span></pre><pre><span style="color:black">(I had to receive your reply online, I often don’t seem to get mails from sipwise forum… I use google apps, and I’ve checked my junk/spam, but your reply is not there).</span></pre>
<pre><span style="color:black"> </span></pre><pre><span style="color:black"> </span></pre><pre><span style="color:black">Anyway, yes, that’s exactly how I expected them to work based on the user manual. So I have an entry that is the longer part, and it does not work. If I modify that entry, and take its original contents, and put them into a new entry, it works, but the pre-existing one that was created in 2.5, if I put my mobile in that line, its not working.</span></pre>
<pre><span style="color:black"> </span></pre><pre><span style="color:black">I looked in mysql in lcr_rule to see if I could see any noticeable difference between the old “upgraded” entry, and the new one, but I’m guessing the problem lay in lcr_rule_target. </span></pre>
<pre><span style="color:black"> </span></pre><pre><span style="color:black">Deleting the non working rule and making a new one fixes the problem, but how can I run a query again lcr_rule and lcr_rule_target to see there are no other broken entries like this one was? (Also the broken rule is still in the table, but not in the GUI… didn’t make much sense to me?)</span></pre>
<pre><span style="color:black"> </span></pre><pre><span style="color:black">Kind Regards</span></pre><pre><span style="color:black"> </span></pre><pre><span style="color:black">Matthew</span></pre><pre><span style="color:black"> </span></pre>
<pre><span style="color:black"> </span></pre><pre><span style="color:black"> </span></pre><pre><span style="color:black"> </span></pre><pre><span style="color:black"> </span></pre><pre><span style="color:black">Hi Matthew,</span></pre>
<pre><span style="color:black">the rules matching works like that:</span></pre><pre><span style="color:black"> </span></pre><pre><span style="color:black">(1) match according to longest Request-URI user part match</span></pre>
<pre><span style="color:black">(2) match according to tuple's priority</span></pre><pre><span style="color:black">(3) match according to tuple's randomized weight</span></pre><pre><span style="color:black"> </span></pre>
<pre><span style="color:black">So first of all it matches the longest prefix (no matter about priority)</span></pre><pre><span style="color:black">Then the priority is take in place.</span></pre><pre><span style="color:black"> </span></pre>
<pre><span style="color:black">Daniel</span></pre><pre><span style="color:black"> </span></pre><pre><span style="color:black"> </span></pre><pre><span style="color:black"> </span></pre><pre><span style="color:black"> </span></pre>
<pre><span style="color:black">On 02/06/2014 12:58 PM, Matthew Ogden wrote:</span></pre><pre><span style="color:black">><i> I have 3 peering groups, 2 on priority 2, and another on priority 4.</i></span></pre><pre><span style="color:black">><i> </i></span></pre>
<pre><span style="color:black">><i>  </i></span></pre><pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i> Inside each of those is only one peering server.</i></span></pre><pre>
<span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i>  </i></span></pre><pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i> The group on priority 4 has a peering rule, the full length of my mobile</i></span></pre>
<pre><span style="color:black">><i> number in “Callee Prefix”, the others have some peering rules, but they</i></span></pre><pre><span style="color:black">><i> are much shorter, only 4 digits, or no digits (default).</i></span></pre>
<pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i>  </i></span></pre><pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i> But lowest priority server is never used to phone my mobile . Templates</i></span></pre>
<pre><span style="color:black">><i> are on 2.8.18</i></span></pre><pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i>  </i></span></pre><pre><span style="color:black">><i> </i></span></pre>
<pre><span style="color:black">><i> I just get this: Feb  6 13:46:52 spce /usr/sbin/kamailio[2359]: INFO:</i></span></pre><pre><span style="color:black">><i> <script>: Load gws matching calling part</i></span></pre>
<pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i> And the first peer it uses, is not the one I had expected it to.</i></span></pre><pre><span style="color:black">><i> </i></span></pre>
<pre><span style="color:black">><i>  </i></span></pre><pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i> I have also tried reducing the digits that match my mobile number,  but</i></span></pre>
<pre><span style="color:black">><i> that didn’t make an impact.</i></span></pre><pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i>  </i></span></pre><pre><span style="color:black">><i> </i></span></pre>
<pre><span style="color:black">><i> On at least version 2.5 or 2.6 this did work as expected.</i></span></pre><pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i>  </i></span></pre>
<pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i> I wondered… perhaps this is broken during an upgrade, and the data is</i></span></pre><pre><span style="color:black">><i> missing a column during upgrade process or something like that… I then</i></span></pre>
<pre><span style="color:black">><i> added an entry again for my mobile number and it works!</i></span></pre><pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i>  </i></span></pre>
<pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i> Instead of re-adding every entry, can I check in the DB what the</i></span></pre><pre><span style="color:black">><i> difference might be?</i></span></pre>
<pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i> </i></span></pre><pre><span style="color:black">><i> _______________________________________________</i></span></pre>
<pre><span style="color:black">><i> Spce-user mailing list</i></span></pre><pre><span style="color:black">><i> <a href="http://lists.sipwise.com/listinfo/spce-user">Spce-user at lists.sipwise.com</a></i></span></pre>
<pre><span style="color:black">><i> <a href="http://lists.sipwise.com/listinfo/spce-user">http://lists.sipwise.com/listinfo/spce-user</a></i></span></pre><pre><span style="color:black">><i> </i></span></pre><p class="MsoNormal">
 </p></div></body></html>