<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:0 0 0 0 0 0 0 0 0 0;}
@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:11.0pt;
font-family:"Calibri","sans-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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.5pt;
font-family:Consolas;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:Consolas;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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]--></head><body lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>First of all, my apologies to Jon, et all....it has been a long while since I have used lists. I was concentrating on making sure that it was a plain text post (as I realised my last post wasn't), that I forgot about the reply issue. Point noted.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>On that matter, I have made this post hopefully create its own thread, so this does not hijack that thread entirely...<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Thank you Andreas, that answers it perfectly. We are in the process of understanding the product concepts, and if we come across a solution, we are only too happy provide some input.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Thanks and sorry again.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Regards<o:p></o:p></p><p class=MsoPlainText>Bob<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoPlainText><span lang=EN-US>-----Original Message-----<br>From: spce-user-bounces@lists.sipwise.com [mailto:spce-user-bounces@lists.sipwise.com] On Behalf Of Andreas Granig<br>Sent: Wednesday, 3 July 2013 5:09 PM<br>To: spce-user@lists.sipwise.com<br>Subject: Re: [Spce-user] Order that costs are applied to CDR</span><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Hi,<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>On 07/03/2013 07:00 AM, Bob Fryer wrote:<o:p></o:p></p><p class=MsoPlainText>> Argentina 001154. $0.55<o:p></o:p></p><p class=MsoPlainText>> Argentina Mobile 0011541151. $1.00<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>It tries to find the longest match in terms of length of the pattern.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>This should work perfectly fine with simple cases like the one above, it can only lead to surprises for more complex patterns, like "^001154" vs "^00[1-9][1-9]", where the first one is matching on a longer string, but the second would be used because the pattern itself is longer. We don't have a solution for that one yet, any input is highly appreciated.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Andreas<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>_______________________________________________<o:p></o:p></p><p class=MsoPlainText>Spce-user mailing list<o:p></o:p></p><p class=MsoPlainText><a href="mailto:Spce-user@lists.sipwise.com"><span style='color:windowtext;text-decoration:none'>Spce-user@lists.sipwise.com</span></a><o:p></o:p></p><p class=MsoPlainText><a href="http://lists.sipwise.com/listinfo/spce-user"><span style='color:windowtext;text-decoration:none'>http://lists.sipwise.com/listinfo/spce-user</span></a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>