I thought you could only use trunk groups on analog...?<br><br><br>Jonathan<br><br><div><span class="gmail_quote">On 4/20/07, <b class="gmail_sendername">Robert Kulagowski</b> &lt;<a href="mailto:bob@smalltime.com">bob@smalltime.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Voll, Scott wrote:<br>&gt; Can someone send me a sample config with 2 or 3 pri's in use for an H323
<br>&gt; Voice gateway.<br><br>I like using trunk groups, especially if you have a bunch of PRIs and/or<br>analogs.&nbsp;&nbsp;That way, you don&#39;t need to individually have a dial-peer for<br>each port.&nbsp;&nbsp;Take a look at dial-peer 8011; it shows it pretty well.
<br>Dial peer 10 shows how you can force calls out analogs without having to<br>have a DP for each analog port.<br><br>IOS 12.4.9(T)<br><br>I also have this as a Word Document; at the top of the Document I have<br>reminders like {SITEPREFIX} {IPSUBNET}, etc.&nbsp;&nbsp;Then when it comes to
<br>deploy I can just do a search / replace and get the boilerplate out of<br>the way and concentrate on dial-peers.<br><br>no service pad<br>service tcp-keepalives-in<br>service tcp-keepalives-out<br>no service config<br>
service timestamps debug datetime msec localtime<br>service timestamps log datetime msec localtime<br>service password-encryption<br>!<br>hostname {SITEPREFIX}VGW01<br>card type t1 0 1<br>! Need to tell card whether it is an E1 or T1
<br>!<br>logging buffered 51200 debugging<br>!<br>aaa new-model<br>!<br>!<br>aaa authentication login default group radius local<br>aaa authentication login console-in local<br>!<br>clock timezone {TIMEZONE} {TZOFFSET}<br>
clock summer-time EDT recurring 2 Sun Mar 2:00 1 Sun Nov 2:00<br>network-clock-participate wic 1<br>network-clock-select 1 T1 0/1/0<br>!<br>voice-card 0<br>&nbsp;&nbsp;dsp tdm pooling<br>&nbsp;&nbsp;dsp services dspfarm<br>&nbsp;&nbsp;no local-bypass<br>
<br>! Use this so that individual ports don't have to be enumerated in<br>! the dial peers<br>trunk group&nbsp;&nbsp;FXO<br>max-retry 5<br>&nbsp;&nbsp;voice-class cause-code 1<br>&nbsp;&nbsp;hunt-scheme round-robin<br><br>! Used to differentiate if there are multiple PRIs at a site
<br>trunk group&nbsp;&nbsp;Local<br><br>trunk group&nbsp;&nbsp;LongDistance<br><br>voice class cause-code 1<br>&nbsp;&nbsp;no-circuit<br><br><br><br>!<br>no ip dhcp use vrf connected<br>! Used to release IP address back in to the pool<br>no ip dhcp conflict logging
<br>! Next command puts a copy of the dhcp database off-site<br>ip dhcp database tftp://1.1.1.1/{SITEPREFIX}VGW01-dhcp<br>ip dhcp excluded-address 1.1.{IPSUBNET}.1 1.1.{IPSUBNET}.20<br>! Polycom 7936's statically allocated downward from .19
<br>!<br>! Generic &quot;phones&quot; is good enough ; makes other documentation easier,<br>! like firmware update doc<br>ip dhcp pool Phones<br>&nbsp;&nbsp;&nbsp;&nbsp;network 1.1.{IPSUBNET}.0 <a href="http://255.255.255.0">255.255.255.0</a>
<br>&nbsp;&nbsp;&nbsp;&nbsp;option 150 ip <a href="http://1.1.1.10">1.1.1.10</a> <a href="http://1.1.23.10">1.1.23.10</a><br>&nbsp;&nbsp;&nbsp;&nbsp;default-router 1.1.{IPSUBNET}.1<br>&nbsp;&nbsp;&nbsp;&nbsp;lease 7<br>!<br>no ip bootp server<br>no ip domain lookup<br>no ftp-server write-enable
<br>isdn switch-type primary-ni<br>isdn voice-call-failure 0<br>!<br>voice call send-alert<br>voice call carrier capacity active<br>voice rtp send-recv<br>!<br>voice service voip<br>&nbsp;&nbsp;h323<br>&nbsp;&nbsp; call preserve limit-media-detection
<br>!<br>voice class codec 1<br>! TO select which codec to use<br>&nbsp;&nbsp;codec preference 1 g711ulaw<br>&nbsp;&nbsp;codec preference 2 g729r8<br>!<br>!<br>voice class h323 1<br>! If first call manager is not available timeout switch to 2nd
<br>&nbsp;&nbsp;h225 timeout tcp establish 5<br>&nbsp;&nbsp; call preserve<br>!<br>!<br>!<br>!<br>!<br>voice vad-time 65536<br>!<br>voice translation-rule {SITECODE}<br>! for rule 1, we're taking inbound calls that start with 89 and changing
<br>! it to 3489.&nbsp;&nbsp;(Site prefix is 34)<br>&nbsp;&nbsp;rule 1 /^89/ /3489/<br>! for rule 2, we're taking any inbound call that comes in as 4141 and<br>! changing it to the operator number<br>&nbsp;&nbsp;rule 2 /^4141/ /348900/<br>! for rule 3, we're taking inbound call to 5921 and sending it to
<br>! operator&nbsp;&nbsp;(800 number has DNIS of 5921)<br>&nbsp;&nbsp;rule 3 /^5921/ /348900/<br>!<br>!<br>voice translation-profile Prepend_Sitecode<br>&nbsp;&nbsp;translate called {SITECODE}<br>!<br>!<br>! For AAR and SRST<br>application<br>&nbsp;&nbsp;service rdnis_save flash:rdnis_save.tcl
<br>&nbsp;&nbsp; param restore_did 81234567890<br>&nbsp;&nbsp;!<br>&nbsp;&nbsp;global<br>&nbsp;&nbsp; service alternate default<br>&nbsp;&nbsp;!<br>!<br>!<br>controller T1 0/1/0<br>&nbsp;&nbsp;framing esf<br>&nbsp;&nbsp;linecode b8zs<br>&nbsp;&nbsp;pri-group timeslots 1-24<br>&nbsp;&nbsp;description CIRCUIT ID
<br>controller T1 0/2/0<br>&nbsp;&nbsp;framing esf<br>&nbsp;&nbsp;linecode b8zs<br>&nbsp;&nbsp;pri-group timeslots 1-24<br>&nbsp;&nbsp;description CIRCUIT ID<br>controller T1 0/2/1<br>&nbsp;&nbsp;framing esf<br>&nbsp;&nbsp;linecode b8zs<br>&nbsp;&nbsp;pri-group timeslots 1-24<br>&nbsp;&nbsp;description CIRCUIT ID
<br>!<br>!<br>interface Loopback0<br>&nbsp;&nbsp;description For music-on-hold<br>&nbsp;&nbsp;ip address <a href="http://6.6.6.6">6.6.6.6</a> <a href="http://255.255.255.255">255.255.255.255</a><br>!<br>interface GigabitEthernet0/0<br>&nbsp;&nbsp;description To {SITEPREFIX}VSW01 Port g1/0/1
<br>&nbsp;&nbsp;ip address 1.1.{IPSUBNET}.1 <a href="http://255.255.255.0">255.255.255.0</a><br>&nbsp;&nbsp;no ip unreachables<br>&nbsp;&nbsp;no ip proxy-arp<br>&nbsp;&nbsp;duplex auto<br>&nbsp;&nbsp;speed auto<br>&nbsp;&nbsp;no mop enabled<br>! Best Practices security<br>&nbsp;&nbsp;h323-gateway voip bind srcaddr 
10.1.{IPSUBNET}.1<br>no shut<br>!<br>interface GigabitEthernet0/1<br>&nbsp;&nbsp;description To Production<br>&nbsp;&nbsp;ip address <a href="http://1.1.1.5">1.1.1.5</a> <a href="http://255.255.0.0">255.255.0.0</a><br>&nbsp;&nbsp;no ip unreachables<br>
&nbsp;&nbsp;no ip proxy-arp<br>&nbsp;&nbsp;duplex full<br>&nbsp;&nbsp;speed 100<br>&nbsp;&nbsp;no mop enabled<br>no shut<br>!<br>interface Serial0/1/0:23<br>&nbsp;&nbsp;no ip address<br>&nbsp;&nbsp;isdn switch-type primary-ni<br>&nbsp;&nbsp;isdn incoming-voice voice<br>&nbsp;&nbsp;isdn map address . plan isdn type national
<br>&nbsp;&nbsp;no cdp enable<br>! Set to appropriate trunk group; Local or LongDistance<br>&nbsp;&nbsp;trunk-group Local<br><br>interface Serial0/2/0:23<br>&nbsp;&nbsp;no ip address<br>&nbsp;&nbsp;isdn switch-type primary-ni<br>&nbsp;&nbsp;isdn incoming-voice voice<br>&nbsp;&nbsp;isdn map address . plan isdn type national
<br>&nbsp;&nbsp;no cdp enable<br>! Set to appropriate trunk group; Local or LongDistance<br>&nbsp;&nbsp;trunk-group Local<br><br>interface Serial0/2/1:23<br>&nbsp;&nbsp;no ip address<br>&nbsp;&nbsp;isdn switch-type primary-ni<br>&nbsp;&nbsp;isdn incoming-voice voice<br>&nbsp;&nbsp;isdn map address . plan isdn type national
<br>&nbsp;&nbsp;no cdp enable<br>! Set to appropriate trunk group; Local or LongDistance<br>&nbsp;&nbsp;trunk-group LongDistance<br><br><br>!<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>
 1.1.{IPSUBNET}.1.1<br>!<br>no ip http server<br>ip http authentication local<br>!<br>!<br>! Dump syslog to off-site server<br>! Use the IP address of the voice interface, not the one facing<br>! production<br>logging source-interface GigabitEthernet0/0
<br>logging <a href="http://1.1.23.9">1.1.23.9</a><br>!<br>!<br>control-plane<br><br>voice-port 0/0/0<br>&nbsp;&nbsp;trunk-group FXO<br>&nbsp;&nbsp;timing hookflash-out 500<br>connection plar {OperatorNumber}<br>!<br>voice-port 0/0/1<br>&nbsp;&nbsp;trunk-group FXO
<br>&nbsp;&nbsp;timing hookflash-out 500<br>connection plar {OperatorNumber}<br><br>!<br>voice-port 0/0/2<br>&nbsp;&nbsp;trunk-group FXO<br>&nbsp;&nbsp;timing hookflash-out 500<br>connection plar {OperatorNumber}<br>!<br>voice-port 0/0/3<br>&nbsp;&nbsp;trunk-group FXO
<br>&nbsp;&nbsp;timing hookflash-out 500<br>connection plar {OperatorNumber}<br>!<br>!<br>voice-port 0/1/0:23<br>&nbsp;&nbsp;translation-profile incoming Prepend_Sitecode<br>&nbsp;&nbsp;input gain -3<br>&nbsp;&nbsp;echo-cancel coverage 24<br>&nbsp;&nbsp;echo-cancel erl worst-case 0
<br>&nbsp;&nbsp;playout-delay minimum low<br>&nbsp;&nbsp;no comfort-noise<br><br>voice-port 0/2/0:23<br>&nbsp;&nbsp;translation-profile incoming Prepend_Sitecode<br>&nbsp;&nbsp;input gain -3<br>&nbsp;&nbsp;echo-cancel coverage 24<br>&nbsp;&nbsp;echo-cancel erl worst-case 0<br>&nbsp;&nbsp;playout-delay minimum low
<br>&nbsp;&nbsp;no comfort-noise<br><br>voice-port 0/2/1:23<br>&nbsp;&nbsp;translation-profile incoming Prepend_Sitecode<br>&nbsp;&nbsp;input gain -3<br>&nbsp;&nbsp;echo-cancel coverage 24<br>&nbsp;&nbsp;echo-cancel erl worst-case 0<br>&nbsp;&nbsp;playout-delay minimum low<br>&nbsp;&nbsp;no comfort-noise
<br>!<br>sccp local GigabitEthernet0/0<br>sccp ccm <a href="http://10.1.23.10">10.1.23.10</a> identifier 3 version 4.1<br>sccp ccm <a href="http://10.1.1.12">10.1.1.12</a> identifier 2 version 4.1<br>sccp ccm <a href="http://10.1.1.11">
10.1.1.11</a> identifier 1 version 4.1<br>sccp<br>!<br>sccp ccm group 1<br>associate ccm 2 priority 2<br>&nbsp;&nbsp;associate ccm 1 priority 1<br>&nbsp;&nbsp;associate profile 10 register {SITEPREFIX}CFB01<br>!<br>dspfarm profile 10 conference
<br>&nbsp;&nbsp;codec g711ulaw<br>&nbsp;&nbsp;codec g711alaw<br>&nbsp;&nbsp;codec g729ar8<br>&nbsp;&nbsp;codec g729abr8<br>&nbsp;&nbsp;codec g729r8<br>&nbsp;&nbsp;codec g729br8<br>associate application SCCP<br>no shut<br>!<br>!<br>! Dial-peer sequence and numbering pattern<br>! For incoming, use sitecode + a number
<br><br>dial-peer voice {SITECODE}1 pots<br>description<br>incoming called-number {SITECODE}....<br>&nbsp;&nbsp;direct-inward-dial<br>&nbsp;&nbsp;port 0/1/0:15<br><br>dial-peer voice {SITECODE}2 pots<br>description<br>incoming called-number {SITECODE}....
<br>&nbsp;&nbsp;direct-inward-dial<br>&nbsp;&nbsp;port 0/2/0:15<br><br><br>! Dial-peer for voip is the IP address without dots.&nbsp;&nbsp;Use the right<br>! ones!<br>dial-peer voice 11111 voip<br>&nbsp;&nbsp;destination-pattern {SITECODE}....<br>&nbsp;&nbsp;progress_ind setup enable 3
<br>&nbsp;&nbsp;progress_ind progress enable 8<br>&nbsp;&nbsp;voice-class codec 1<br>&nbsp;&nbsp;voice-class h323 1<br>&nbsp;&nbsp;session target ipv4:<a href="http://1.1.1.11">1.1.1.11</a><br>&nbsp;&nbsp;dtmf-relay h245-alphanumeric<br>&nbsp;&nbsp;ip qos dscp cs3 signaling<br>&nbsp;&nbsp;no vad
<br>&nbsp;&nbsp;fax-relay ecm disable<br>!<br>dial-peer voice 111112 voip<br>&nbsp;&nbsp;preference 1<br>destination-pattern {SITECODE}....<br>&nbsp;&nbsp;progress_ind setup enable 3<br>&nbsp;&nbsp;progress_ind progress enable 8<br>&nbsp;&nbsp;voice-class codec 1<br>&nbsp;&nbsp;voice-class h323 1
<br>&nbsp;&nbsp;session target ipv4:<a href="http://1.1.1.12">1.1.1.12</a><br>&nbsp;&nbsp;dtmf-relay h245-alphanumeric<br>&nbsp;&nbsp;ip qos dscp cs3 signaling<br>&nbsp;&nbsp;no vad<br>&nbsp;&nbsp;fax-relay ecm disable<br>!<br>! Dial-peer for pots is &quot;8&quot; – as the escape code
<br>! Next is the number of digits that we&#39;re dealing with, so 7, 10, 11,<br>! etc<br>! Last is the preference number so analog can be less preferred than PRI<br>! with the same destination<br>! pattern<br><br>dial-peer voice 871 pots
<br>trunkgroup Local 1<br>trunkgroup FXO 3<br>description Local Calling pattern – use Local PRI first, then FXO if PRI<br>is full or busy<br>destination-pattern 8.......<br>clid restrict<br><br>dial-peer voice 8101 pots<br>
preference 1<br>trunkgroup LongDistance<br>description LD Calling pattern<br>destination-pattern 81..........<br>clid restrict<br>! LD calls out the LD PRI don&#39;t need a 1<br><br>dial-peer voice 8102 pots<br>! We only use this dial peer if the one above is down / full
<br>preference 2<br>trunkgroup Local 1<br>trunkgroup FXO 3<br>description LD Calling pattern – use Local PRI first, then FXO if PRI<br>is full or busy<br>destination-pattern 81..........<br>clid restrict<br>! LD calls out the local PRI or FXO need the &quot;1&quot; in front.
<br>prefix 1<br><br>dial-peer voice 8011 pots<br>! One dial-peer covers all of our bases.<br>&nbsp;&nbsp;trunkgroup LongDistance 1<br>&nbsp;&nbsp;trunkgroup Local 3<br>&nbsp;&nbsp;trunkgroup FXO 5<br>&nbsp;&nbsp;description International call<br>&nbsp;&nbsp;destination-pattern 8011T
<br>&nbsp;&nbsp;progress_ind setup enable 3<br>&nbsp;&nbsp;prefix 011<br><br>dial-peer voice 911 pots<br>description Used with CER<br>&nbsp;&nbsp;destination-pattern 6911<br>&nbsp;&nbsp;progress_ind setup enable 3<br>&nbsp;&nbsp;trunkgroup Local<br>&nbsp;&nbsp;forward-digits 3<br>
!<br>dial-peer voice 8411 pots<br>description x11 Services<br>&nbsp;&nbsp;destination-pattern 8[2-9]11<br>&nbsp;&nbsp;trunkgroup Local 1<br>&nbsp;&nbsp;trunkgroup FXO 3<br>&nbsp;&nbsp;forward-digits 3<br>!<br>dial-peer voice 9101 pots<br>&nbsp;&nbsp;description Used to send caller ID for inter-office calls
<br>&nbsp;&nbsp;destination-pattern 91[2-9].........<br>&nbsp;&nbsp;progress_ind setup enable 3<br>trunkgroup LongDistance<br>! Note that we don&#39;t have clid restrict on this dial peer, and it has a<br>! &quot;9&quot; - we stuff the 9 on the route pattern in CM; users can&#39;t dial &quot;9&quot;
<br>! directly<br>&nbsp;&nbsp;forward-digits 10<br><br>dial-peer voice 9011 pots<br>&nbsp;&nbsp;trunkgroup LongDistance<br>&nbsp;&nbsp;description Used to send caller ID for inter-office calls internationally<br>&nbsp;&nbsp;destination-pattern 9011T<br>&nbsp;&nbsp;progress_ind setup enable 3
<br>&nbsp;&nbsp;prefix 011<br><br>dial-peer voice 10 pots<br>description Different escape pattern to force a call to analog<br>trunkgroup FXO<br>destination-pattern *8T<br>!<br><br>! Convert to U.S.-based 911 for our foreign guests; do the same for
<br>! &quot;110&quot; and &quot;112&quot; in case of SRST mode<br>num-exp 911 8911<br>num-exp 110 8911<br>num-exp 8110 8911<br>num-exp 112 8911<br>num-exp 8112 8911<br><br><br>gateway<br>&nbsp;&nbsp; media-inactivity-criteria rtp<br>
&nbsp;&nbsp; timer receive-rtcp 1000<br>ip rtcp report interval 65535<br><br><br>!<br>line con 0<br>&nbsp;&nbsp;login authentication console-in<br>line vty 0 15<br>&nbsp;&nbsp;session-timeout 120<br>&nbsp;&nbsp;exec-timeout 60<br>autoselect during-login<br>!<br>
ntp server <a href="http://1.1.1.26">1.1.1.26</a><br>ntp update-calendar<br>! If there's a core dump, then send it via TFTP somewhere else for analysis<br>exception dump <a href="http://1.1.23.9">1.1.23.9</a><br><br>! archive command provides CLI history of who entered a command
<br>archive<br>&nbsp;&nbsp;log config<br>&nbsp;&nbsp; logging enable<br>&nbsp;&nbsp; notify syslog<br>&nbsp;&nbsp; hidekeys<br>end<br>_______________________________________________<br>cisco-voip mailing list<br><a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net
</a><br><a href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br></blockquote></div><br>