<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 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        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.ecmsonormal, li.ecmsonormal, div.ecmsonormal
        {mso-style-name:ec_msonormal;
        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","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:103698927;
        mso-list-template-ids:-314395610;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</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><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Mark,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You can accomplish the desired configuration by removing ‘</span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>dialplan-pattern
1 21850.. extension-length 2’ and going with an inbound and outbound
translation / number expansion pattern. You should really try to have
some of the numbers match their external DIDs, overall it is much easier to program
that way and more difficult to troubleshoot later. Most of the time,
setting the expectation of the customer that they will have new internal
extensions is really not that big of a deal. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>voice translation-rule 1<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> rule 1 /^</span><span style='font-size:11.0pt;font-family:
"Arial","sans-serif";color:black'>8529x70/ /100/<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'> rule 2 /^8529x88/ /100/<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'> rule 3 /^8529x71/ /some fax number/<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>……<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>….<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>…<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>…<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>..<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>voice translation-rule 2<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> rule 1 /^100/ /8529x70/<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> rule 2 /^\(.*\)/ /8529\1/<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>voice translation-profile my-profile<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> translate calling 2<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> translate called 1<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>As you can see, you’re going to keep creating these rules.
The rules are called from voice translation-profiles which are applied to the
dial-peer(s) going to and from the PSTN. In a simplified configuration,
you could use a single dial-peer to perform the translation in either
direction. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-ryan <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> cisco-voip-bounces@puck.nether.net
[mailto:cisco-voip-bounces@puck.nether.net] <b>On Behalf Of </b>Mark Mclean<br>
<b>Sent:</b> Monday, April 21, 2008 7:38 AM<br>
<b>To:</b> cisco-voip@puck.nether.net<br>
<b>Subject:</b> [cisco-voip] CCM Express Ext. to PSTN and PSTN to Ext.<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>Dear All, </span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>I have a Cisco Router acting as Call Manager Express, I am new to
the Cisco voice solutions and I would like to acheive the following (my current
configuration included below)</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>The PSTN trunk telephone number range is 8529xx70
to 8529xx99 (30 numbers) and the provider only sends 7 digits as DNIS.</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<ul type=disc>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo1'><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>Internal Ext. should be able to call each other</span><o:p></o:p></li>
</ul>
</div>
<div>
<ul type=disc>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo1'><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>There will be direct numbers where 8529xx70 will be routed to
extension 100, and 8529xx88 to extension 100 as well, </span><o:p></o:p></li>
</ul>
</div>
<div>
<ul type=disc>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo1'><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>The following number 8529xx71 to be routed to a
FAX </span><o:p></o:p></li>
</ul>
</div>
<div>
<ul type=disc>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-list:l0 level1 lfo1'><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>Plus each one will have one or more direct numbers from the
range above</span><o:p></o:p></li>
</ul>
</div>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>One more questions I want to ask, How to make it possible to
place a caller ID that will depend on the party who initiate the call? For
example when extension 177 dial out using the PSTN trunk the prime
number "8529xx70" will be sent, what i want to do is if
extension 107 dial out to the PSTN the caller ID will be sent as 8529xx77.</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:black'>Note: The current configurations inculded below...</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>Apprecieate you quick replies!</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>Thanks,</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>Mark</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'>!<br>
version 12.4<br>
service timestamps debug datetime msec localtime<br>
service timestamps log datetime msec localtime<br>
service password-encryption<br>
!<br>
hostname CallManagerExpress<br>
!<br>
boot-start-marker<br>
boot-end-marker<br>
!<br>
logging buffered 16000 debugging<br>
!<br>
aaa new-model<br>
!<br>
!<br>
aaa authentication banner ^CC<br>
Unauthorized access is not allowed</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>aaa authentication login default local<br>
aaa authentication enable default none<br>
aaa authorization exec default local <br>
aaa authorization network default local <br>
!<br>
aaa session-id common<br>
!<br>
resource policy<br>
!<br>
clock timezone EST 1<br>
clock summer-time EST recurring last Sun Mar 2:00 last Sun Oct 3:00<br>
no network-clock-participate wic 3 <br>
ip subnet-zero<br>
!<br>
!<br>
ip cef<br>
no ip dhcp use vrf connected<br>
ip dhcp excluded-address <a href="http://192.168.45.1">192.168.45.1</a> <a
href="http://192.168.45.4">192.168.45.4</a><br>
!<br>
ip dhcp pool ip-voice-HK<br>
network <a href="http://192.168.45.0">192.168.45.0</a> <a
href="http://255.255.255.0">255.255.255.0</a><br>
default-router <a href="http://192.168.45.1">192.168.45.1</a> <br>
option 150 ip <a href="http://192.168.45.1">192.168.45.1</a> <br>
domain-name <a href="http://yourdomain.com">yourdomain.com</a><br>
!<br>
!<br>
ip tftp source-interface Loopback2<br>
ip domain name <a href="http://yourdomain.com">yourdomain.com</a><br>
ip dhcp-server <a href="http://192.168.45.1">192.168.45.1</a><br>
isdn switch-type primary-net5<br>
!<br>
!<br>
trunk group bri<br>
!<br>
!<br>
trunk group 1<br>
!<br>
voice-card 0<br>
no dspfarm<br>
!<br>
!<br>
voice call convert-discpi-to-prog<br>
!<br>
voice service voip <br>
h323<br>
h245 caps mode restricted<br>
!<br>
!<br>
voice class codec 1<br>
codec preference 1 g711alaw<br>
codec preference 2 g729r8<br>
codec preference 3 g711ulaw<br>
codec preference 4 g723ar63<br>
!<br>
!<br>
!<br>
voice class h323 1<br>
call start slow<br>
!<br>
!<br>
!<br>
crypto pki trustpoint TP-self-signed-84563672238598<br>
enrollment selfsigned<br>
subject-name cn=IOS-Self-Signed-Certificate-84563672238598<br>
revocation-check none<br>
rsakeypair TP-self-signed-84563672238598<br>
!<br>
!<br>
crypto pki certificate chain TP-self-signed-84563672238598<br>
certificate self-signed 01<br>
!<br>
!<br>
controller E1 0/3/0<br>
pri-group timeslots 1-31<br>
framing NO-CRC4 <br>
!<br>
!<br>
interface Loopback2<br>
no ip address<br>
!<br>
interface GigabitEthernet0/0<br>
description Voice<br>
no ip address<br>
duplex auto<br>
speed auto<br>
h323-gateway voip interface<br>
!<br>
interface GigabitEthernet0/0.44<br>
encapsulation dot1Q 44<br>
ip address <a href="http://192.168.45.1">192.168.45.1</a> <a
href="http://255.255.255.0">255.255.255.0</a><br>
no snmp trap link-status<br>
!<br>
interface GigabitEthernet0/1<br>
description Data<br>
ip address <a href="http://192.168.40.4">192.168.40.4</a> <a
href="http://255.255.255.0">255.255.255.0</a><br>
duplex auto<br>
speed auto<br>
!<br>
ip default-gateway <a href="http://192.168.40.1">192.168.40.1</a><br>
ip classless<br>
ip route <a href="http://0.0.0.0">0.0.0.0</a> <a href="http://0.0.0.0">0.0.0.0</a>
<a href="http://192.168.40.1">192.168.40.1</a><br>
!<br>
!<br>
ip http server<br>
ip http access-class 23<br>
ip http authentication local<br>
ip http secure-server<br>
ip http timeout-policy idle 60 life 86400 requests 10000<br>
ip http path flash:<br>
!<br>
access-list 23 permit <a href="http://192.168.10.0">192.168.10.0</a> <a
href="http://0.0.0.7">0.0.0.7</a><br>
access-list 23 permit <a href="http://192.168.45.0">192.168.45.0</a> <a
href="http://0.0.0.7">0.0.0.7</a><br>
access-list 23 permit <a href="http://192.168.45.0">192.168.45.0</a> <a
href="http://0.0.0.255">0.0.0.255</a><br>
no cdp log mismatch duplex<br>
!<br>
!<br>
tftp-server flash:ATA030100SCCP040211A.zup<br>
tftp-server flash:P00403020214.bin<br>
tftp-server flash:P00307020200.bin<br>
tftp-server flash:CP7912060000SCCP050124A.sbin<br>
tftp-server flash:P00305000600.bin<br>
tftp-server flash:P00305000600.sbn<br>
tftp-server flash:P00307020200.loads<br>
tftp-server flash:P00307020200.sb2<br>
tftp-server flash:P00307020200.sbn<br>
tftp-server flash:S00103020002.bin<br>
tftp-server flash:S00104000100.sbn<br>
tftp-server flash:CP7902060000SCCP050124A.sbin<br>
tftp-server flash:CP7905060000SCCP050124A.sbin<br>
tftp-server flash:CP7905060000SCCP050124A.zup<br>
tftp-server flash:P00303020214.bin<br>
!<br>
control-plane<br>
!<br>
!<br>
!<br>
telephony-service<br>
load 7935 P00503010100<br>
load 7960-7940 P00303020214<br>
load 7914 S00103020002<br>
load ATA ATA030101SCCP040610A.zup<br>
load 7912 CP7912010200SCCP031023A.sbin<br>
max-ephones 30<br>
max-dn 150<br>
ip source-address <a href="http://192.168.45.1">192.168.45.1</a> port
2000<br>
max-redirect 8<br>
system message HK CallManager Express<br>
url services <a href="http://192.168.45.4/cisco/services.asp">http://192.168.45.4/cisco/services.asp</a><br>
url authentication <a href="http://192.168.40.4/Authenticate.asp">http://192.168.40.4/Authenticate.asp</a><br>
network-locale CH<br>
time-format 24<br>
date-format dd-mm-yy<br>
create cnf-files version-stamp 7960 Nov 22 2006 11:57:52<br>
dialplan-pattern 1 21850.. extension-length 2<br>
voicemail 9948<br>
max-conferences 4 gain -6<br>
call-forward pattern .T<br>
test test.wav<br>
web admin system name admin password XXXX<br>
dn-webedit <br>
time-webedit <br>
transfer-system full-consult<br>
transfer-pattern 7..<br>
secondary-dialtone 0<br>
!<br>
!<br>
ephone-dn 1 dual-line<br>
number 100<br>
label reception<br>
name reception<br>
!<br>
!<br>
ephone-dn 2 dual-line<br>
number 101<br>
label phone2<br>
name Desk2<br>
!<br>
!<br>
ephone-dn 3 dual-line<br>
number 102<br>
label phone3<br>
name Desk3<br>
!<br>
!<br>
ephone-dn 4 dual-line<br>
number 103<br>
label phone4<br>
name Desk4<br>
!<br>
!<br>
ephone-dn 5 dual-line<br>
number 104<br>
label phone5<br>
name Desk5<br>
!<br>
!<br>
ephone-dn 6 dual-line<br>
number 105<br>
label phone6<br>
name Desk6<br>
!<br>
!<br>
ephone-dn 7 dual-line<br>
number 106<br>
label phone7<br>
name Desk7<br>
!<br>
!<br>
!<br>
!<br>
ephone 1<br>
mac-address 001A.6D27.6B91<br>
type 7960<br>
button 1:1<br>
!<br>
!<br>
!<br>
ephone 2<br>
mac-address 0004.F2E2.08CA<br>
type 7936<br>
button 1:2<br>
!<br>
!<br>
!<br>
ephone 3<br>
mac-address 001B.0C18.DA91<br>
type 7940<br>
button 1:3<br>
!<br>
!<br>
!<br>
ephone 4<br>
mac-address 001B.0C18.AC97<br>
type 7940<br>
button 1:4<br>
!<br>
!<br>
!<br>
ephone 5<br>
mac-address 0019.30D4.AC14<br>
type 7940<br>
button 1:5<br>
!<br>
!<br>
!<br>
ephone 6<br>
mac-address 001B.0C18.C967<br>
type 7940<br>
button 1:6<br>
!<br>
!<br>
!<br>
ephone 7<br>
mac-address 001B.0C18.B8FA<br>
type 7940<br>
button 1:7<br>
!<br>
!<br>
!<br>
scheduler allocate 20000 1000<br>
ntp clock-period 17208075<br>
ntp server <a href="http://192.168.40.1">192.168.40.1</a><br>
ntp server <a href="http://192.168.40.254">192.168.40.254</a><br>
!<br>
end<br>
!</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>
</body>
</html>