Thursday, September 11, 2008

VOIP Lab 3 – POTS and VOIP Dial Peers

The purpose of this lab is to provision some simple POTS and VOIP Dial Peers for the Ballplayers, Inc test bed.

Tasks 3.1 – POTS and VOIP Dial Peers Configuration
Configure the following FXS port attributes on both the Baltimore and New York routers, based on the diagram and dial plan in Lab 1.
  1. Configure loop-start signaling.
  2. Configure an appropriate description for each FXS voice port.
  3. Enable Caller ID.
  4. Configure the appropriate station id name matching the user of the FXS port.
  5. Configure the appropriate station id number matching the user of the FXS port.
  6. Tom Seaver was known for being a power pitcher. Therefore, modify the Tom Terrific’s ring cadence to reflect the speed of his fastball.
  7. In honor of his Greek heritage, Nick Markakis would like to modify his cptone for to match Greece.
  8. Configure the appropriate POTS dial peers for each phone.
  9. Configure the appropriate VOIP dial peers, using only on dial peer per router, but the destination pattern as specific as possible. The dial peer should support the North American G.711 standard.

Tasks 3.2 – POTS and VOIP Dial Peers Verification

1. Verify your FXS port configurations by issuing a show voice port port_id command. Pay particular attention to the modifications made to Nick Markakis and Tom Seaver. Below is a comparison of the Ring Cadence comparisons between Cal Ripken (0/3/0) and Nick Markakis (0/3/1); note the differences.

Baltimore#sh voice port 0/3/0 begin Ring Cadence
Ring Cadence is defined by CPTone Selection
Ring Cadence are [20 40] * 100 msec
Ringer Equivalence Number is set to 1
Baltimore#sh voice port 0/3/1 begin Ring Cadence
Ring Cadence is defined by CPTone Selection
Ring Cadence are [10 40] * 100 msec
Ringer Equivalence Number is set to 1
Baltimore#

2. Test the configuration by entering the test voice port port_id relay ring on and the test voice port port_id relay ring disable commands. This will have the routers ring the FXS ports.

3. Test the each dial peers by placing a call from each phone to each other phone. Note, if you are not physically at router, use the undocument csim start dial-string command. I’ve added a couple of cheap wireless phones in my lab, so that I can verify call routing from the comfort of my home office rather than my dingy basement.

Below you can see the output of a debug voice dialpeer all on the Baltimore router while issuing the csim start 5001 on the New York router. In this instance, the incoming call to 5001 is matched to Dial-peer 5001

Baltimore#sh logging
!
!output omitted!
!
Log Buffer (4096 bytes):
:
Match Rule=DP_MATCH_ORIGINATE; Calling Number=5001
.Sep 11 2008 17:58:58.480 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Sep 11 2008 17:58:58.484 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=5001T
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Sep 11 2008 17:58:58.484 EDT: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Incoming Dial-peer=5001 Is Matched
.Sep 11 2008 17:58:58.484 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:exit@5540
.Sep 11 2008 17:58:58.484 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=NO_MATCH(-1) After All Match Rules Attempt
.Sep 11 2008 17:58:58.484 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeer:exit@6139
.Sep 11 2008 17:58:58.484 EDT: //-1/AB6A87358012/DPM/dpMatchPeersCore:
Calling Number=, Called Number=5001, Peer Info Type=DIALPEER_INFO_SPEECH
.Sep 11 2008 17:58:58.484 EDT: //-1/AB6A87358012/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=5001
.Sep 11 2008 17:58:58.484 EDT: //-1/AB6A87358012/DPM/dpMatchCore:
Dial String=5001, Expanded String=5001, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Sep 11 2008 17:58:58.484 EDT: //-1/AB6A87358012/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=5001 Is Matched
.Sep 11 2008 17:58:58.484 EDT: //-1/AB6A87358012/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
.Sep 11 2008 17:58:58.484 EDT: //-1/AB6A87358012/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=5001


3. A number of other useful commands include sh dial-peer voice summary , sh voice call, sh voice call summary, sh voice port summary.

4. Below are the appropriate voice-port and dial-peer configurations for this lab.

Baltimore:

Baltimore#sh run begin voice-port
voice-port 0/1/0
!
voice-port 0/1/1
!
voice-port 0/3/0
description Cal Ripken
station-id name Cal Ripken
station-id number 5001
caller-id enable
!
voice-port 0/3/1
cptone GR
description Nick Markakis
station-id name Nick Markakis
station-id number 5002
caller-id enable
!
!
!
!
!
dial-peer voice 5001 pots
destination-pattern 5001
port 0/3/0
!
dial-peer voice 5002 pots
destination-pattern 5002
port 0/3/1
!
dial-peer voice 6000 voip
description VOIP Peer to NYC
destination-pattern 600[12]
session target ipv4:172.16.2.2
codec g711ulaw
!

New York:

NewYork#sh run begin voice-port
voice-port 0/1/0
!
voice-port 0/1/1
!
voice-port 0/3/0
ring cadence pattern04
description Tom Seaver
station-id name Tom Seaver
station-id number 6001
caller-id enable
!
voice-port 0/3/1
description David Wright
station-id name David Wright
station-id number 6002
caller-id enable
!
!
!
!
!
dial-peer voice 6001 pots
destination-pattern 6001
port 0/3/0
!
dial-peer voice 6002 pots
destination-pattern 6002
port 0/3/1
!
dial-peer voice 5000 voip
description VOIP Peer to Baltimore
destination-pattern 500[12]
session target ipv4:172.16.1.2
codec g711ulaw
!

Next lab we’ll layer on some additional tasks, like outbound PSTN via FXO and perhaps some further fun with the POTS dial-peers and local CAC busyout.

Lab references:
Wallace, Kevin (2007). Cisco Voice over IP (CVoice), Authorized Self-Study Guide, 2nd Edition (Chapters 3 & 4). Indianapolis: Cisco Press.

No comments: