<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap:break-word">
<div>Hi!</div>
<div><br>
</div>
<div>There are 2 different ^ on keyboard. Try the other one.</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="font-size:9px; color:#575757">Von Samsung Mobile gesendet</div>
</div>
<br>
<br>
<div>-------- Ursprüngliche Nachricht --------</div>
<div>Von: Rogier Banis </div>
<div>Datum:28.03.2014 14:58 (GMT+01:00) </div>
<div>An: Andreas Granig </div>
<div>Cc: spce-user@lists.sipwise.com </div>
<div>Betreff: Re: [Spce-user] need rewrite rules advise </div>
<div><br>
</div>
<div>When i put a ^at the beginning of the rule so it looks like ˆ([1-9][0-9]+)$ then the outbound CLI is 201234567 instead 31201234567. Still can’t get it working perfectly.
<div><span style="color:rgb(0,0,0); 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"><span style="color:rgb(0,0,0); 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"><br class="Apple-interchange-newline" style="color:rgb(0,0,0); 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">
<br class="Apple-interchange-newline" style="color:rgb(0,0,0); 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">
</span></span></div>
<br>
<div>
<div>Op 27 mrt. 2014, om 21:45 heeft Andreas Granig <<a href="mailto:agranig@sipwise.com">agranig@sipwise.com</a>> het volgende geschreven:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hi,<br>
<br>
At first glance, you need a "^" character at the beginning of your match<br>
pattern in order to match from the start of the CLI.<br>
<br>
Andreas<br>
<br>
On 03/27/2014 12:09 PM, Rogier Banis wrote:<br>
<blockquote type="cite">Hello list,<br>
<br>
I have a question about rewriting caller id’s in Sipwise. The situation is like this: behind SIPWise we have several PBX’es that use SIPwise to dial out to our trunk providers. Server A presents it’s caller id like 201234567 without country code. Server B presents
 like 0201234567 also without country code. The 3rd server presents E164 so 31201234567.<br>
Now the outbound calls to our trunk provider need the CLI to be presented in E164 so 31201234567. On the trunk i created the following rewrite rules:<br>
<br>
Outbound rewrite rules for caller<br>
__<br>
Match pattern: \A(?:06)<br>
Replacement pattern: 316<br>
—<br>
Match pattern: ([1-9][0-9]+)$<br>
Replacement pattern: 31\1<br>
<br>
<br>
For some reason it works but not perfect. For example when a customer dials outbound and he has callerid 318123456 (that is without country code) the NL country code still has to be added so the number looks like 31318123456.<br>
Can anyone help me or point me in the right direction? I have tried so many riles already and i just doesn’t work 100% every time.<br>
<br>
Thank you very much.<br>
<br>
With best regards,<br>
<br>
Rogier B<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
http://lists.sipwise.com/listinfo/spce-user<br>
<br>
</blockquote>
<br>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
http://lists.sipwise.com/listinfo/spce-user<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>