We help IT Professionals succeed at work.

Check out this week's podcast, "Dairy Farms to Databases: Community's Hand in Technology"Listen Now

x

Installing PRI circuit on Cisco 2821 Voice Gateway Router

1,611 Views
Last Modified: 2014-08-22
I am ordering a voice PRI for my office.  I  am using a Cisco 2821 H323 voice gateway router and a CUCM 7.1.5 server.  The provider asked me two questions that I am unsure of:

1.  How many digits do you want to send.  They said I can do 3, 4, or 10.  Can someone please explain this?
2.  What protocol  do I want to use.  I wasn't sure so they picked NI2.  Will this work my an  H323 gateway?
Comment
Watch Question

Ken BooneNetwork Consultant
CERTIFIED EXPERT

Commented:
NI2 is the most common in the US.  That will be fine.    I quit using MGCP a long time ago and do all of mine on h.323.

Author

Commented:
Ok so NI2 will work on an h.323 gateway right?  How do I configure NI2 on the gateway router?  They are also asking me how many digits I want to send.  Can you explain this.  They said I can do 3, 4 or 10.  I'm guess this is for our DID numbers?
You would do something like this:

controller t1 1/1
 framing esf
 linecode b8zs
 pri-group timeslots 1-23
 isdn switchtype primary-ni

Now regarding the  amount of digits to send, I think they were referring to how many digits you want them to send to you. The whole concept of a DID is for people to dial 10 digits but the Telco will deliver 3 or 4 or the whole 10 digit string to your door, so they probably want to know how you want to receive those calls and match them. With an H323 gateway you may do any amount and match 3, 4 or 10 digits to then send the call to Callmanager or another device.

Author

Commented:
willlywilburwonka, thank you for the configuration above.  I just purchased a VWIC2-1MFT-T1/E1 card for the PRI connection.  I currently just have 8 analog phone lines that plug into two VIC2-4FXO cards.  We are growing out of this, which is why we are going with a PRI.  I attached current voice gateway configuration:

Now I told the Telco to match all 10 digits.  Will  I have to create another dial-peer for this?  Can you provide an example.  Also since the voiceports will be going away when I install the PRI, where do I configure the connection plar.  If you look at my config its 2001, which is a CTI route point in CUCM.
Voice-Gateway-Router-Config.txt
Ken BooneNetwork Consultant
CERTIFIED EXPERT

Commented:
Ok so when you do this:

controller t1 1/1
 framing esf
 linecode b8zs
 pri-group timeslots 1-23     <--- this command creates a few things
 isdn switchtype primary-ni     <-- I'm not sure that goes under the controller  Willy might be right but I don't think it goes here

So the pri-group timeslots 1-23 command will create a new serial interface.  So when you do a show run you will now see something like this:

interface serial1/1:23

On this interface you issue the isdn switch-type primary-ni command as well as isdn incoming-voice voice command.

That pri-group statement also creates a new voice-port so in the config you will see something like this:

voice-port 1/1:23

That is the port you will use in your outbound dial peers.

So instead of having multiple 9T dial-peer statements - you will have one pointing to port 1/1:23


As far as the plar question is concerned....  There are probably multiple ways to do this.  On the PRI do you have DID phone numbers now or do you just have a single main number?  If you simply have a single main number, - and the provider is only sending you 4 digits, change the destination pattern on dial-peer 1 to be .... instead of 2...  That will match any 4 digits and send the call to cucm.  Then whatever that number is - those 4 digits have a translation pattern in cucm to translate that number to 2001.

Or you could build a translation on the router and translate the incoming call in the router itself.  Its just easier in cucm.

Author

Commented:
I will be getting 100 DID numbers with this PRI.  Most people calling the office are still going to call the main number which will be ported over in the PRI, but I will be configuring DID for certain people at the office.  The provider is going to send me all 10 digits, because the digits on all the phone numbers are in different ranges.
Ken BooneNetwork Consultant
CERTIFIED EXPERT

Commented:
So not sure how your whole dial plan is but I am assuming that you are using 4 digit extensions. If the last 4 numbers of all the DIDs are unique, you can still just accept 4 digits - it doesn't matter if the prefix is different - as long as the last 4 are unique amongst all your numbers.  You can pick out one of the DID numbers and make that the main line.  Then in CUCM set up a translation pattern to translate it to 2001.  It will work the same way.

Commented:
Whether the telco is sending 3, 4, or 10 doesn't matter.  Pick one and then configure the gateway and CUCM accordingly.  Since this is an existing system with established extensions, there will almost certainly have to be digit manipulation to get the inbound DIDs to match up with the existing extensions.  Personally I always have the telco send 4 digits as most of my installations have 4 digit extensions.

 I agree with kenboonejr on MGCP.  I stopped using it a long time ago.  Assuming you go with an H.323 gateway, I would do as much ingress digit manipulation as possible on the gateway.   There are many different ways to do it, the key is to pick one and configure accordingly.

Author

Commented:
I am having the telco send all 10 digits.  I am using 4 digit extensions internally, and yes I am going to use an H.323 Gateway.  Can you show me an example dial-peer that I will need for this?
Ken BooneNetwork Consultant
CERTIFIED EXPERT

Commented:
Here is a good example for you to follow:
http://samplefive.com/2011/09/voice-translation-rules-101/

Author

Commented:
so I am migrating over to this PRI monday morning.  The telco is sending me 10 digits.  I recieved 100 phone numbers, so I can eventually set some users up with DID.  All numbers start with the following:
610-xxx-xxxx
484-xxx-xxxx
215-xxx-xxxx

People calling the office from the outside usually dial the main number which is in the 610 range.  Does my configuration look like it will work?  Now internally  I use 4 digit extensions.  When I go to configure DID, is this done in CUCM, or do I have to configure a translation on the gateway router:  Here is the configuration of the voice gateway router I will use for the PRI.  It is not in production yet, but will next week.  Any thoughts?

CTI001_VGPRI_2821_ROUTER#show run
Building configuration...


Current configuration : 2382 bytes
!
! Last configuration change at 19:44:01 UTC Fri Aug 15 2014
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname CTI001_VGPRI_2821_ROUTER
!
boot-start-marker
boot-end-marker
!
!
card type t1 0 0
enable password 7 050C070D33454B0540574E
!
no aaa new-model
network-clock-participate wic 0
!
dot11 syslog
ip source-route
!
!
ip cef
!
!
!
no ipv6 cef
multilink bundle-name authenticated
!
!
!
!
isdn switch-type primary-ni
!
!
!
voice service voip
 allow-connections h323 to sip
 allow-connections sip to h323
 allow-connections sip to sip
!
voice class codec 99
 codec preference 1 g711ulaw
 codec preference 2 g729br8
 codec preference 3 g729r8
!
!
!
!
!
voice-card 0
!
crypto pki token default removal timeout 0
!
!
!
!
license udi pid CISCO2821 sn FTX0909A0LQ
!
!
controller T1 0/0/0
 cablelength long 0db
 pri-group timeslots 1-24
!
!
!
!
!
!
interface GigabitEthernet0/0
 description TO_LAN
 ip address 10.0.0.5 255.255.240.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 10.0.0.2
!
!
!
!
control-plane
!
!
voice-port 0/0/0:23
!
voice-port 0/1/0
!
voice-port 0/1/1
!
!
!
mgcp profile default
!
!
dial-peer voice 1 pots
 description Incoming dial peer
 incoming called-number .
 direct-inward-dial
!
dial-peer voice 2 pots
 description outgoing dial peer
 port 0/0/0:23
!
dial-peer voice 3 voip
 destination-pattern 610.......
 session target ipv4:10.0.1.1
 voice-class codec 99
 dtmf-relay h245-alphanumeric
!
dial-peer voice 4 voip
 destination-pattern 215.......
 session target ipv4:10.0.1.1
 voice-class codec 99
 dtmf-relay h245-alphanumeric
!
dial-peer voice 5 voip
 destination-pattern 484.......
 session target ipv4:10.0.1.1
 voice-class codec 99
 dtmf-relay h245-alphanumeric
!
dial-peer voice 6 voip
 destination-pattern 2001
 session target ipv4:10.0.1.1
 voice-class codec 99
 dtmf-relay h245-alphanumeric
!
!
!
!
line con 0
 password 7 121E04150002090873797D
 login
line aux 0
line vty 0 4
 password 7 094B4F0B0B0C121E525E5D
 login
 transport input all
!
scheduler allocate 20000 1000
end
Ken BooneNetwork Consultant
CERTIFIED EXPERT

Commented:
well you haven't cut anything down to 4 digits at this point.  So when you send it to cucm there won't be a match.  Best thing imo is to set up a translation pattern similar to the example I linked.  That way you just have 4 digits and your dial peer to call manager can simply match .... and then then it will just send 4 digits to cucm.

Author

Commented:
I'm confused.  I looked over the link, but I'm not getting it.  Can you provide me a configuration example?  My biggest concern it ensuring inbound and outbound calls work when I migrate over.  I can work on DID once I get basic calling working.

Author

Commented:
the telco is sending me 10 digits, so I'm not sure what you mean when you say cut in down to 4 digits.  Sorry for the confusion
Network Consultant
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.