<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@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;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:793913410;
        mso-list-template-ids:1565010090;}
@list l1
        {mso-list-id:1494299389;
        mso-list-type:hybrid;
        mso-list-template-ids:-1492625200 536870929 536870937 536870939 536870927 536870937 536870939 536870927 536870937 536870939;}
@list l1:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></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-NL" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Hi Matthias,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">That was it. When I used
</span><span lang="EN-US" style="mso-fareast-language:EN-US">^([1-9]+)$  it was not matching on the 1 and 9, but now it is matching on the 1 and 9
</span><span lang="EN-US" style="font-family:"Segoe UI Emoji",sans-serif;mso-fareast-language:EN-US">😊</span><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Thanks for your help!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Viraj</span><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-NL" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Matthias Hohl <matthias.hohl@telematica.at>
<br>
<b>Sent:</b> Friday, 19 February 2021 23:16<br>
<b>To:</b> 'Viraj Balgobind' <ideatells@outlook.com>; 'Walter Klomp' <walter@myrepublic.net><br>
<b>Cc:</b> spce-user@lists.sipwise.com<br>
<b>Subject:</b> AW: [Spce-user] Rewrite Rules<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="DE-AT" style="mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-AT" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">you need one rewrite rule on subscriber for normalize 0049 to 49<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">then you need an additional rewrite rule for peering where you set the prefix 54545 in front of your 49 number.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Subscriber Rule:<br>
Inbound Rewrite Rules for Callee<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Match Pattern: ^(00|\+)([1-9][0-9]+)$<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Replacement Pattern: \2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Peering Rule:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Outbound Rewrite Rules for Callee<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Match Pattern: ^([0-9]+)$<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="mso-fareast-language:EN-US">Replacement Pattern: 54545\1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">I would herbily recommend you to read the handbook in detail.<br>
This information you will find there too…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="DE">Von:</span></b><span lang="DE"> Viraj Balgobind <<a href="mailto:ideatells@outlook.com">ideatells@outlook.com</a>>
<br>
<b>Gesendet:</b> Freitag, 19. Februar 2021 17:36<br>
<b>An:</b> Walter Klomp <<a href="mailto:walter@myrepublic.net">walter@myrepublic.net</a>><br>
<b>Cc:</b> <a href="mailto:spce-user@lists.sipwise.com">spce-user@lists.sipwise.com</a><br>
<b>Betreff:</b> Re: [Spce-user] Rewrite Rules<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="DE-AT"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Hi Walter,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Thanks for your reply!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">What I try to achieve is the following:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US" style="mso-fareast-language:EN-US">The subscriber is calling the following outbound number 00491234567<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US" style="mso-fareast-language:EN-US">The rewrite rules applied to the subscriber removed the leading 0 to 491234567<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US" style="mso-fareast-language:EN-US">The peering party requires a prefix of
</span><span lang="DE-AT">54545</span><span lang="EN-US"> before the number </span>
<span lang="EN-US" style="mso-fareast-language:EN-US">491234567 before it is going on the trunk to the peer.</span><span lang="DE-AT" style="mso-fareast-language:EN-US"><o:p></o:p></span></li></ol>
<p class="MsoNormal"><span lang="DE-AT" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I need to make </span><span lang="DE-AT">a rewrite rule Outbound for Callee</span><span lang="EN-US">. Could you help me wat I need to put as Match en replace statement?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Viraj<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE-AT" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE-AT" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Walter Klomp <<a href="mailto:walter@myrepublic.net">walter@myrepublic.net</a>>
<br>
<b>Sent:</b> Thursday, 18 February 2021 15:40<br>
<b>To:</b> Viraj Balgobind <<a href="mailto:ideatells@outlook.com">ideatells@outlook.com</a>><br>
<b>Cc:</b> <a href="mailto:spce-user@lists.sipwise.com">spce-user@lists.sipwise.com</a><br>
<b>Subject:</b> Re: [Spce-user] Rewrite Rules<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="DE-AT"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="DE-AT">That is because you omit all numbers with 0 ...<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="DE-AT"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="DE-AT">I think you want to do this:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="DE-AT"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="DE-AT">^([1-9][0-9]+)$<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="DE-AT"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="DE-AT">If you want to only allow numbers starting with 1-9...<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="DE-AT"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="DE-AT">On Thu, 18 Feb 2021 at 21:54, Viraj Balgobind <<a href="mailto:ideatells@outlook.com">ideatells@outlook.com</a>> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p><span lang="DE-AT">Hi,<o:p></o:p></span></p>
<p><span lang="DE-AT">I am using mr8.5.3<o:p></o:p></span></p>
<p><span lang="DE-AT">I created a rewrite rule Outbound for Callee with the following values:<br>
Match:<br>
^([1-9]+)$<o:p></o:p></span></p>
<p><span lang="DE-AT">Replace:<br>
54545\1<o:p></o:p></span></p>
<p><span lang="DE-AT">Enabled:<br>
yes<o:p></o:p></span></p>
<p><span lang="DE-AT">W</span><span lang="EN-GB">h</span><span lang="DE-AT">en I try to place a call wilt outbound number: 1800654123 or 9165475633 than the prefix is not added in front of the
</span><span lang="EN-GB">number </span><span lang="DE-AT">1 or 9.<br>
But when I call a number in the range of 2-8 for example: 5975644555 than the prefix of 54545 is being placed in front of 5975644555 .<o:p></o:p></span></p>
<p><span lang="DE-AT"> <o:p></o:p></span></p>
<p><span lang="EN-GB">Is this a bug in the current system?</span><span lang="DE-AT"><o:p></o:p></span></p>
<p><span lang="EN-GB"> </span><span lang="DE-AT"><o:p></o:p></span></p>
<p><span lang="EN-GB">Kind regards,</span><span lang="DE-AT"><o:p></o:p></span></p>
<p><span lang="EN-GB">Viraj</span><span lang="DE-AT"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="DE-AT"> <o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="DE-AT">-- <br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com" target="_blank">http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com</a><o:p></o:p></span></p>
</blockquote>
</div>
</div>
<p class="MsoNormal"><span lang="DE-AT">-- <o:p></o:p></span></p>
<div>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="346" style="width:259.8pt">
<tbody>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif">Warmest Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:purple"><a href="https://myrepublic.com.sg/" target="_blank"><span style="color:purple"><br>
</span><span style="color:purple;text-decoration:none"><img border="0" width="140" height="92" style="width:1.4583in;height:.9583in" id="_x0000_i1025" src="https://myrepublic.com.sg/resources/email-signature.png"></span></a></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#7F2B99">Walter Klomp</span></b><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#4D4D4D">Head of Voice & Systems</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#4D4D4D">MyRepublic Limited</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#4D4D4D">T: +65 6816 1120</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#4D4D4D">F: +65 6717 2031</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
</td>
</tr>
<tr>
<td width="333" colspan="2" style="width:249.75pt;padding:0cm 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#4D4D4D">MyRepublic Limited</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#4D4D4D">11 Lorong 3 Toa Payoh Block B Jackson Square</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#4D4D4D">#04-11/15 Singapore 319579</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#4D4D4D"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#4D4D4D"><a href="https://myrepublic.com.sg/" target="_blank"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#4D4D4D">myrepublic.com.sg</span></a></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#4D4D4D">Follow us on: <a href="https://twitter.com/myrepublic" target="_blank"><span style="color:#4D4D4D">Twitter</span></a> | <a href="https://facebook.com/myrepublicsg" target="_blank"><span style="color:#4D4D4D">Facebook</span></a> | <a href="https://www.linkedin.com/company/myrepublic" target="_blank"><span style="color:#0563C1">LinkedIn</span></a></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
</td>
</tr>
</tbody>
</table>
<div>
<p class="MsoNormal"><span lang="DE-AT" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="346" style="width:259.8pt">
<tbody>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm"></td>
</tr>
</tbody>
</table>
</div>
</div>
<p class="MsoNormal"><span lang="DE-AT"><br>
</span><i><span lang="DE-AT" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#666666;background:white">The contents of this email and any attachments are confidential and may also be privileged. You must not disseminate the contents of this email
 and any attachments without permission of the sender. If you have received this email by mistake, please delete all copies and inform the sender immediately. You may refer to our company's Privacy Policy
<a href="https://myrepublic.net/sg/legal/terms-of-use-policies/privacy-policy/" target="_blank">
here</a>.</span></i><span lang="DE-AT"><o:p></o:p></span></p>
</div>
</body>
</html>