<div>Thanks, Mark for you response, but please accept my apologies as i do not understand the part for the translation!</div>
<div>From your example; i guess using voice translation-rule 1 will route the inbound calls from the PSTN to the internal extensions, please correct me if i am wrong! </div>
<div> </div>
<div>And what about voice translation-rule 2, the 1st line ( rule 1 /^100/ /8529x70/ ) does it mean the outgoing call from ext 100 will go to the PSTN using 8529xx70 ? and the 2nd line ( rule 2 /^\(.*\)/ /8529\1/ ) does it mean whatever the internal ext. is just use it after 8529xx and send this called ID to the PSTN?</div>
<div> </div>
<div>And the final question, how can i use this under the dial peer? should be something like this:</div>
<div> </div>
<div>!<br>dial-peer voice 111 pots<br> description "Outbound PSTN"<br> translation-profile outgoing my-profile</div>
<div> preference 0<br> destination-pattern .T<br> no digit-strip<br> port 0/3/0:15<br> forward-digits all<br>!<br>
<div>!<br>dial-peer voice 112 pots<br> description "Inbound PSTN"<br> translation-profile incoming my-profile</div>
<div> preference 0<br> destination-pattern .T<br> no digit-strip<br> port 0/3/0:15<br> forward-digits all<br>!<br></div>
<div>Thanks again...</div>
<div>Marks<br></div></div>
<div class="gmail_quote">On Mon, Apr 21, 2008 at 2:54 PM, Ryan West <<a href="mailto:rwest@zyedge.com">rwest@zyedge.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Mark,</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">You can accomplish the desired configuration by removing '</span><span style="FONT-SIZE: 11pt; 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. </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">voice translation-rule 1</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> rule 1 /^</span><span style="FONT-SIZE: 11pt; COLOR: black">8529x70/ /100/</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: black"> rule 2 /^8529x88/ /100/</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: black"> rule 3 /^8529x71/ /some fax number/</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: black">……</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: black">….</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: black">…</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: black">…</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: black">..</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">voice translation-rule 2</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> rule 1 /^100/ /8529x70/</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> rule 2 /^\(.*\)/ /8529\1/</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">voice translation-profile my-profile</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> translate calling 2</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> translate called 1</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; 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. </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">-ryan </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p><b><span style="FONT-SIZE: 10pt">From:</span></b><span style="FONT-SIZE: 10pt"> <a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">cisco-voip-bounces@puck.nether.net</a> [mailto:<a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">cisco-voip-bounces@puck.nether.net</a>] <b>On Behalf Of </b>Mark Mclean<br>
<b>Sent:</b> Monday, April 21, 2008 7:38 AM<br><b>To:</b> <a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br><b>Subject:</b> [cisco-voip] CCM Express Ext. to PSTN and PSTN to Ext.</span></p>
</div>
<div>
<div></div>
<div class="Wj3C7c">
<p> </p>
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: black">Dear All, </span></p></div>
<div>
<p> </p></div>
<div>
<p><span style="FONT-SIZE: 11pt; 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></p>
</div>
<div>
<p> </p></div>
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: black">The PSTN trunk telephone number range is 8529xx70 to 8529xx99 (30 numbers) and the provider only sends 7 digits as DNIS.</span></p></div>
<div>
<p> </p></div>
<div>
<ul type="disc">
<li><span style="FONT-SIZE: 11pt; COLOR: black">Internal Ext. should be able to call each other</span></li></ul></div>
<div>
<ul type="disc">
<li><span style="FONT-SIZE: 11pt; COLOR: black">There will be direct numbers where 8529xx70 will be routed to extension 100, and 8529xx88 to extension 100 as well, </span></li></ul></div>
<div>
<ul type="disc">
<li><span style="FONT-SIZE: 11pt; COLOR: black">The following number 8529xx71 to be routed to a FAX </span></li></ul></div>
<div>
<ul type="disc">
<li><span style="FONT-SIZE: 11pt; COLOR: black">Plus each one will have one or more direct numbers from the range above</span></li></ul></div>
<div>
<p><span style="FONT-SIZE: 11pt; 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></p>
</div>
<div>
<p> </p></div>
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: black">Note: The current configurations inculded below...</span></p></div>
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: black">Apprecieate you quick replies!</span></p></div>
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: black">Thanks,</span></p></div>
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: black">Mark</span></p></div>
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">---------------------------------------------------------------------------------</span></p></div>
<div>
<p><span style="FONT-SIZE: 11pt; 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></p></div>
<div>
<p><span style="FONT-SIZE: 11pt; 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/" target="_blank">192.168.45.1</a> <a href="http://192.168.45.4/" target="_blank">192.168.45.4</a><br>!<br>ip dhcp pool ip-voice-HK<br>
network <a href="http://192.168.45.0/" target="_blank">192.168.45.0</a> <a href="http://255.255.255.0/" target="_blank">255.255.255.0</a><br> default-router <a href="http://192.168.45.1/" target="_blank">192.168.45.1</a> <br>
option 150 ip <a href="http://192.168.45.1/" target="_blank">192.168.45.1</a> <br> domain-name <a href="http://yourdomain.com/" target="_blank">yourdomain.com</a><br>!<br>!<br>ip tftp source-interface Loopback2<br>ip domain name <a href="http://yourdomain.com/" target="_blank">yourdomain.com</a><br>
ip dhcp-server <a href="http://192.168.45.1/" target="_blank">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/" target="_blank">192.168.45.1</a> <a href="http://255.255.255.0/" target="_blank">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/" target="_blank">192.168.40.4</a> <a href="http://255.255.255.0/" target="_blank">255.255.255.0</a><br> duplex auto<br> speed auto<br>!<br>ip default-gateway <a href="http://192.168.40.1/" target="_blank">192.168.40.1</a><br>
ip classless<br>ip route <a href="http://0.0.0.0/" target="_blank">0.0.0.0</a> <a href="http://0.0.0.0/" target="_blank">0.0.0.0</a> <a href="http://192.168.40.1/" target="_blank">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/" target="_blank">192.168.10.0</a> <a href="http://0.0.0.7/" target="_blank">0.0.0.7</a><br>
access-list 23 permit <a href="http://192.168.45.0/" target="_blank">192.168.45.0</a> <a href="http://0.0.0.7/" target="_blank">0.0.0.7</a><br>access-list 23 permit <a href="http://192.168.45.0/" target="_blank">192.168.45.0</a> <a href="http://0.0.0.255/" target="_blank">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/" target="_blank">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" target="_blank">http://192.168.45.4/cisco/services.asp</a><br>
url authentication <a href="http://192.168.40.4/Authenticate.asp" target="_blank">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/" target="_blank">192.168.40.1</a><br>ntp server <a href="http://192.168.40.254/" target="_blank">192.168.40.254</a><br>!<br>end<br>!</span></p></div>
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">---------------------------------------------------------------------------------</span></p></div></div></div></div></div></blockquote></div><br>