FXS-to-FXS Connection Using RSVP
The following example shows how to configure VoIP for simple FXS-to-FXS connection.
In this example, a very small company with two offices decides to integrate VoIP in its existing IP network. One basic telephony device is connected to Router RLB-1; therefore, Router RLB-1 is configured for one POTS dial peer and one VoIP dial peer. Router RLB-w and Router RLB-e establish the WAN connection between the two offices. Because one POTS telephony device is connected to Router RLB-2, it is also configured for one POTS dial peer and one VoIP dial peer.
In this example, only the calling end (Router RLB-1) is requesting RSVP.
Figure 3-1 illustrates the topology of this FXS-to-FXS connection example.
Figure 3-1 FXS-to-FXS Connection Example
Configuration for Router RLB-1
! Create voip dial-peer 2
! Define its associated telephone number and IP address
destination-pattern 14155553001
sess-target ipv4:40.0.0.1
! Create pots dial-peer 1
! Define its associated telephone number and voice port
destination-pattern 14085554001
! Configure serial interface 0
ip address 10.0.0.1 255.0.0.0
! Configure RTP header compression
ip rtp header-compression
ip rtp compression-connections 25
! Enable RSVP on this interface
Configuration for Router RLB-w
! Configure serial interface 0
ip address 10.0.0.2 255.0.0.0
! Configure RTP header compression
ip rtp header-compression
ip rtp compression-connections 25
! Enable RSVP on this interface
! Configure serial interface 1
ip address 20.0.0.1 255.0.0.0
! Configure RTP header compression
ip rtp header-compression
ip rtp compression-connections 25
! Enable RSVP on this interface
Configuration for Router RLB-e
! Configure serial interface 0
ip address 40.0.0.2 255.0.0.0
! Configure RTP header compression
ip rtp header-compression
ip rtp compression-connections 25
! Enable RSVP on this interface
! Configure serial interface 1
ip address 40.0.0.2 255.0.0.0
! Configure RTP header compression
ip rtp header-compression
ip rtp compression-connections 25
! Enable RSVP on this interface
Configuration for Router RLB-2
! Create pots dial-peer 2
! Define its associated telephone number and voice-port
destination-pattern 14155553001
! Create voip dial-peer 1
!Define its associated telephone number and IP address
destination-pattern 14085554001
sess-target ipv4:10.0.0.1
! Configure serial interface 0
ip address 40.0.0.1 255.0.0.0
! Configure RTP header compression
ip rtp header-compression
ip rtp compression-connections 25
! Enable RSVP on this interface
network 40.0.0.0
Linking PBX Users with E&M Trunk Lines
The following example shows how to configure VoIP to link PBX users with E&M trunk lines.
In this example, a company decides to connect two offices: one in San Jose, California, and the other in Salt Lake City, Utah. Each office has an internal telephone network using PBX, connected to the voice network by an E&M interface. Both the Salt Lake City and the San Jose offices are using E&M Port Type II, with four-wire operation and ImmediateStart signaling. Each E&M interface connects to the router using two voice interface connections. Users in San Jose dial
801-555 and then the extension number to reach a destination in Salt Lake City. Users in Salt Lake City dial
408-555 and then the extension number to reach a destination in San Jose.
Figure 3-2 illustrates the topology of this connection example.
Figure 3-2 Linking PBX Users with E&M Trunk Lines Example
Note
This example assumes that the company has already established a working IP connection between its two remote offices.
Router SJ Configuration
!Configure pots dial-peer 1
destination-pattern 1408555....
!Configure pots dial-peer 2
destination-pattern 1408555....
!Configure voip dial-peer 3
destination-pattern 1801555....
session target ipv4:172.16.65.182
!Configure the E&M interface
!Configure the serial interface 0
Router SLC Configuration
!Configure pots dial-peer 3
destination-pattern 1801555....
!Configure pots dial-peer 4
destination-pattern 1801555....
!Configure voip dial-peer 1
destination-pattern 1408555....
session target ipv4:172.16.1.123
!Configure the E&M interface
!Configure the serial interface 0
Note
PBXs should be configured to pass all DTMF signals to the router. We recommend that you do not configure, store, and forward tone.
Note
If you change the gain or the telephony port, make sure that the telephony port still accepts DTMF signals.
FXO Gateway to PSTN
FXO interfaces provide a gateway from the VoIP network to the analog PSTN or to a PBX that does not support E&M signaling so that users can reach telephones and fax machines outside the VoIP network.
In this example, users connected to Router SJ in San Jose, California, can reach PSTN users in Salt Lake City, Utah, via Router SLC. Router SLC in Salt Lake City is connected directly to the PSTN through an FXO interface.
Figure 3-3 illustrates the topology of this connection example.
Figure 3-3 FXO Gateway to PSTN Example
Note
This example assumes that the company has already established a working IP connection between its two remote offices.
Router SJ Configuration
! Configure pots dial-peer 1
destination-pattern 14085554000
! Configure voip dial-peer 2
destination-pattern 1801.......
session target ipv4:172.16.65.182
! Configure serial interface 0
Router SLC Configuration
! Configure pots dial-peer 1
destination-pattern 1801.......
! Configure voip dial-peer 2
destination-pattern 14085554000
session target ipv4:172.16.1.123
! Configure serial interface 0
FXO Gateway to PSTN (PLAR Mode)
The following example shows an FXO gateway to PSTN connection in PLAR mode.
In this example, PSTN users in Salt Lake City, Utah, can dial a local number and establish a private line connection in a remote location. As in the previous example, Router SLC in Salt Lake City is connected directly to the PSTN through an FXO interface.
Figure 3-4 illustrates the topology of this connection example.
Figure 3-4 FXO Gateway to PSTN (PLAR Mode) Example
Note
This example assumes that the company has already established a working IP connection between its two remote offices.
Router SJ Configuration
! Configure pots dial-peer 1
destination-pattern 14085554000
! Configure voip dial-peer 2
destination-pattern 1801.......
session target ipv4:172.16.65.182
! Configure the serial interface 0
Router SLC Configuration
! Configure pots dial-peer 1
destination-pattern 1801.......
! Configure voip dial-peer 2
destination-pattern 14085554000
session target ipv4:172.16.1.123
! Configure the voice port
connection plar 14085554000
! Configure the serial interface 0