<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>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
h1
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:4.0pt;
        margin-left:21.6pt;
        text-indent:-21.6pt;
        page-break-before:always;
        page-break-after:avoid;
        mso-list:l2 level1 lfo1;
        font-size:14.0pt;
        font-family:"Times New Roman";
        font-weight:bold;}
h2
        {margin-top:20.0pt;
        margin-right:0cm;
        margin-bottom:4.0pt;
        margin-left:28.8pt;
        text-indent:-28.8pt;
        page-break-after:avoid;
        mso-list:l2 level2 lfo1;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-weight:bold;}
h3
        {margin-top:16.0pt;
        margin-right:0cm;
        margin-bottom:4.0pt;
        margin-left:36.0pt;
        text-indent:-36.0pt;
        page-break-after:avoid;
        mso-list:l2 level3 lfo1;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-weight:bold;}
h4
        {margin-top:16.0pt;
        margin-right:0cm;
        margin-bottom:4.0pt;
        margin-left:43.2pt;
        text-indent:-43.2pt;
        page-break-after:avoid;
        mso-list:l2 level4 lfo1;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-weight:normal;
        font-style:italic;}
h5
        {margin-top:16.0pt;
        margin-right:0cm;
        margin-bottom:4.0pt;
        margin-left:50.4pt;
        text-indent:-50.4pt;
        page-break-after:avoid;
        mso-list:l2 level5 lfo1;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-weight:normal;
        font-style:italic;}
h6
        {margin-top:16.0pt;
        margin-right:0cm;
        margin-bottom:4.0pt;
        margin-left:57.6pt;
        text-indent:-57.6pt;
        page-break-after:avoid;
        mso-list:l2 level6 lfo1;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-weight:normal;
        font-style:italic;}
p.MsoHeading7, li.MsoHeading7, div.MsoHeading7
        {margin-top:16.0pt;
        margin-right:0cm;
        margin-bottom:4.0pt;
        margin-left:64.8pt;
        text-indent:-64.8pt;
        page-break-after:avoid;
        mso-list:l2 level7 lfo1;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-style:italic;}
p.MsoHeading8, li.MsoHeading8, div.MsoHeading8
        {margin-top:16.0pt;
        margin-right:0cm;
        margin-bottom:4.0pt;
        margin-left:72.0pt;
        text-indent:-72.0pt;
        page-break-after:avoid;
        mso-list:l2 level8 lfo1;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-style:italic;}
p.MsoHeading9, li.MsoHeading9, div.MsoHeading9
        {margin-top:16.0pt;
        margin-right:0cm;
        margin-bottom:4.0pt;
        margin-left:79.2pt;
        text-indent:-79.2pt;
        page-break-after:avoid;
        mso-list:l2 level9 lfo1;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-style:italic;}
p.MsoToc1, li.MsoToc1, div.MsoToc1
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.MsoToc2, li.MsoToc2, div.MsoToc2
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:10.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.MsoToc3, li.MsoToc3, div.MsoToc3
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:20.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.MsoFootnoteText, li.MsoFootnoteText, div.MsoFootnoteText
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Times New Roman";}
p.MsoFooter, li.MsoFooter, div.MsoFooter
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.MsoCaption, li.MsoCaption, div.MsoCaption
        {margin-top:8.0pt;
        margin-right:0cm;
        margin-bottom:8.0pt;
        margin-left:0cm;
        text-align:center;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.MsoFootnoteReference
        {vertical-align:super;}
p.MsoList2, li.MsoList2, div.MsoList2
        {margin-top:4.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:2.0cm;
        margin-bottom:.0001pt;
        text-indent:-1.0cm;
        mso-list:l1 level1 lfo3;
        font-size:12.0pt;
        font-family:"Times New Roman";}
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:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.Code, li.Code, div.Code
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Courier New";}
p.Contents, li.Contents, div.Contents
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:12.0pt;
        margin-left:0cm;
        page-break-before:always;
        font-size:14.0pt;
        font-family:"Times New Roman";
        font-weight:bold;}
p.Cover1, li.Cover1, div.Cover1
        {margin-top:200.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        text-align:center;
        font-size:24.0pt;
        font-family:"Times New Roman";}
p.Cover2, li.Cover2, div.Cover2
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        text-align:center;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-style:italic;}
p.Cover3, li.Cover3, div.Cover3
        {margin-top:30.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        text-align:center;
        font-size:16.0pt;
        font-family:"Times New Roman";}
p.Cover4, li.Cover4, div.Cover4
        {margin-top:120.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        text-align:center;
        font-size:20.0pt;
        font-family:"Times New Roman";
        font-weight:bold;}
p.Paragraph, li.Paragraph, div.Paragraph
        {margin-top:8.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.Cover5, li.Cover5, div.Cover5
        {margin-top:8.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-style:italic;}
p.Cover6, li.Cover6, div.Cover6
        {margin-top:8.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-style:italic;}
p.Figure, li.Figure, div.Figure
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:center;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.List1, li.List1, div.List1
        {margin-top:4.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:1.0cm;
        margin-bottom:.0001pt;
        text-indent:-1.0cm;
        mso-list:l0 level1 lfo2;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.Separator, li.Separator, div.Separator
        {margin-top:8.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        text-align:center;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.Table, li.Table, div.Table
        {margin-top:4.0pt;
        margin-right:2.85pt;
        margin-bottom:2.0pt;
        margin-left:2.85pt;
        text-align:center;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle39
        {mso-style-type:personal-reply;
        font-family:Verdana;
        color:navy;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:120419426;
        mso-list-type:simple;
        mso-list-template-ids:-524538242;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-style-link:"List 1";
        mso-level-text:\F0B7;
        mso-level-tab-stop:1.0cm;
        mso-level-number-position:left;
        margin-left:1.0cm;
        text-indent:-1.0cm;
        font-family:Symbol;}
@list l1
        {mso-list-id:806165126;
        mso-list-type:simple;
        mso-list-template-ids:-2080344560;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-style-link:"List 2";
        mso-level-text:\F02D;
        mso-level-tab-stop:2.0cm;
        mso-level-number-position:left;
        margin-left:2.0cm;
        text-indent:-1.0cm;
        font-family:Symbol;}
@list l2
        {mso-list-id:1344548125;
        mso-list-template-ids:-2079662562;}
@list l2:level1
        {mso-level-style-link:"Heading 1";
        mso-level-text:%1;
        mso-level-tab-stop:21.6pt;
        mso-level-number-position:left;
        margin-left:21.6pt;
        text-indent:-21.6pt;}
@list l2:level2
        {mso-level-style-link:"Heading 2";
        mso-level-text:"%1\.%2";
        mso-level-tab-stop:28.8pt;
        mso-level-number-position:left;
        margin-left:28.8pt;
        text-indent:-28.8pt;}
@list l2:level3
        {mso-level-style-link:"Heading 3";
        mso-level-text:"%1\.%2\.%3";
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        margin-left:36.0pt;
        text-indent:-36.0pt;}
@list l2:level4
        {mso-level-style-link:"Heading 4";
        mso-level-text:"%1\.%2\.%3\.%4";
        mso-level-tab-stop:43.2pt;
        mso-level-number-position:left;
        margin-left:43.2pt;
        text-indent:-43.2pt;}
@list l2:level5
        {mso-level-style-link:"Heading 5";
        mso-level-text:"%1\.%2\.%3\.%4\.%5";
        mso-level-tab-stop:50.4pt;
        mso-level-number-position:left;
        margin-left:50.4pt;
        text-indent:-50.4pt;}
@list l2:level6
        {mso-level-style-link:"Heading 6";
        mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
        mso-level-tab-stop:57.6pt;
        mso-level-number-position:left;
        margin-left:57.6pt;
        text-indent:-57.6pt;}
@list l2:level7
        {mso-level-style-link:"Heading 7";
        mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";
        mso-level-tab-stop:64.8pt;
        mso-level-number-position:left;
        margin-left:64.8pt;
        text-indent:-64.8pt;}
@list l2:level8
        {mso-level-style-link:"Heading 8";
        mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        margin-left:72.0pt;
        text-indent:-72.0pt;}
@list l2:level9
        {mso-level-style-link:"Heading 9";
        mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
        mso-level-tab-stop:79.2pt;
        mso-level-number-position:left;
        margin-left:79.2pt;
        text-indent:-79.2pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</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-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Verdana><span style='font-size:
11.0pt;font-family:Verdana;color:navy'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Verdana><span style='font-size:
11.0pt;font-family:Verdana;color:navy'>it’s quite straightforward: you
can do your dialplan like this (default is the default context answered when
inbound calls happen) – remember the underscores! – <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Verdana><span style='font-size:
11.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>[default]<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>exten
</span></font><font size=2><span style='font-size:10.0pt'>=> </span></font>_1703XXXXXXXX,1,Goto(place-IVR,s,1)<o:p></o:p></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>exten
=> _1567 XXXXXXXX,1,Goto(place-other,s,1)<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>[place-IVR]<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>exten
=> s,1,Answer<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>exten
=> s,2,Background(menu-file)<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>exten
=> 1,1,Goto(submenu,1)<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>exten
=> 2,1,Goto(submenu,2)<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'> (…)<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>[place-other]<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>exten
=> s,1,Answer<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>exten
=> s,n,…<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>(…)<o:p></o:p></span></font></p>
<p class=Code><font size=3 face="Courier New"><span style='font-size:12.0pt'>exten
=> s,n,Hangup<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Verdana><span style='font-size:
11.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Verdana><span style='font-size:
11.0pt;font-family:Verdana;color:navy'>If you want to jump into a specific part
of context, you should put a label near the ‘n’ priority where you
want to jump to (eg. exten => s,n(jumphere),<application/function>)
then specify that label into Goto() application.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Verdana><span style='font-size:
11.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Verdana><span style='font-size:
11.0pt;font-family:Verdana;color:navy'>Cheers,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Verdana><span style='font-size:
11.0pt;font-family:Verdana;color:navy'>//Al.<o:p></o:p></span></font></p>
<div>
<p><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;
color:navy'> <o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 color=navy face=Verdana><span style='font-size:
11.0pt;font-family:Verdana;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Thomas Perron<br>
<b><span style='font-weight:bold'>Sent:</span></b> domenica 1 novembre 2009
21.46<br>
<b><span style='font-weight:bold'>To:</span></b>
asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users] pattern
matching DID</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>I have two DID numbers.<br>
I want callers who dial 1 703 xxxxxxxx to get placed in a specific part of IVR<br>
I want other callers who dial 1 567 xxxxxxxx to get placed in a different area.<br>
How do I do this please?<br>
<br>
<o:p></o:p></span></font></p>
</div>
</body>
</html>