Share this page : facebooktwitterlinkedinmailfacebooktwitterlinkedinmail
Topology

 

  • CME: 192.168.5.254/24
  • CUE: 192.168.5.5/24
  • Gateway: 192.168.5.2
  • Voicemail number: 3999
  • MWI on: 8000
  • MWI off: 8001
  • Reception number: 1002
CME configuration

CME is sitting in 192.168.5.0/24 network, with ip 192.168.5.254.

  1. Router(config)#telephony-service
    
  2. Enter the command max-ephones max-num-phones in order to set the maximum number of IP phones to be supported by this platform.
    Router(config-telephony)#max-ephones 144
    
  3. Enter the command max-dn max-directory-numbers in order to set the maximum number of extensions that can exist in this platform.
    Router(config-telephony)#max-dn 500
    
  4. Enter the command no auto-reg-ephone in order to prevent the connection of any phone to the system.
    Router(config-telephony)#no auto-reg-ephone
    
  5. Enter the command load phone-type firmware-file in order to identify the firmware file that the IP phone uses to register in the system.
    Router(config-telephony)#load 7960 P0030700300
    
  6. Enter the command ip source-address ip-address in order to identify the IP address and port number that the Cisco CallManager Express router uses for IP phone registration. The default port is 2000.
    Router(config-telephony)#ip source-address 192.168.5.254
Activate IP Connectivity to Cisco Unity Express Software

Now you need to integrate Cisco Unity Express 2.2.2 to Cisco CallManager Express 4.0.

In order to do this, you need to create two interfaces so communication between Cisco Unity Express and Cisco Call Manager Express can take place. The first is an interface to the router that hosts Cisco CallManager Express which is previously set up in Configuring the Router Interfaces. The second is an interface that links together Cisco Unity Express and Cisco CallManager Express ports and IP addresses. Complete these steps in order to achieve this task:

  1. Enter the command enable in order to enter the EXEC mode.

    Router>enable
    
  2. Enter the command configure terminal in order to enter the configuration mode.

    Router# configure terminal
    
  3. Enter the command interface service-engine slot/unit in order to enter the Cisco Unity Express interface configuration mode.

    Router(config)#interface service-engine 1/0
    
  4. Enter the command ip unnumbered type number in order to specify the interface type and number for the Cisco IOS router.

    Router(config-if)#ip unnumbered fastethernet 0/0.1
    
  5. Enter the command service-module ip address cue-ip address subnet-mask in order to specify the IP address of the Cisco Unity Express module interface. The IP must be on the same subnet as the Cisco IOS router that hosts Cisco Unity Express.

    Router(config-if)#service-module ip address 192.168.5.5 255.255.255.0
    
  6. Enter the command service-module ip default-gateway ip address in order to specify the IP address of the Cisco IOS router that hosts Cisco Unity Express.

    Router(config-if)#service-module ip default-gateway 192.168.5.2
    

    Note: These steps only work if proxy-arp is currently enabled on the interface (FastEthernet0/0.1) referenced as unnumbered in the Service-Engine configuration. Proxy-arp is enabled by default on Ethernet interfaces, and the operational status of proxy-arp on the interface can be verified if you issue Show ip interface FastEthernet0/0.1 . If proxy-arp is disabled, it can be re-enabled if you issue ip proxy-arp under the interface configuration. Or you can configure it on different network with routing.

  7. Enter the command exit in order to finish the interface configuration.

    Router(config-if)#exit
    
  8. Enter the command ip route ip-address mask service-engine slot/number in order to establish a static route to the Cisco Unity Express module.

    Router(config)#ip route 192.168.5.5 255.255.255.255 service-engine 1/0
    
  9. Enter the command exit in order to finish the configuration.

    Router(config)#end
    

    Note: Although there is an enable mode in the Cisco Unity Express module CLI, Cisco Unity Express has no password capability. Any network administrator with access to enable mode on the router can access the Cisco Unity Express CLI. There is no user ID or password control on the Cisco Unity Express CLI. Access is controlled via the router. If logging is required, you need to set up the router with AAA/RADIUS monitoring of login access.

Configure Dial Peers for Cisco CallManager Express Phones to Call Cisco Unity Express Voicemail

A dedicated dial peer is required to facilitate communication between Cisco CallManager Express and Cisco Unity Express. The destination-pattern under the dial peer assigns a set of phone numbers dedicated to applications such as Cisco Unity Express. One thing that you need to consider is that the voicemail number must be within the destination-pattern range of the dial peer, and the ephone-dns must be configured for call forwarding to the voicemail number which triggers the use of the dial peer. The Cisco Unity Express dial peer must use Session Initiation Protocol (SIP) for call sessions and for the translation of dual tone multifrequency (DTMF) tones into SIP notify messages. A voice activity detection (VAD) must be switched off and a codec must be designated.

  1. Enter the command dial-peer voice tag voip in order to define a dial peer with a method of voice encapsulation.

    Router(config)#dial-peer voice 2 voip
    
  2. Enter the command destination-pattern string in order to specify the prefix or the full E.164 number to be used for the dial peer.

    Router(config-dial-peer)#destination-pattern 2...
    
  3. Enter the command session protocol sipv2 in order to specify SIP as the session protocol for calls between host Cisco CallManager Express router and Cisco Unity Express module.

    Router(config-dial-peer)#session protocol sipv2
    
  4. Enter the command session target ipv4:destination-ip address in order to designate a network-specific address to receive calls from a voice over IP dial peer.

    Router(config-dial-peer)#session target ipv4:192.168.5.5

     

  5. (With SIP trunk) you will need to specify the outbound proxy:
     
  6. Router(config-dial-peer)#voice-class sip outbound-proxy ipv4:192.168.5.5
  7. (With SIP trunk) you will need to configure back to back user agent:
  8. Router(config-dial-peer)#b2bua
  9. Enter the command dtmf-relay sip-notify in order to forward DTMF tones using SIP notify messages.

    Router(config-dial-peer)#dtmf-relay sip-notify
    
  10. Enter the command codec codec in order to specify the voice codec rate of speech for a dial peer.

    Router(config-dial-peer)#codec g711ulaw
    

    Note: Always ensure that there is no codec mismatch as any mismatch might result in inbound and outbound call failure.

  11. Enter the command no vad in order to disable VAD for the calls that use a particular dial peer.

    Router(config-dial-peer)#no vad
    
  12. Enter the command exit in order to finish the configuration.

    Router(config-dial-peer)#end
    
Configure Voicemail Access

The Cisco CallManager Express configuration must include the creation of a voicemail number that is within the range of the destination pattern for the dial peer that you previously created. The voicemail number is the telephone number that is dialed when the Messages button on a Cisco IP phone is pressed, or a busy or unanswered call is forwarded to voicemail. Complete these steps in order to configure your voicemail phone number. In addition, ephone-dns must be configured to forward unanswered or busy calls to the voicemail number.

  1. Enter the command telephony-service in order to enter the telephony-service configuration mode.

    Router(config)#telephony-service
    
  2. Enter the command voicemail phone-number in order to define the number that is dialed when the Messages button is pressed.

    Router(config-telephony-service)#voicemail 3999
    
  3. Enter the command exit in order to finish the configuration.

    Router(config-telephony-service)#exit
    
  4. Enter the command ephone-dn dn-tag in order to enter the ephone-dn configuration mode to modify the extensions previously created.

    Router(config)#ephone-dn 11
    
  5. Enter the command call-forward busy directory-number in order to configure the call forwarding so that incoming calls to a busy extension are forwarded to voicemail.

    Router(config-ephone-dn)#call-forward busy 3999
    
  6. Enter the command call-forward noan directory number timeout seconds in order to configure the call forwarding so that incoming calls to a no-answer extension are forwarded to voicemail.

    Router(config-ephone-dn)#call-forward noan 3999 time 10
    
  7. If the ephone-dn is a dual line or oct line, and if user is busy on one line, tell the ephone don’t try other channel and just forward to the voicemail

    Router(config-ephone-dn)#huntstop channel 1
    

    Note: Repeat steps 4-7 on all the Cisco IP Phones connected to the system.

Configure MWIs

The MWI mechanism turns on the light indicator on Cisco IP phones in order to inform the user that there is a voicemail message waiting. The MWI is initiated after someone leaves a voicemail message and is turned off after the user listens to voicemail.

There are three mechanism to make this work:

SIP Outcall Method, SIP Subscribe Notify, SIP Unsolicited-Notify ( see https://www.cisco.com/c/en/us/support/docs/unified-communications/unity-express/211258-Configure-and-Troubleshoot-CUE-MWI-Mecha.html)

Here we will configure SIP Outcall.

Create two ephone-dns, one with the MWI feature on (for example, ephone-dn 8000) and the other with the MWI feature off (for example, ephone-dn 8001) in order to have the MWI mechanism work.

When an extension receives a call (ext. 1001) and is not answered, the IP phone forwards the call to voicemail where the person leaves a message. Once the message is recorded, Cisco Unity Express places an MWI notification call to the MWI processing ephone-dn (ext. 8000) and appends the extension (ext. 1001) as the calling party ID for the notification call. The number dialed is 80001001. The light turns on the extension (ext. 1001).

When the user of the extension (ext. 1001) listens to all the voicemail, Cisco Unity Express places an MWI notification call to the MWI processing ephone-dn (ext. 8001) and appends the extension (ext. 1001) as the calling party ID for the notification call. The number 80011001 is dialed. After the user listens to voicemail, the light turns off. This is the procedure to configure the MWI ephone-dns:

  1. Enter the command enable in order to enter the EXEC mode.

    Router>enable
    
  2. Enter the command configure terminal in order to enter the configuration mode.

    Router#configure terminal
    
  3. Enter the command ephone-dn in order to create the extensions for the Cisco IP phone lines.

    Router(config)#ephone-dn 14
    
  4. Enter the command number number in order to associate a telephone or extension with the ephone-dn.

    Router(config-ephone-dn)#number 8000....
    
  5. Enter the command mwi [on|off] in order to configure specific ephone-dns to receive MWI notification from an external voicemail system.

    Router(config-ephone-dn)#mwi on
    
  6. Enter the command end in order to finish the configuration.

    Router(config-ephone-dn)#end
    

    Note: Repeat the same procedure in order to create an extension 8001 with the MWI off.

  7. Router#configure terminal
    
  8. Enter the command ephone-dn in order to create the extensions for the Cisco IP phone lines.

    Router(config)#ephone-dn 15
  9. Enter the command number number in order to associate a telephone or extension with the ephone-dn.

    Router(config-ephone-dn)#number 8001....
    
  10. Enter the command mwi [on|off] in order to configure specific ephone-dns to receive MWI notification from an external voicemail system.

    Router(config-ephone-dn)#mwi off
    
  11. Enter the command end in order to finish the configuration.

    Router(config-ephone-dn)#end

     

  12. configure dial peer for the MWI:
    dial-peer voice 3 voip 
    session protocol sipv2 
    incoming called-number 800[01]....
    dtmf-relay sip-notify 
    codec g711ulaw 
    no vad

     

On the CUE

under ccn application ciscomwiapplication aa: change below two lines:

parameter "strMWI_OFF_DN" "8001"

parameter "strMWI_ON_DN" "8000"

under

ccn subsystem sip:
 gateway address "192.168.5.254" 

This address should match the ip source-address configured under telephony-service, not the actual network default gateway.

Router(config-telephony)#ip source-address 192.168.5.254

Configure the Voicemail Application

From now on, most of the configurations need to be made on the actual NM-Cisco Unity Express module, which means that a connection needs to establish from the router to module. The Cisco Unity Express has EXEC and configuration modes that operate similarly to the EXEC and configuration modes for Cisco IOS CLI commands. Issue the service-module service-engine 1/0 session command in order to enter Cisco Unity Express. This is the procedure to configure voicemail:

  1. Enter the command service-module service-engine 1/0 session in order to connect to the module.

    Router#service-module service-engine 1/0 session
    

    If you experience some issue such as refused, try service-module service-engine 1/0 session clear, then type command again.

  2. Enter the command enable in order to enter the EXEC mode.

    se-172-22-1-155>enable
    
  3. Enter the command configure terminal in order to enter the configuration mode.

    se-172-22-1-155#configure terminal
    
  4. Enter the command ccn application voicemail in order to enter the application configuration for voicemail.

    se-172-22-1-155(config)#ccn application voicemail
    
  5. Enter the command description “text” in order to enter a description of the application.

    se-172-22-1-155(config-application)#description "Cisco Voicemail"
    
  6. Enter the command maxsessions number in order to specify the number of subscribers who can access this application simultaneously. Refer to Sharing Ports Among Applications and Triggers for more information on the value.

    se-172-22-1-155(config-application)#maxsessions 4
    
  7. Enter the command exit in order to finish the application configuration.

    se-172-22-1-155(config-application)#exit
    
  8. Enter the command exit in order to finish the configuration mode.

    se-172-22-1-155(config)#exit
    
Configure Auto-Attendant Application

The Auto-Attendant application permits the system to have an auto operator answer the calls and gives the caller different options to choose from a menu. For example, if the Cisco Unity Express systems has an auto attendant, the caller listens to a welcome greeting and then they are able to choose the option in order to be transferred to a specific department (for example, sales, HR and so forth) or a specific person (for example, John Smith, Alex Lewis and so forth). This procedure provides a configuration for Auto-Attendant:

  1. Enter the command service-module service-engine slot/number session in order to connect to the module.

    Router#service-module service-engine 1/0 session
    
  2. Enter the command enable in order to enter the EXEC mode.

    se-172-22-1-155#enable
    
  3. Enter the command configure terminal in order to enter the configuration mode.

    se-172-22-1-155#configure terminal
    
  4. Enter the command ccn application autoattendant in order to specify the application to configure.

    se-172-22-1-155(config)#ccn applicatio autoattendant
    
  5. Enter the command description “text” in order to enter a description of the application.

    se-172-22-1-155(config-application)#description "Cisco Auto-Attendant"
    
  6. Enter the command maxsessions number in order to specify the number of callers who can access this application simultaneously. Refer to Sharing Ports Among Applications and Triggers for more information on the value.

    se-172-22-1-155(config-application)#maxsessions 4
    
  7. Enter the command parameter “name” “value” in order to specify the parameter for the application.

    se-172-22-1-155(config-application)#parameter "operExtn" "1001"
    

Configure SIP Triggers for Applications

After the voicemail and Auto-Attendant are configured, the system must be configured to start the voicemail, and Auto-Attendant applications when a specific signal or trigger is invoked. The trigger is a telephone number. When a caller dials a specified telephone number, the SIP subsystem starts the voicemail or Auto-Attendant. This procedure configures SIP triggers for voicemail:

  1. Enter the command service-module service-engine slot/number session in order to connect to the module.

    Router#service-module service-engine 1/0 session
    
  2. Enter the command enable in order to enter the EXEC mode.

    se-172-22-1-155>enable
    
  3. Enter the command configure terminal in order to enter the configuration mode.

    se-172-22-1-155#configure terminal
    
  4. Enter the command ccn trigger sip phonenumber number in order to specify the telephone number that acts as the trigger configuration mode. The number value can match one of the patterns configured in the destination-pattern field of the SIP dial peer that points to Cisco Unity Express.

    se-172-22-1-155(config)#ccn trigger sip phonenumber 3999
    
  5. Enter the command application string in order to specify the name of the application to start when the trigger is entered.

    se-172-22-1-155(config-trigger)#application voicemail
    
  6. Enter the command enabled in order to enable the trigger.

    se-172-22-1-155(config-trigger)#enabled
    
  7. Enter the command maxsessions number in order to specify the maximum number of callers that the application can handle simultaneously. Refer to Sharing Ports Among Applications and Triggers for more information on the value.

    se-172-22-1-155(config-trigger)#maxsessions 4
    
  8. Enter the command exit in order to finish the trigger configuration.

    se-172-22-1-155(config-trigger)#exit
    

    Note: Repeat this process for the Auto-Attendant and promptmgmt applicaton.

Configure Users

Users and groups can be created to use the system. All the people who have extensions and access voicemail must be users. An administrator user is created by default when you first access Cisco Unity Express. This administrator cannot be assigned a voice mailbox. However, the administrator is able to configure the system, which includes the voicemail and Auto-Attendant application. This procedure creates a user and assigns a telephone number:

  1. Enter the command service-module service-engine slot/number session in order to connect to the module.

    Router#service-module service-engine 1/0 session
    
  2. Enter the command enable in order to enter the EXEC mode.

    se-172-22-1-155>enable
    
  3. Enter the command username userid create in order to create a subscriber with the specified user ID.

    se-172-22-1-155#username John create
    
  4. Enter the command configure terminal in order to enter the configuration mode.

    se-172-22-1-155#configure terminal
    
  5. Enter the command username userid phoneumber number in order to specify the extension for this subscriber.

    se-172-22-1-155(config)#username John phonenumber 1002
    
  6. Enter the command exit in order to finish the configuration.

    se-172-22-1-155(config)#exit
    

    Note: Repeat this process in order to register as many users as you need, which does not exceed the limit supported the Cisco Unity Express system. Make sure you assign a password and a pin to the administrator user in order to be able to configure Cisco Unity Express and make changes to it. Refer to Adding and Modifying a User for more information on passwords and pins.

Configure Mailboxes

Assign a voice mailbox to a subscriber in order to configure a Cisco Unity Express database. A mailbox subscriber is a user created in the previous section. Not all the subscribers or extensions require a voice mailbox such as an administrator user. Consider the function or purpose of the subscriber or extension before you assign the mailbox in order to use mailboxes efficiently.

Voicemails are not compressed and use the G.711 codec. Each second of G.711 audio equals 64 Kbits/second, so 8 K bytes/second converts into 480 K bytes/minute. This list shows a storage capacity summary for each Cisco Unity Express module type:

  • Cisco Unity Express Advanced Integration Module (AIM-CUE)—14 hours

  • Cisco Unity Express network module (NM-CUE)—100 hours

  • Cisco Unity Express Enhanced Capacity (NM-CUE-EC)—300 hours

In this configuration, you create a personal mailbox. A personal mailbox is assigned to a specific subscriber and is accessible only by this subscriber. When a caller leaves a message in this mailbox, the message waiting indicator (MWI) light turns on. Complete these steps in order to configure voice mailboxes:

  1. Enter the command service-module service-engine slot/number session in order to connect to the module.

    Router#service-module service-engine 1/0 session
    
  2. Enter the command enable in order to enter the EXEC mode.

    se-172-22-1-155>enable
    
  3. Enter the command configure terminal in order to enter the configuration mode.

    se-172-22-1-155#configure terminal
    
  4. Enter the command voice mailbox owner name in order to create a mailbox for the name value.

    se-172-22-1-155(config)#voice mailbox owner John
    
  5. Enter the command description “text” in order to give a description of the mailbox.

    se-172-22-1-155(config-mailbox)#description "John's Mailbox"
    
  6. Enter the command enable in order to activate the new mailbox or reactivate the disabled mailbox.

    se-172-22-1-155(config-mailbox)#enable
    
  7. Enter the command expiration time days in order to set the number of days for which messages are stored in the mailbox. The default is 30 days.

    se-172-22-1-155(config-mailbox)#expiration time 10
    
  8. Enter the command mailboxsize seconds in order to specify the storage size of the mailbox in seconds.

    se-172-22-1-155(config-mailbox)#mailboxsize 300
    
  9. Enter the command messagesize seconds in order to specify the maximum size of an incoming message, in seconds.

    se-172-22-1-155(config-mailbox)#messagesize 120
    
  10. Enter the command end in order to finish the mailbox configuration.

    se-172-22-1-155(config-mailbox)#end
    
  11. Enter the command exit in order to finish the configuration.

    se-172-22-1-155(config)#exit
    

    Note: Repeat this procedure for every user that needs a voice mailbox.

With SIP trunk
  1. Enter the command enable in order to enter the EXEC mode.

    Router>enable
    
  2. Enter the command configure terminal in order to enter the configuration mode.

    Router#configure terminal