<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)"><!--[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:"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-style-span
{mso-style-name:apple-style-span;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal-compose;
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;}
--></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 hi,<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'>I think you need:<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'>Match Pattern: ^0([1-9]+)$<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'>Replacement pattern: 31\1<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 14:45<br><b>To:</b> Spce-user<br><b>Subject:</b> [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>Hello list,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></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><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><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Match Pattern: ^(0[1-9]+)$<o:p></o:p></p></div><div><p class=MsoNormal>Replacement pattern: 31\1<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></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><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Can you please shine some light on this rewrite rule?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Any help is highly appreciated.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal><span class=apple-style-span><span style='font-family:"Myriad Pro","serif";color:black'>With best regards,</span></span><span style='font-family:"Myriad Pro","serif";color:black'><br><br></span><span style='color:black'><o:p></o:p></span></p></div></div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'><br><img width=144 height=49 id=AF46B762-A2C3-40D1-B46D-9EED4A5C5071 src="cid:image001.png@01CF9B85.B62E3170"><o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'><br><br><span class=apple-style-span><b>Rogier Banis</b></span><o:p></o:p></span></p></div><div><p class=MsoNormal><span class=apple-style-span><b><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'>CTO</span></b></span><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal><span class=apple-style-span><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'>Hoflaan 6</span></span><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'><br><span class=apple-style-span>3956 EE Leersum</span><br><span class=apple-style-span>the Netherlands </span><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'><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></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'><br><br><o:p></o:p></span></p></div><div><p class=MsoNormal><span class=apple-style-span><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'>E. <a href="mailto:rogier@ningaloo.nl">rogier@ningaloo.nl</a></span></span><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'><br><br><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Myriad Pro","serif";color:black'><br><br style='orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;word-spacing:0px'><br></span><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>