Popular Posts

VoIP Part 1 Configuring FXS ports




VoIP Part 1 - Configuring FXS ports 

We are going to start a series here explaining how to configure VoIP and Call Manager Express on Cisco Routers. This is a hot topic these days and we are hoping that you will learn how to configure Cisco's IPT products:
Here we start with configs that have been available on Cisco routers for a long time, but are as useful today as ever.
We start with four analog phones connected to two routers. 1000 & 1001 are connected to R1 and 2000 & 2001 are connected to R2.
FXS ports - these are used to connect analog devices to Cisco routers and other devices. The FXS port provides power, dial tone, ring tone etc to the analog phone.
Diagram:




The first thing you need to determine is what Voice Ports the phones are connected to:
show voice port summary
R1# show voice port summary
                                  IN      OUT
PORT   CH SIG-TYPE   ADMIN OPER STATUS   STATUS   EC
====== == ========== ===== ==== ======== ======== ==
2/0/0  -- fxs-ls     up    dorm on-hook  idle     y
2/0/1  -- fxs-ls     up    dorm on-hook  idle     y
You can see from the above, that there are two FXS ports in R1
Then we can do the configuration:
On R1 do the following:
R1#conf t
!=== Enter global configuration mode
R1(config)#dial-peer voice 1 pots
!=== Create a dial peer. 1 is a tag which needs to be a unique number 1 to 2147483647. POTS is a traditional interface - FXS, FXO, E&M, PRI, E1, T1 etc
R1(config-dial-peer)#destination-pattern 1000
!=== This gives the analog phone a number of 1000
R1(config-dial-peer)#port 0/0/0
!=== Tell the router which port to push the call out of when a call is made to 1000
R1(config-dial-peer)#dial-peer voice 2 pots
!=== Create a dial peer. 1 is a tag which needs to be a unique number 1 to 2147483647. POTS is a traditional interface - FXS, FXO, E&M, PRI, E1, T1 etc
R1(config-dial-peer)#destination-pattern 1001
!=== This gives the analog phone a number of 1001
R1(config-dial-peer)#port 0/0/1
!=== Tell the router which port to push the call out of when a call is made to 1001
This will enable the two analog phones on R1 to talk to each other. You would do something similar on R2:
R2#conf t
!=== Enter global configuration mode
R2(config)#dial-peer voice 1 pots
!=== Create a dial peer. 1 is a tag which needs to be a unique number 1 to 2147483647. POTS is a traditional interface - FXS, FXO, E&M, PRI, E1, T1 etc
R2(config-dial-peer)#destination-pattern 2000
!=== This gives the analog phone a number of 2000
R2(config-dial-peer)#port 0/0/0
!=== Tell the router which port to push the call out of when a call is made to 2000
R2(config-dial-peer)#dial-peer voice 2 pots
!=== Create a dial peer. 1 is a tag which needs to be a unique number 1 to 2147483647. POTS is a traditional interface - FXS, FXO, E&M, PRI, E1, T1 etc
R2(config-dial-peer)#destination-pattern 2001
!=== This gives the analog phone a number of 2001
R2(config-dial-peer)#port 0/0/1
!=== Tell the router which port to push the call out of when a call is made to 2001
To allow the analog phones to talk to the analog phones on the other router, do the following:
R1:
R1#conf t
!=== Enter global configuration mode
R1(config)#dial-peer voice 3 voip
!=== Create a dial peer. 1 is a tag which needs to be a unique number 1 to 2147483647. VOIP is used when talking across an IP network
R1(config-dial-peer)#destination-pattern 2...
!=== This tells the router that any call going to 2000 to 2999 should match this dial peer
R1(config-dial-peer)#session target ipv4:10.1.1.2
!=== The call that matches this dial peer should be sent to 10.1.1.2
R2:
R2#conf t
!=== Enter global configuration mode
R2(config)#dial-peer voice 3 voip
!=== Create a dial peer. 1 is a tag which needs to be a unique number 1 to 2147483647. VOIP is used when talking across an IP network
R2(config-dial-peer)#destination-pattern 1...
!=== This tells the router that any call going to 1000 to 1999 should match this dial peer
R2(config-dial-peer)#session target ipv4:10.1.1.1
!=== The call that matches this dial peer should be sent to 10.1.1.1

And thats it!
All the phones will now be able to successfully communicate.
We can look at the "Voice Routing Table" by typing the following command:
R1#show dial-peer voice summary

PASS
TAG   TYPE   ADMIN OPER PREFIX   DEST-PATTERN PREF THRU SESS-TARGET PORT
    1   pots    up       up                   1000                 0                                      0/0/0
    2   pots    up       up                   1001                 0                                      0/0/1
    3   voip    up        up                   2...                    0                syst ipv4:10.1.1.1
 
 
Creating dial-peers is similar to creating static routes. We are adding "voice routes" to a "voice routing table".
The four analog phones will now be able to call each other.


Thanks,
D.K,
lonetsec




 

Tags


Powered by WidgetsForFree

Featured Content

Our Partners

© 2010 Logical Network Security. All Rights Reserved Thesis WordPress Theme Converted into Blogger Template by Hack Tutors.info