<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body dir="auto">
<div style="-webkit-text-size-adjust: auto;">In order to avoid matching numbers starting with 00 as well, I recommend using:</div>
<div style="-webkit-text-size-adjust: auto;"><span style="background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div style="-webkit-text-size-adjust: auto;"><span style="background-color: rgba(255, 255, 255, 0);">^0([1-9][0-9]+)$</span></div>
<div style="-webkit-text-size-adjust: auto;"><span style="background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div style="-webkit-text-size-adjust: auto;">Regards,</div>
<div style="-webkit-text-size-adjust: auto;"><br>
</div>
<div style="-webkit-text-size-adjust: auto;">Marc</div>
<div style="-webkit-text-size-adjust: auto;"><br>
On 9 juil. 2014, at 16:16, "Rogier Banis" <<a href="mailto:rogier@ningaloo.nl">rogier@ningaloo.nl</a>> wrote:<br>
<br>
</div>
<blockquote type="cite" style="-webkit-text-size-adjust: auto;">
<div>Dario,
<div><br>
</div>
<div>You where right changing the 1 to 0 did the trick. Can you explain why since i am trying to understand what went wrong.</div>
<div><br>
<br>
<div>
<div>Op 9 jul. 2014, om 16:11 heeft Dario D Busso <<a href="mailto:dbusso@sipwise.com">dbusso@sipwise.com</a>> het volgende geschreven:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div bgcolor="#FFFFFF" text="#000000">As I wrote:<br>
Match Pattern: ^0([0-9]+)$<br>
-d<br>
<div class="moz-cite-prefix">On 2014-07-09 16:05, Rogier Banis wrote:<br>
</div>
<blockquote cite="mid:E88D0A36-9491-4E96-9B9F-F2CF2239A361@ningaloo.nl" type="cite">
Unfortunately still not the correct result. CallerID still presented as +0201111111. Here the 3 rules i have now under Outbound Rewrite Rules for Caller:
<div><br>
<div apple-content-edited="true"><span style="font-family: 'Myriad Pro'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline" style="font-family: 'Myriad Pro'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<table class="table table-bordered table-striped
                table-highlight table-hover" style="position: static;
                z-index: auto;">
<tbody>
<tr class="sw_action_row">
<td><a moz-do-not-send="true" href="https://sbc01.nvoice.nl:1443/rewrite/6/rules?move=19&where=up&back=https%3A%2F%2Fsbc01.nvoice.nl%3A1443%2Frewrite%2F6%2Frules"></a><a moz-do-not-send="true" href="https://sbc01.nvoice.nl:1443/rewrite/6/rules?move=19&where=down&back=https%3A%2F%2Fsbc01.nvoice.nl%3A1443%2Frewrite%2F6%2Frules"></a><br>
</td>
<td>Match: ^0([1-9]+)$</td>
<td>Replacement: 31\1</td>
<td>Description: Change 0XXXX to 31XXXX</td>
<td class="ngcp-actions-column">
<div style="visibility: hidden;" class="sw_actions
                        pull-right">
</div>
<br>
</td>
</tr>
<tr class="sw_action_row">
<td><a moz-do-not-send="true" href="https://sbc01.nvoice.nl:1443/rewrite/6/rules?move=15&where=up&back=https%3A%2F%2Fsbc01.nvoice.nl%3A1443%2Frewrite%2F6%2Frules"></a><a moz-do-not-send="true" href="https://sbc01.nvoice.nl:1443/rewrite/6/rules?move=15&where=down&back=https%3A%2F%2Fsbc01.nvoice.nl%3A1443%2Frewrite%2F6%2Frules"></a></td>
<td>Match: ^(?:06)</td>
<td>Replacement: 316</td>
<td>Description: 316</td>
<td class="ngcp-actions-column">
<div style="visibility: hidden;" class="sw_actions
                        pull-right">
</div>
<br>
</td>
</tr>
<tr class="sw_action_row">
<td><a moz-do-not-send="true" href="https://sbc01.nvoice.nl:1443/rewrite/6/rules?move=12&where=up&back=https%3A%2F%2Fsbc01.nvoice.nl%3A1443%2Frewrite%2F6%2Frules"></a><a moz-do-not-send="true" href="https://sbc01.nvoice.nl:1443/rewrite/6/rules?move=12&where=down&back=https%3A%2F%2Fsbc01.nvoice.nl%3A1443%2Frewrite%2F6%2Frules"></a></td>
<td>Match: ^([1-9][0-9]+)$</td>
<td>Replacement: 31\1</td>
<td>Description: 3188</td>
</tr>
</tbody>
</table>
<div><br>
</div>
</span></div>
<br>
<div>
<div>Op 9 jul. 2014, om 15:54 heeft John Murray <<a moz-do-not-send="true" href="mailto:john.murray@skyracktelecom.com">john.murray@skyracktelecom.com</a>> het volgende geschreven:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div link="blue" vlink="purple" style="font-family:
              MyriadPro-Regular; font-size: 12px; font-style: normal;
              font-variant: normal; font-weight: normal; letter-spacing:
              normal; line-height: normal; orphans: auto; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; widows: auto; word-spacing: 0px;
              -webkit-text-stroke-width: 0px;" lang="EN-GB">
<div class="WordSection1" style="page: WordSection1;">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri,
                    sans-serif; color: rgb(31, 73, 125);">Roger hi,<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri,
                    sans-serif; color: rgb(31, 73, 125);"> </span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri,
                    sans-serif; color: rgb(31, 73, 125);">I think you need:<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri,
                    sans-serif; color: rgb(31, 73, 125);">Match Pattern: ^0([1-9]+)$<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri,
                    sans-serif; color: rgb(31, 73, 125);">Replacement pattern: 31\1<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri,
                    sans-serif; color: rgb(31, 73, 125);"> </span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri,
                    sans-serif; color: rgb(31, 73, 125);">Regards<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri,
                    sans-serif; color: rgb(31, 73, 125);"> </span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri,
                    sans-serif; color: rgb(31, 73, 125);">John<o:p></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
<span style="font-size: 11pt; font-family: Calibri,
                    sans-serif; color: rgb(31, 73, 125);"> </span></div>
<div>
<div style="border-style: solid none none;
                    border-top-color: rgb(225, 225, 225);
                    border-top-width: 1pt; padding: 3pt 0cm 0cm;">
<div style="margin: 0cm 0cm 0.0001pt; font-size:
                      12pt; font-family: 'Times New Roman', serif;">
<b><span style="font-size: 11pt; font-family: Calibri,
                          sans-serif;" lang="EN-US">From:</span></b><span style="font-size: 11pt; font-family: Calibri,
                        sans-serif;" lang="EN-US"><span class="Apple-converted-space"> </span><a moz-do-not-send="true" href="mailto:spce-user-bounces@lists.sipwise.com" style="color: purple; text-decoration:
                          underline;">spce-user-bounces@lists.sipwise.com</a><span class="Apple-converted-space"> </span>[<a moz-do-not-send="true" href="mailto:spce-user-bounces@lists.sipwise.com" style="color: purple; text-decoration:
                          underline;">mailto:spce-user-bounces@lists.sipwise.com</a>]<span class="Apple-converted-space"> </span><b>On
 Behalf Of</b>Rogier Banis<br>
<b>Sent:</b><span class="Apple-converted-space"> </span>09 July 2014 14:45<br>
<b>To:</b><span class="Apple-converted-space"> </span>Spce-user<br>
<b>Subject:</b><span class="Apple-converted-space"> </span>[Spce-user] Problem with Caller ID Caller in outbound calls<o:p></o:p></span></div>
</div>
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman', serif;">
Hello list,<o:p></o:p></div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
On a peer i need to create a rewrite rule for the caller ID of the caller. In this case a call comes in to our PBX and gets forwarded to a trunk. The incoming callerid of the caller is like 0201111111. This needs to be rewritten to 31201111111<o:p></o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
In my rewrite rules for the trunk i created the following rule under outbound rewrite rules for caller:<o:p></o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
Match Pattern: ^(0[1-9]+)$<o:p></o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
Replacement pattern: 31\1<o:p></o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
As you might suspect this doesn’t work otherwise i wouldn’t be mailing this list ;)) The CallerID gets presented on the final receiver phone as +0201111111<o:p></o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
Can you please shine some light on this rewrite rule?<o:p></o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
Any help is highly appreciated.<o:p></o:p></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
<div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size:
                        12pt; font-family: 'Times New Roman', serif;">
<span class="apple-style-span"><span style="font-family: 'Myriad Pro', serif;">With best regards,</span></span><span style="font-family: 'Myriad Pro', serif;"><br>
<br>
</span><span style=""><o:p></o:p></span></div>
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size:
                      12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 9pt; font-family: 'Myriad
                        Pro', serif;"><br>
<span><image001.png></span><o:p></o:p></span></div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size:
                        12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 9pt; font-family: 'Myriad
                          Pro', serif;"><br>
<br>
<span class="apple-style-span"><b>Rogier Banis</b></span><o:p></o:p></span></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size:
                        12pt; font-family: 'Times New Roman', serif;">
<span class="apple-style-span"><b><span style="font-size: 9pt; font-family:
                              'Myriad Pro', serif;">CTO</span></b></span><span style="font-size: 9pt; font-family: 'Myriad
                          Pro', serif;"><o:p></o:p></span></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size:
                        12pt; font-family: 'Times New Roman', serif;">
<span class="apple-style-span"><span style="font-size: 9pt; font-family: 'Myriad
                            Pro', serif;">Hoflaan 6</span></span><span style="font-size: 9pt; font-family: 'Myriad
                          Pro', serif;"><br>
<span class="apple-style-span">3956 EE Leersum</span><br>
<span class="apple-style-span">the Netherlands </span><o:p></o:p></span></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size:
                        12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 9pt; font-family: 'Myriad
                          Pro', serif;"><br>
<span class="apple-style-span">T. +3188 7777 500</span><br>
<span class="apple-style-span">F. +3188 7777 501</span><o:p></o:p></span></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size:
                        12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 9pt; font-family: 'Myriad
                          Pro', serif;"><br>
<br>
<o:p></o:p></span></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size:
                        12pt; font-family: 'Times New Roman', serif;">
<span class="apple-style-span"><span style="font-size: 9pt; font-family: 'Myriad
                            Pro', serif;">E.<span class="Apple-converted-space"> </span><a moz-do-not-send="true" href="mailto:rogier@ningaloo.nl" style="color: purple; text-decoration:
                              underline;">rogier@ningaloo.nl</a></span></span><span style="font-size: 9pt; font-family: 'Myriad
                          Pro', serif;"><o:p></o:p></span></div>
</div>
<div>
<div style="margin: 0cm 0cm 0.0001pt; font-size:
                        12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 9pt; font-family: 'Myriad
                          Pro', serif;"><br>
<br>
<o:p></o:p></span></div>
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size:
                      12pt; font-family: 'Times New Roman', serif;">
<span style="font-size: 9pt; font-family: 'Myriad
                        Pro', serif;"><br>
<br style="orphans: 2; text-align: start;
                          widows: 2; -webkit-text-stroke-width: 0px;
                          word-spacing: 0px;">
<br>
</span><o:p></o:p></div>
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</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="http://lists.sipwise.com/listinfo/spce-user">http://lists.sipwise.com/listinfo/spce-user</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div style="line-height:16px; margin:6px 0; padding:8px 8px 8px
        8px; border-top:1px #aeb1a6 dotted; border-bottom:1px #aeb1a6
        dotted; font-family: 'Lucida Sans', Lucida Grande, Verdana,
        Arial, Sans-Serif; font-size:11px; color:#555555;">
<strong style="color:#333333; text-transform:uppercase;
          font-size:10px;">Dario D Busso
</strong><br>
Operation Engineer
<p><a href="http://www.sipwise.com/" style="color:rgb(0, 136,
            204) !important; text-decoration:none !important;
            border-bottom:1px dotted #AAA;">Sipwise GmbH
</a>, Campus 21/Europaring F15<br>
AT-2345 Brunn am Gebirge </p>
<p>Phone:<br>
  office: <a href="callto:+4313012034" style="color:rgb(0,
            136, 204) !important; text-decoration:none !important;
            border-bottom:1px dotted #AAA;">
+43(0)1 301 2034 </a><br>
  mobile: <a href="callto:+4369910981586" style="color:rgb(0,
            136, 204) !important; text-decoration:none !important;
            border-bottom:1px dotted #AAA;">
+43(0)699 10981586 </a><br>
Email:  <a href="mailto:dbusso@sipwise.com" style="color:rgb(0, 136, 204) !important;
            text-decoration:none !important; border-bottom:1px dotted
            #AAA;">
dbusso@sipwise.com </a><br>
Website:  <a href="http://www.sipwise.com/" style="color:rgb(0, 136, 204) !important;
            text-decoration:none !important; border-bottom:1px dotted
            #AAA;">
www.sipwise.com </a></p>
<p>Particulars according Austrian Companies Code paragraph 14<br>
"Sipwise GmbH“ - Europaring F15 – 2345 Brunn am Gebirge<br>
FN:305595f, Commercial Court Vienna, ATU64002206 </p>
</div>
</div>
</div>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
<a href="http://lists.sipwise.com/listinfo/spce-user">http://lists.sipwise.com/listinfo/spce-user</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<blockquote type="cite" style="-webkit-text-size-adjust: auto;">
<div><span>_______________________________________________</span><br>
<span>Spce-user mailing list</span><br>
<span><a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a></span><br>
<span><a href="http://lists.sipwise.com/listinfo/spce-user">http://lists.sipwise.com/listinfo/spce-user</a></span><br>
</div>
</blockquote>
</body>
</html>