<html 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)"><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;}
@font-face
{font-family:"Open Sans";}
/* 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;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.yiv4908326468msonormal0, li.yiv4908326468msonormal0, div.yiv4908326468msonormal0
{mso-style-name:yiv4908326468msonormal0;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.yiv4908326468msonormal, li.yiv4908326468msonormal, div.yiv4908326468msonormal
{mso-style-name:yiv4908326468msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.yiv4908326468msochpdefault, li.yiv4908326468msochpdefault, div.yiv4908326468msochpdefault
{mso-style-name:yiv4908326468msochpdefault;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.yiv4908326468msohyperlink
{mso-style-name:yiv4908326468msohyperlink;}
span.yiv4908326468msohyperlinkfollowed
{mso-style-name:yiv4908326468msohyperlinkfollowed;}
span.yiv4908326468e-mailformatvorlage18
{mso-style-name:yiv4908326468e-mailformatvorlage18;}
span.yiv4908326468e-mailformatvorlage19
{mso-style-name:yiv4908326468e-mailformatvorlage19;}
p.yiv4908326468msonormal1, li.yiv4908326468msonormal1, div.yiv4908326468msonormal1
{mso-style-name:yiv4908326468msonormal1;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.yiv4908326468msohyperlink1
{mso-style-name:yiv4908326468msohyperlink1;
color:#0563C1;
text-decoration:underline;}
span.yiv4908326468msohyperlinkfollowed1
{mso-style-name:yiv4908326468msohyperlinkfollowed1;
color:#954F72;
text-decoration:underline;}
p.yiv4908326468msonormal01, li.yiv4908326468msonormal01, div.yiv4908326468msonormal01
{mso-style-name:yiv4908326468msonormal01;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.yiv4908326468e-mailformatvorlage181
{mso-style-name:yiv4908326468e-mailformatvorlage181;
color:windowtext;}
span.yiv4908326468e-mailformatvorlage191
{mso-style-name:yiv4908326468e-mailformatvorlage191;
color:windowtext;}
p.yiv4908326468msochpdefault1, li.yiv4908326468msochpdefault1, div.yiv4908326468msochpdefault1
{mso-style-name:yiv4908326468msochpdefault1;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:10.0pt;
font-family:"Times New Roman",serif;}
span.E-MailFormatvorlage32
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.E-MailFormatvorlage33
{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:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=DE-AT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Hello,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>yes for Outgoing Calls (so Calls from the SPCE to a Peering) you need a Rewrite Rule you set at the Peering.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>The direction is OUTGOING. Callee = The part who will receive the call (in this way anyone in the pstn network), Caller = The part who made the call (in this way one of your subscribers).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'>I am not expert in regex so better to ask somebody else for solve it. I believe the problem is that regex don’t regonize “+” as a character to set.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;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 style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Von:</span></b><span lang=DE style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Atlanta Man [mailto:axxtel_man@yahoo.com] <br><b>Gesendet:</b> Sonntag, 24. April 2016 16:55<br><b>An:</b> Matthias Hohl <matthias.hohl@telematica.at><br><b>Betreff:</b> Re: AW: [Spce-user] Rewrite Rules - How to?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>Hi Matthias,<o:p></o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>Thanks for your reply. <o:p></o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>First of all I need a little clarification. I assume Callee refers to person receiving a call on my switch and Caller refers to originator of the call. <o:p></o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>I want this to be used for calls where the call originates from the SipWise switch and terminates on a PSTN line.<o:p></o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>I tried the match pattern/replacement pattern combination. Get message they are not compatible. I have tried <o:p></o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>Match Pattern ^([1-9][0-9]+)$ with replacement +\1 and +1\1<o:p></o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>These were not successful. </span><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'>Both sent </span><span style='font-family:"Helvetica",sans-serif;color:black'><a href="sip:6785551212@sip.trunk.net"><span lang=EN-US>sip:6785551212@sip.trunk.net</span></a></span><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'> to the provider.<o:p></o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><table class=MsoNormalTable border=1 cellpadding=0 width=1139 style='width:854.25pt;border-top:solid #1C2B37 1.0pt;border-left:none;border-bottom:solid #DDDDDD 1.0pt;border-right:solid #DDDDDD 1.0pt;max-width: 100%;border-spacing: 0px;border-radius: 4px' id="yui_3_16_0_ym19_1_1461496116379_18700"><tr id="yui_3_16_0_ym19_1_1461496116379_18702"><td valign=top style='border-top:solid #DDDDDD 1.0pt;border-left:solid white 1.0pt;border-bottom:none;border-right:solid #DDDDDD 1.0pt;background:whitesmoke;padding:9.75pt 6.0pt 9.75pt 6.0pt' id="yui_3_16_0_ym19_1_1461496116379_18703"><p class=MsoNormal style='margin-bottom:15.0pt;line-height:15.0pt'><span style='font-size:9.0pt;font-family:"Open Sans";color:#333333'>ˆ([1-9][0-9]+)$<o:p></o:p></span></p></td><td valign=top style='border-top:solid #DDDDDD 1.0pt;border-left:solid white 1.0pt;border-bottom:none;border-right:solid #DDDDDD 1.0pt;background:whitesmoke;padding:9.75pt 6.0pt 9.75pt 6.0pt' id="yui_3_16_0_ym19_1_1461496116379_18704"><div id="yui_3_16_0_ym19_1_1461496116379_19005"><p class=MsoNormal style='margin-bottom:15.0pt;line-height:15.0pt'><span style='font-size:9.0pt;font-family:"Open Sans";color:#333333'>+1\1<o:p></o:p></span></p></div></td></tr></table><div id="yui_3_16_0_ym19_1_1461496116379_18705"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'> <o:p></o:p></span></p></div><div id="yui_3_16_0_ym19_1_1461496116379_17773"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div><div><div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif;color:black'>On Sunday, April 24, 2016 10:26 AM, Matthias Hohl <</span><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:black'><a href="mailto:matthias.hohl@telematica.at"><span lang=EN-US>matthias.hohl@telematica.at</span></a></span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif;color:black'>> wrote:</span><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p><div><div id=yiv4908326468><div><div><div><p class=MsoNormal style='background:white'><span style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>Hello,</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'> </span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>do you need it for Callee or Caller number?</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>I think you just need the “+” in front of your E.164 number.</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'> </span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>So you must create a Peering Rewrite Rule for this peer.</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'> </span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>For Callee Number try this:</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>Outbound Rewrite Rules for Callee</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>Match Pattern: ^.+$</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>Replacement Pattern: +\1</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'> </span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>For Caller to the same for “Outbound Rewrite Rules for Caller”</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'> </span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>But I am not 100% sure if the match and replacement pattern works in this way.</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'> </span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'> </span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><div id=yiv4908326468yqt36607><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><div><p class=MsoNormal style='background:white'><b><span lang=DE style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>Von:</span></b><span lang=DE style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'> Spce-user [<a href="mailto:spce-user-bounces@lists.sipwise.com">mailto:spce-user-bounces@lists.sipwise.com</a>] <b>Im Auftrag von </b>Atlanta Man<br><b>Gesendet:</b> Sonntag, 24. </span><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'>April 2016 13:17<br><b>An:</b> </span><span lang=DE style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'><a href="mailto:spce-user@lists.sipwise.com"><span lang=EN-US>spce-user@lists.sipwise.com</span></a></span><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black'><br><b>Betreff:</b> [Spce-user] Rewrite Rules - How to?</span><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div></div></div><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'> <o:p></o:p></span></p></div><div><div id="yiv4908326468yui_3_16_0_ym19_1_1461496116379_3139"><div><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>Hi,<o:p></o:p></span></p></div></div><div id="yiv4908326468yui_3_16_0_ym19_1_1461496116379_3139"><div><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'> <o:p></o:p></span></p></div></div><div id="yiv4908326468yui_3_16_0_ym19_1_1461496116379_3139"><div><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>I just got my SipWise server running and have questions about creating proper dial plans. One of my carriers requires this format for traffic sent to them. <o:p></o:p></span></p></div></div><div id="yiv4908326468yui_3_16_0_ym19_1_1461496116379_3139"><div><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'> <o:p></o:p></span></p></div></div><div id="yiv4908326468yui_3_16_0_ym19_1_1461496116379_3139"><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-size:13.0pt;font-family:"Helvetica",sans-serif;color:black'>INVITE </span><span style='font-size:13.0pt;font-family:"Helvetica",sans-serif;color:black'><span class=MsoHyperlink><span lang=EN-US>sip:+13032990801;rn=4088915607;npdi=yes@sip.trunk.net:5060</span></span></span><span lang=EN-US style='font-size:13.0pt;font-family:"Helvetica",sans-serif;color:black'> SIP/2.0</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div></div><div id="yiv4908326468yui_3_16_0_ym19_1_1461496116379_3139"><div><p class=MsoNormal style='background:white'><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'> </span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div></div><div id="yiv4908326468yui_3_16_0_ym19_1_1461496116379_3139"><div><p class=MsoNormal style='background:white'><span style='font-size:13.0pt;font-family:"Helvetica",sans-serif;color:black'>Can anyone assist, I am unable to create an outbound rewrite rule that produces this output.</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div></div><div id="yiv4908326468yui_3_16_0_ym19_1_1461496116379_3139"><div><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'> <o:p></o:p></span></p></div></div><div id="yiv4908326468yui_3_16_0_ym19_1_1461496116379_3139"><div><p class=MsoNormal style='background:white'><span style='font-size:13.0pt;font-family:"Helvetica",sans-serif;color:black'>Thanks</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div></div><div id="yiv4908326468yui_3_16_0_ym19_1_1461496116379_3139"><div><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'> <o:p></o:p></span></p></div></div></div></div></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div></div></div></div></div></div></body></html>