<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="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 11 (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>
<!--a:link
        {mso-style-priority:99;}
span.MSOHYPERLINK
        {mso-style-priority:99;}
a:visited
        {mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority:99;}
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</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 bgcolor=white lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Shouldn’t you be able to use
something akin to ‘rule 1 /^.*/ /………/’ <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Another way I’m thinking may work is
using the \ to ignore the special meaning of the +, something like ‘rule
1 /\+/ //’ could match the + char only and replace it with a null,
leaving the 10 digit number. See translation character rule below
(assuming it comes through clearly).<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Granted a little simplistic, but the first
captures any number of digits and then the output is 10 digits. Only
thing I don’t know without research is whether the + is a ‘captured’
character.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Excerpt from: <a
href="http://www.cisco.com/en/US/tech/tk652/tk90/technologies_configuration_example09186a00803f818a.shtml">http://www.cisco.com/en/US/tech/tk652/tk90/technologies_configuration_example09186a00803f818a.shtml</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman"'>The voice translation rules use characters
similar to Regular Expression Syntax (regexp). But, there are some minor
differences and limitations. Most of the limitations are of no real concern
since only digit manipulation is performed. <o:p></o:p></span></font></p>
<table class=MsoNormalTable border=1 cellspacing=1 cellpadding=0 width="60%"
bgcolor=white style='width:60.0%;background:white'>
<tr>
<td bgcolor="#CCCCFF" style='background:#CCCCFF;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:center'><b><font size=4 color=black face="Times New Roman"><span
style='font-size:12.5pt;font-family:"Times New Roman";font-weight:bold'>Voice
Translation Rule Character<o:p></o:p></span></font></b></p>
</td>
<td bgcolor="#CCCCFF" style='background:#CCCCFF;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:center'><b><font size=4 color=black face="Times New Roman"><span
style='font-size:12.5pt;font-family:"Times New Roman";font-weight:bold'>Description<o:p></o:p></span></font></b></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>^</span></font><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman";color:windowtext'> <o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Match the expression at the
start of a line. <o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>$</span></font><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman";color:windowtext'> <o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Match the expression at the
end of the line. <o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>/</span></font><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman";color:windowtext'> <o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Delimiter that marks the
start and end of both the matching and replacement strings. <o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>\</span></font><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman";color:windowtext'> <o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Escape the special meaning of
the next character. <o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>-</span></font><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman";color:windowtext'> <o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Indicates a range when not in
the first/last position. Used with the'[' and ']'.<o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>[list] </span></font><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'><o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Match a single character in a
list. <o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>[^list] </span></font><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'><o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Do not match a single
character specified in the list. <o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>.</span></font><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman";color:windowtext'> <o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Match any single character. <o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>*</span></font><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman";color:windowtext'> <o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Repeat the previous regexp
zero or more times. <o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>+</span></font><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman";color:windowtext'> <o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Repeat the previous regular
expression one or more times. <o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>?</span></font><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman";color:windowtext'> <o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Repeat the previous regular
expression zero or one time (use CTRL-V in order to enter in IOS). <o:p></o:p></span></font></p>
</td>
</tr>
<tr>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>()</span></font><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman";color:windowtext'> <o:p></o:p></span></font></p>
</td>
<td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
font-family:"Times New Roman";color:windowtext'>Groups regular expressions. <o:p></o:p></span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman";color:windowtext'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> cisco-voip-bounces@puck.nether.net
[mailto:cisco-voip-bounces@puck.nether.net] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Wes Sisk<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, September 19, 2008
5:48 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Ryan West<br>
<b><span style='font-weight:bold'>Cc:</span></b> cisco-voip@puck.nether.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [cisco-voip] Dealing
with + in destination patterns</span></font><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt'>maybe use 'forward-digits' command to use only the
last 10 digits?<br>
<br>
On 9/19/2008 5:31 PM, Ryan West wrote: <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt'><!--[if gte mso 9]><xml>
<u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<u3:shapelayout u4:ext="edit">
<u3:idmap u4:ext="edit" data="1"/>
</u3:shapelayout>
</xml><![endif]-->What’s the best way to deal with a full e.164 number
coming from a SIP provider. I am receiving +1 with the remaining 10
digits following. The only dial-peer that seems to match is the catchall
.T. I have tried creating a translation-profile to rewrite the number,
but the + symbol is not permitted.<o:p></o:p></span></font><u5:p></u5:p></p>
<p class=MsoNormal><u5:p><font size=2 color=black face=Calibri><span
style='font-size:11.0pt'> <o:p></o:p></span></font></u5:p></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt'>Thanks guys,<o:p></o:p></span></font><u5:p></u5:p></p>
<p class=MsoNormal><u5:p><font size=2 color=black face=Calibri><span
style='font-size:11.0pt'> <o:p></o:p></span></font></u5:p></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span
style='font-size:11.0pt'>-ryan<o:p></o:p></span></font><u5:p></u5:p></p>
<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre
style='text-align:center'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>
<hr size=4 width="90%" align=center>
</span></font></pre><pre><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>_______________________________________________<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>cisco-voip mailing list<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'> <o:p></o:p></span></font></pre></div>
</body>
</html>