AB - CCNA Voice Quick Reference Guide
AB - CCNA Voice Quick Reference Guide
Analog circuits:
Loop start: When a phone is on-hook, the CO sees the circuit is broken. As soon as
the phone goes off-hook to make an outgoing call, the circuit is completed and a -48V
DC current flows. The CO sees the circuit as complete and sends a dial-tone.
When a phone receives an incoming call, the CO sends a 90V AC current and that
makes the phone ring.
Loop start signalling is ideal for home users but can cause a problem known as
glare.
Ground start: This type of signalling is very common between a PBX and a CO
switch. Here, both ends can request and confirm the use of circuit by closing the
circuits from their end. The two wires are typically called the tip and the ring
wires.
E&M- Usually called Ear and Mouth, or Earth and Magneto or Receive and Transmit.
This type of signalling is used between PBXs.
The ITU developed an international standard for telephone numbering called the
E.164 Addressing. It has 3 components-
- CC Country Code
- NDC- National Designation Code
- SN- Subscriber Number
Telephony signalling:
Informational signalling: The local CO sends different frequencies to notify the caller
about, once the caller phone goes offhook- dial-tone, busy, ringback, congestion,
reorder, receiver-offhook, no such number and confirmation. It communicates the
current state of the call.
Address signalling: Once the dial-tone is available, user can dial digits. Two types of
address signalling- DTMF (tone) and Pulse. The digits dialled are also address
signalling.
2) Quantize the signal- Each sample is matched to a voltage level on the scale, and
assigned a value from 16 different values (0-7 positive and 0-7 negative).
3) Encode each sample to a binary value- Each sample voltage is converted to an 8-bit
binary value. This process is called PCM.
So, 8000 samples per second for human speech gives 8000*8 (=64000) bits per
second.
Digital circuits:
CAS (Channel Associated Signalling)- Every 8th bit of the 6th frame is used for
signalling in a T1 connection. A&B signalling bits for SuperFrame and A,B,C&D for
Extended SuperFrame.
Each T1 connection has 24 DS0, each DS0 can carry one phone call. 1 DS0 = 64kbps
After every 24 frames are transmitted, one framing bit is sent.
Each T1 frame (a big frame of 24 smaller frames) has 193 bits [(8 bits of each DS0 x
24 DS0) + 1 framing bit]
Endpoints- Cisco IP Phones (3911, 7906- single-line, 794x- two-line, 796x- six-lines,
7916- 14-lines expansion module, Cisco ATA- for analog devices)
Applications- Cisco Unity Express (up to 250 users), Cisco Unity Connection (up to
3000 users) and Cisco Unity (up to 7500 users). IVR/AA, Contact Centre, Meeting
Place, ER and Presence.
ER- This application tracks the location of the IP Phone based on the physical
switchport it is connected to.
Call Processing- Cisco UC500 (up to 48 users), Cisco CME (up to 250 users), Cisco
Unified Communication Manager Business Edition (500+ users), Cisco Unified
Communication Manager (30000+ users)
Infrastructure- Cisco routers (1861, 2801, 2811, 2621XM, 3725, 3745, 3845) aka
voice-gateways and Cisco voice-enabled switches.
CHAPTER-3
Vision:
Switch B:
vlan 10
name VOICE
vlan 50
name DATA
!
vtp mode server
vtp domain voice
vtp password cisco
vtp version 2
!
Switch A:
vtp mode transparent
vtp domain voice
vtp password cisco
vtp version 2
!
Switch B:
interface range fastethernet 0/1 3
spanning-tree portfast
switchport mode access
switchport access vlan 50
switchport voice vlan 10
!
Configuring Trunk:
Switch B:
interface fastethernet 0/24
switchport trunk encapsulation dot1q
switchport mode trunk
!
Switch A:
interface fastethernet 0/24
switchport trunk encapsulation dot1q
switchport mode trunk
!
CME-voice:
interface fastethernet 0/1
no ip address
no shutdown
!
interface fastethernet 0/1.10
ip address 172.16.1.1 255.255.255.0
encapsulation dot1q 10
ip helper-address 172.16.2.5
!
interface fastethernet 0/1.50
ip address 172.16.2.1 255.255.255.0
encapsulation dot1q 50
!
ntp server 64.209.210.24
clock timezone abc 10
!
DHCP-router:
interface fastethernet 0/1
ip address 172.16.2.5 255.255.255.0
no shutdown
!
ip dhcp excluded-address 172.16.1.1 172.16.1.10
ip dhcp excluded-address 172.16.2.1 172.16.2.10
ip dhcp pool VOICE
network 172.16.1.0 255.255.255.0
default-router 172.16.1.1
dns-server 4.2.2.2
option 150 ip 172.16.1.1
!
ip dhcp pool DATA
network 172.16.2.0 255.255.255.0
dns-server 4.2.2.2
default-router 172.16.2.1
!
CHAPTER-4
Licenses required:
1) IOS license
2) Feature license
3) Phone user license (number of phones to be connected)
Installing CME:
Install a recent IOS on the flash of the router from a working TFTP-server.
Reboot the router and new IOS is available to work with. Then download the required
TAR files for CME from Cisco.com to the TFTP-server. Using the archive command,
extract the files to the flash.
Now configure the router as a TFTP-server for the IP Phones. The IP Phones will
come to the TFTP-server (because of OPTION 150) and ask for firmware and
configuration files. All files for a particular phone model should be available to the
phone from the TFTP-server. To configure the router as TFTP-server,
Configuring CME:
Scenario: A technical support group (containing 2 guys). Both phones should be able
to make outgoing calls at the same time. When a call comes in, both phones should
ring. If one phone is busy, only the other phone should ring- first phone should not
hear the call-waiting beep. If both phones are busy, the caller should hear BUSY tone.
ephone-dn 1 dual-line
number 1010
preference 0
huntstop channel ! Stop hunting for second channel for that DN match
no huntstop ! Dont stop hunting for that DN match
ephone-dn 2 dual-line
number 1010
preference 1
huntstop channel
!
ephone 1
mac-address 0101.0101.0101
button 1o1,2
!
ephone 2
mac-address 0202.0202.0202
button 1o1,2
telephony-service
user-locale 1 AU
network-locale 1 AU
ephone-template 1
user-locale 1
network-locale 1
!
ephone 10
ephone-template 1
1) Once the phone boots up, it sends broadcast packets to get an IP address. On
the phone screen, it displays Configuring IP. If the message continues to be
displayed for a long time, there is a communication problem between the
phone and the DHCP server (router). On the DHCP server, do
It displays all the devices that have received the IP address from this DHCP
Server.
2) Once the phone gets the IP address of the TFTP server from DHCP server
option 150, it requests firmware and configuration files from the TFTP server.
It displays all the files being requested by IP phones and then provided by
CME/TFTP router.
3) Once the phone gets the firmware and configuration files, it requests feature
support from the CME router.
By default, the CME allows auto-registration of IP Phones. It doesnt assign them any
DNs by default. The running configuration does not show any ephones registered.
To disable auto-registration,
telephony-service
no auto-reg-ephone
telephony-service
auto assign 20 to 24 type 7960
The above command assigns ephone-dn 20 to the first 7960 phone. It also appears on
the running configuration of the CME router.
show ephone attempted-registrations command shows all the ephone (with their
MAC addresses) that tried to auto-register with the CME.
show ephone [summary] command displays all the ephones with their status
(REGISTERED, UNREGISTERED or DECEASED)
CHAPTER-6
This configuration builds a local directory (also caller-id) and takes immediate effect,
no restart/ reset needed.
ephone-dn 1
number 1001
name Amit Bhagat
ephone-dn 2
number 1002
name Heena Bhagat
To create manual entries (up to 100 entries allowed on CME) for things like FAX,
external numbers, etc.
telephony-service
directory entry 1 1599 name Floor1 Fax
^-- Directory Number
telephony-service
no service local-directory
Each phone has a CFwdAll switch on the screen which can be used to forward all the
calls. This is from the user-perspective.
ephone-dn 1 dual-line
call-forward busy 1005 ! Forward incoming call to 1005 when this line (both
channels) is busy
call-forward noan 1005 timeout 25 ! Forward incoming call to 1005 when no-
answer for 25 seconds
telephony-service
call-forward max-length 4
call-forward max-length 0 ! Disables call-forwarding & greys out CFwdAll button
telephony-service
call-forward pattern 1 ! This enables all 4-digit extensions H.450.3 compatible
H.450.3 is an industry standard that solves hair-pinning problem. When an incoming
call is forwarded to another extension (say located geographically distant), the
forwarding phone takes responsibility of the call and hence the call is forwarded
through that phone. This is called hair-pinning and causes serious issues with voice
quality.
In case of H.450.3 support, the forwarding CME redirects the call directly to the
router supporting that forwarded extension and so the call doesnt go through the
forwarding phone.
telephony-service
transfer-system full-consult
transfer-pattern 1 ! Allows transfer to only 4-digit extension starting with 1
transfer-pattern 9.. ! Allows local-call, 9 to indicate PSTN call
ephone-dn 10
number 3001
park-slot
ephone-dn 11
number 3002
park-slot timeout 20 limit 3 recall
The last command signifies that if a call is parked at 3002 for more than 20 seconds,
recall back to the phone that parked. That particular call can be parked only 3 times
(or 60 seconds) before it is disconnected.
Use show ephone-dn park command to display configured call park-slots and their
status.
Scenario: There are 2 groups- Sales (2 people) and Accounting (1 person). Sales
people can answer their own groups call from their own phone. They should also be
able to answer Accounting group phone if need be.
ephone-dn 12
number 1101
name Sales_1
pickup-group 1200
ephone-dn 13
number 1102
name Sales_2
pickup-group 1200
ephone-dn 14
number 1103
name Accounting
pickup-group 1300
To answer Accounting group phone from Sales_1 or 2s phone, Sales people can
1) Press GpickUp button on the phone and dial Accounting persons DN
number. Also called Other-group pickup.
Configuring Intercom:
To configure intercom,
ephone-dn 30
number A100
intercom A101 label Manager
ephone-dn 31
number A101
intercom A100 label Assistant
ephone 10
button 2:30 ! Assigns DN to the button
ephone 11
button 2:31
Pressing the button, directly connects the phone at other end on the speaker but the
call is muted by default.
Configuring Paging:
Paging
- is one-way, speaker-based communication
- one IP phone can be a member of only one group
- maximum 10 IP phones allowed in a unicast group, no limit for
multicast group
- groups can be a member of a parent group
To configure paging,
ephone-dn 40
number 5500
paging
ephone-dn 41
number 5511
paging
ephone-dn 42
number 5512
paging
paging group 40,41 ! Groups 5500 and 5511 are members of parent group 5512
ephone 1
paging-dn 40
ephone 2
paging-dn 41
Scenario: Configure after-hours calling blocking from 5PM to 8AM for all calls.
Exempt Manager from any call blocking; exempt some phones using PIN (timeout 2
hours when idle, login clear after 11PM) and block 1900 numbers for all, 24x7.
telephony-service
after-hours day mon 17:00 08:00
after-hours day tue 17:00 08:00
after-hours block pattern 1 91900.. 7-24
after-hours block pattern 2 .T
login timeout 120 clear 23:00
ephone 1
after-hour exempt
ephone 2
pin 1234
NOTE: Users can login second time after 11PM.
Configuring CDRs:
CDR- Call Detail Records. It can be configured to store the logs in router RAM or to
store the records on the syslog server.
To configure the CME router to store router logs, from global configuration mode
logging buffered 512000 ! Assigned 512 Kbytes to store the logs on RAM
dial-control-mib retain-timer 10080 ! Logs retained for 7 days
dial-control-mib max-size 700 ! Maximum 700 records stored
telephony-service
moh music-on-hold.au
The CME GUI TAR file is needed from Cisco.com and extracted into flash.
ip http server
ip http secure-server
- Define the path for CME GUI files and also (local database user) authentication.
telephony-service
web admin system name NinjaAdmin secret 0 cisco
dn-webedit ! Allows DN editing from CME GUI.
time-webedit ! Allows Time editing from CME GUI
CHAPTER-7
Different Codecs:
1) G.711 64 kbps
2) G.729 8 kbps
3) G.729A 8 kbps
4) G.728 16 kbps
5) G.723 6.3 kbps
6) iLBC 15.2 kbps
Step 1: Number of Bytes per packet for G.711 Codec with 20 ms sampling size.
NOTE: A single voice packet by default, contains a payload of 20 msec of voice.
IP = 20 bytes
UDP = 8 bytes
RTP = 12 bytes
Total bytes per packet = voice payload + Ethernet Header + IP + UDP +RTP
= 160 + 20 + 20 + 8 + 12
= 220 bytes per packet
Total bandwidth = Packet size (= total bytes per packet) * packets per second
= 220 * (1000 ms/ 20 ms)
= 220 * 50
= 11000 bytes per second
= 11000 * 8 bits per second
= 88000 bits per second
= 88 kbps
In addition to digitizing voice, DSP resources are also used for conferencing,
transcoding, media termination point (MTP) and echo cancellations.
RTCP carries packet count, packet loss, packet delay and jitter statistics.
Trunking CME to other VOIP systems:
Advantages:
- Industry-standard
- Easy of configuration
- Mature and stable
Disadvantages:
- Binary messages makes it very difficult to understand and troubleshoot
- Peer-to-peer architecture can make complex configuration
Advantages:
- Simple, easy-to-understand messages
- Wide support across multiple vendors
Disadvantages:
- It is still an evolving standard
- It consumes more router processor and memory
Advantages:
- Centralized configuration on Call Agents
- Minimal local configuration on gateways
Disadvantages:
- Not widely supported
- Call Agent becomes single point of failure
Disadvantages:
- Cisco-proprietary
CHAPTER-8
FXS- Foreign Exchange Station. This interface/port is used to connect analog devices
like telephone, fax-machine, etc to the router.
E & M (Ear and Mouth)- This interface is used to connect to specific PBXs. It
mainly uses ground-start signalling.
2 types- 1) POTS dial-peer It is used for any analog connections including T1/E1. It
strips of any explicitly specified digits in a dial-peer.
2) VOIP dial-peer It is used for any digital connections with an IP address
Vision:
Legacy-voice router:
voice-port 1/0/0
signal loopstart
cptone AU
station-id name Amit
station-id number 3301
!
voice-port 1/0/1
signal loopstart
cptone AU
station-id name Heena
station-id number 3302
!
isdn switch-type primary-5ess
!
controller e1 1/0
pri-group timeslots 1-30
!
CME-router:
NOTE: By default, all the VOIP dial-peers use G.729 codec. If the codec dont
match on both ends, the call will fail and the router will return a re-order tone.
Wildcards:
1) . Any single dialled digit
2) + - Matches one or more instances of preceding digits.
3) [] Matches a range of digits
4) T Matches any number of digits (range 0-32)
5) , - Inserts one second delay between dialled digits
Digit Manipulation:
By default, POTS dial-peers automatically strips off any explicitly defined digits by
the destination-pattern command.
Forward digit- Allows all the rightmost justified digits to pass. (POTS dial-peer)
Ex. dial-peer voice 100 pots
destination-pattern 9[469]11
forward-digits 3
Digit strip- Using a no in front of the digit-strip command negates the auto-
stripping rule. (POTS dial-peer)
Ex. dial-peer voice 100 pots
destination-pattern 911
no digit-strip
num-exp- matches a particular pattern and changes to the desired one. (Global
configuration command)
Ex. num-exp 0 5000
num-exp 1 5001
voice translation-profile- This can be used for VOIP and POTS dial-peers.
(Global configuration command/s)
Ex. voice translation-rule 1
rule 1 /6/ /5/
exit
voice translation-profile PROF
translate called 1
exit
dial-peer voice 100 pots
translation-profile outgoing PROF
In this example, the router checks for every digit. Here, it checks for DNIS (Dialled
Number Identification Service aka dialled-number) and checks for all the digits of the
dialled number (incoming call) (digit 6 in this case), and as soon as it has a match, it
translates (5 here). Hence, 6544 translates to 5544.
The AIM-CUE module fits on the motherboard of the router while the NM-CUE
module fits on one of the slots on the router.
Once the CUE module is installed and powered up, the show ip interface brief
command shows the service interface as service-engine on the CME.
To connect the CLI of CUE service-module from CME, (from global configuration
mode)
Download the necessary software and license files on to the FTP server, then you can
either copy the files to the hardware platform and run the files locally or run the
software from the FTP server directly.
The CUE can be only upgraded (using software install upgrade command) to version
3.1 only if the current version is 2.3.4, otherwise it will require a clean install.
You can check the status using software install status command.
You can upgrade from version 2.3.4 using the command
After the installation of license file, the show software license command displays the
number of subscriber mailboxes supported, the number of GDM supported, the
platform (CCM or CME) supported, total mailbox capacity and the number of
languages supported.
It includes-
1) Hostname
2) Domain name
3) Primary and secondary DNS servers
4) Primary and secondary NTP servers
5) Time zone
6) Administrative credentials (username and password for CUE system
administration to login via web-based GUI)
ip http server
ip http path flash:
ip http authentication local
Step 2: Configure SIP dial-peers for CUE (voicemail, auto-attendant and AVT)
All the features point to CUE service-module (10.1.1.10). CUE only supports SIPv2
protocol and G.711 codec at this stage. VAD should be turned OFF.
telephony-service
voicemail 7000
web admin system username CMEadmin secret 0 cisco
The web-admin configuration is for CME web-administration via GUI. The CUE will
use these credentials to access CME GUI.
MWI is used by CUE to notify CME that a new message has arrived in subscribers
mailbox. The CUE does this by sending a static string of unique digits and appending
the extension number of the subscriber. The CME then discards the static string of
unique digits and uses the extension number to indicate message on the IP phone.
ephone-dn 19
number A41.
mwi on
!
ephone-dn 20
number A40.
mwi off
!
CUE GUI can be accessed from a web-browser using the URL
http://<cue_service-module_ip_address>
CUE Troubleshooting:
1) Using the show version command, check the compatibility between CME and
CUE softwares. Also check the presence of service-engine interface.
2) Using the show interface service-engine 0/1 command, check the status of
layer-1 and layer-2, and IP address.
3) Using the service-module service-engine 0/1 status command, check the
status of the module (steady-state) and version.
4) Ping the service-module from CME.
5) Check call routing by dial-peers using show dial-peer voice 7000 and debug
ccsip calls commands.
6) Check MWI operation using debug ephone mwi command.
7) From CUE, trace and log commands can be used.
- Device Properties-
IP Address, Hostname, System Time, HTTP Port, Users and
Passwords, Device Access (Telnet, SSH) and SNMP
- Ports -> Port Settings -> 1. Configuration Settings Tab- allows you to
enable and disable ports, set duplex and speed, and enable or disable PoE
negotiation.
2. Runtime Status Tab- shows what the port is
actually doing.
3) Monitor menu-
- Topology View-
Network Tab- Here you configure Voice VLAN and DHCP scope.
AA & Voicemail- Here you configure AA and Voicemail extension
numbers and their PSTN access numbers.
SIP Trunk- SIP Trunks are used to connect to other telephony devices
or SP.
Voice Features- Here you can enable all the voice features.
Dial Plan- Here you can configure number of extension digits and set
numbering plan.
Users- Here you associate users with phone and add new phones.
- Event Notification -> view event logs for all devices in the network.
- Critical errors are marked as Level 0 and 1.
- Errors are marked as level 2 or 3
- Warnings are marked as level 4
- Informational events are marked as level 5, 6 or 7
- System Messages -> allows to view system messages from all devices in the
network.
4) Maintenance menu- allows software upgrades (drag and drop), manage files
stored on flash memory, restart/ reset devices.