<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 15 (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;}
@font-face
{font-family:"Myriad Pro";
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","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;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.apple-style-span
{mso-style-name:apple-style-span;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.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;}
--></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-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Roger,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Do you have a P-Asserted-Identity (PAI) header set?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Most carriers will take that over what is in the From: field.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>John<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;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 style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> spce-user-bounces@lists.sipwise.com [mailto:spce-user-bounces@lists.sipwise.com] <b>On Behalf Of </b>Rogier Banis<br><b>Sent:</b> 09 July 2014 15:06<br><b>To:</b> John Murray<br><b>Cc:</b> Spce-user<br><b>Subject:</b> Re: [Spce-user] Problem with Caller ID Caller in outbound calls<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Unfortunately still not the correct result. CallerID still presented as +0201111111. Here the 3 rules i have now under Outbound Rewrite Rules for Caller:<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'><o:p> </o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0 style='z-index:auto'><tr><td style='padding:.75pt .75pt .75pt .75pt'></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal>Match: ^0([1-9]+)$<o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal>Replacement: 31\1<o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal>Description: Change 0XXXX to 31XXXX<o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'></td></tr><tr><td style='padding:.75pt .75pt .75pt .75pt'></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal>Match: ^(?:06)<o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal>Replacement: 316<o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal>Description: 316<o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'></td></tr><tr><td style='padding:.75pt .75pt .75pt .75pt'></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal>Match: ^([1-9][0-9]+)$<o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal>Replacement: 31\1<o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal>Description: 3188<o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'></td></tr></table><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'><o:p> </o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Op 9 jul. 2014, om 15:54 heeft John Murray <<a href="mailto:john.murray@skyracktelecom.com">john.murray@skyracktelecom.com</a>> het volgende geschreven:<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Roger hi,</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I think you need:</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Match Pattern: ^0([1-9]+)$</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Replacement pattern: 31\1</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Regards</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><div><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span class=apple-converted-space><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span></span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><a href="mailto:spce-user-bounces@lists.sipwise.com"><span style='color:purple'>spce-user-bounces@lists.sipwise.com</span></a><span class=apple-converted-space> </span>[<a href="mailto:spce-user-bounces@lists.sipwise.com"><span style='color:purple'>mailto:spce-user-bounces@lists.sipwise.com</span></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</span><o:p></o:p></p></div></div></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>Hello list,<o:p></o:p></p></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>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></p></div></div><div><div><p class=MsoNormal>In my rewrite rules for the trunk i created the following rule under outbound rewrite rules for caller:<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>Match Pattern: ^(0[1-9]+)$<o:p></o:p></p></div></div><div><div><p class=MsoNormal>Replacement pattern: 31\1<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>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></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>Can you please shine some light on this rewrite rule?<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>Any help is highly appreciated.<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div><div><div><div><p class=MsoNormal><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><br></span><o:p></o:p></p></div></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif"'><br><image001.png></span><o:p></o:p></p></div><div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif"'><br><br><span class=apple-style-span><b>Rogier Banis</b></span></span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span class=apple-style-span><b><span style='font-size:9.0pt;font-family:"Myriad Pro","serif"'>CTO</span></b></span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span class=apple-style-span><span style='font-size:9.0pt;font-family:"Myriad Pro","serif"'>Hoflaan 6</span></span><span style='font-size:9.0pt;font-family:"Myriad Pro","serif"'><br><span class=apple-style-span>3956 EE Leersum</span><br><span class=apple-style-span>the Netherlands </span></span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:9.0pt;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></span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif"'><br><br><br></span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span class=apple-style-span><span style='font-size:9.0pt;font-family:"Myriad Pro","serif"'>E.</span></span><span class=apple-converted-space><span style='font-size:9.0pt;font-family:"Myriad Pro","serif"'> </span></span><span class=apple-style-span><span style='font-size:9.0pt;font-family:"Myriad Pro","serif"'><a href="mailto:rogier@ningaloo.nl"><span style='color:purple'>rogier@ningaloo.nl</span></a></span></span><o:p></o:p></p></div></div><div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif"'><br><br><br></span><o:p></o:p></p></div></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif"'><br><br><br><br></span><o:p></o:p></p></div></div><div><p class=MsoNormal> <o:p></o:p></p></div></div></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>