show voice port - Tecnológico de Costa Rica

show voice port - Tecnológico de Costa Rica show voice port - Tecnológico de Costa Rica

bibliodigital.itcr.ac.cr
from bibliodigital.itcr.ac.cr More from this publisher
02.07.2013 Views

Local Dial Peers To route a received voice call to the right destination, the router needs to know which telephone number belongs to each voice port. For instance, if a call comes in for 408 555-3737, the router needs to know that this telephone is connected to voice port 2/0/0 (as shown in Figure 12). In other words, the router needs to know the information in Table 1. To hold this information, Cisco IOS software uses objects called dial peers. A telephone number, a voice port, and other call parameters are tied together by associating them all with the same dial peer. Configuring dial peers is similar to configuring static IP routes—you are telling the router what path to follow to route the call. Dial peers are identified by numbers, but to avoid confusing these numbers with telephone numbers, they are usually referred to as tags. Dial peer tags are integers that can range from 1 to 231 -1 (2147483647), which should be enough for most purposes. Dial peers on the same router must have unique tags, but you can reuse the tags on other routers. Table 2 assigns each phone number-voice port pair on the West router a dial peer tag. Within the allowed range, you can choose any dial peer tag or any system that is convenient or makes sense to you. This type of dial peer is called a POTS dial peer or a local dial peer. The term “POTS” (plain old telephone service) means that the dial peer associates a physical voice port with a local telephone device. (Another type of dial peer is explained in the section “Calling Between Routers.”) Table 2 West Router Local Dial Peers Telephone Number Voice Port Dial Peer Tag 408 555-3737 2/0/0 401 408 555-4141 2/0/1 402 You should construct a table similar to Table 2 for your own routers, assigning your own telephone numbers and dial peer tags. Note The telephone numbers used in this guide are only examples, and are generally invalid for public use in the United States. When you configure your network, be sure to substitute your own telephone numbers. To configure the router with the information in the table, enter the following commands in global configuration mode: West(config)# dial-peer voice 401 pots West(config-dial-peer)# dest-pat +14085553737 West(config-dial-peer)# port 2/0/0 West(config)# dial-peer voice 402 pots West(config-dial-peer)# dest-pat +14085554141 West(config-dial-peer)# port 2/0/1 West(config-dial-peer)# exit West(config)# These commands are summarized in Figure 13. Local Dial Peers Voice over IP Quick Start Guide 17

Configuring FXS Interfaces 18 Voice over IP Quick Start Guide Figure 13 West Router Configured for Local Dial Peers dial-peer voice 401 pots dest-pat +14085553737 port 2/0/0 FXS VIC 2/0/0 West FXS VIC 2/0/1 dial-peer voice 402 pots dest-pat +14085554141 port 2/0/1 IP cloud The dial-peer command always takes the argument voice. The number following it is the dial peer tag, and pots is the type of dial peer. Cisco IOS software refers to a telephone number as a destination pattern, because it is the destination for an incoming or outgoing call. Enter these numbers with the destination-pattern (abbreviated dest-pat) command. A destination pattern always begins with a plus sign (+). It can also include asterisks (*) and pound signs (#) from the telephone keypad, and commas (,) and periods (.), which have special meaning. Parentheses ( () ), hyphens (-), slashes (/), and spaces ( ), which are often used to make telephone numbers easier for humans to read, are not allowed. Notice that the commands in the examples append the prefix 1 (used in the United States to indicate a long-distance number) and an area code to the destination pattern. You may need to include similar codes for your country if the voice over IP equipment needs to establish a connection to the PSTN. In other situations, you might be able to simplify configuration by omitting this information. Note The Cisco IOS software does not check the validity of the telephone number. It accepts any string of permitted characters as a valid number. The business that owns the West router also has a branch office in the East. Figure 14 shows the East network, and Table 3 lists phone numbers, voice ports, and dial peer tags for this office. Figure 14 Basic Voice Network (East Router) IP cloud FXS VIC 3/1/0 East FXS VIC 3/1/1 10008 919 958-8282 919 958-9595 10009

Configuring FXS Interfaces<br />

18 Voice over IP Quick Start Gui<strong>de</strong><br />

Figure 13 West Router Configured for Local Dial Peers<br />

dial-peer <strong>voice</strong> 401 pots<br />

<strong>de</strong>st-pat +14085553737<br />

<strong>port</strong> 2/0/0<br />

FXS VIC<br />

2/0/0<br />

West<br />

FXS VIC<br />

2/0/1<br />

dial-peer <strong>voice</strong> 402 pots<br />

<strong>de</strong>st-pat +14085554141<br />

<strong>port</strong> 2/0/1<br />

IP cloud<br />

The dial-peer command always takes the argument <strong>voice</strong>. The number following it is the dial peer<br />

tag, and pots is the type of dial peer.<br />

Cisco IOS software refers to a telephone number as a <strong>de</strong>stination pattern, because it is the<br />

<strong>de</strong>stination for an incoming or outgoing call. Enter these numbers with the <strong>de</strong>stination-pattern<br />

(abbreviated <strong>de</strong>st-pat) command. A <strong>de</strong>stination pattern always begins with a plus sign (+). It can<br />

also inclu<strong>de</strong> asterisks (*) and pound signs (#) from the telephone keypad, and commas (,) and<br />

periods (.), which have special meaning. Parentheses ( () ), hyphens (-), slashes (/), and spaces ( ),<br />

which are often used to make telephone numbers easier for humans to read, are not allowed.<br />

Notice that the commands in the examples append the prefix 1 (used in the United States to indicate<br />

a long-distance number) and an area co<strong>de</strong> to the <strong>de</strong>stination pattern. You may need to inclu<strong>de</strong> similar<br />

co<strong>de</strong>s for your country if the <strong>voice</strong> over IP equipment needs to establish a connection to the PSTN.<br />

In other situations, you might be able to simplify configuration by omitting this information.<br />

Note The Cisco IOS software does not check the validity of the telephone number. It accepts any<br />

string of permitted characters as a valid number.<br />

The business that owns the West router also has a branch office in the East. Figure 14 <strong>show</strong>s the East<br />

network, and Table 3 lists phone numbers, <strong>voice</strong> <strong>port</strong>s, and dial peer tags for this office.<br />

Figure 14 Basic Voice Network (East Router)<br />

IP cloud<br />

FXS VIC<br />

3/1/0<br />

East<br />

FXS VIC<br />

3/1/1<br />

10008<br />

919 958-8282<br />

919 958-9595<br />

10009

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!