Networking

Create Custom Music on Hold for Cisco UCME

cisco_voip_phones2

Here’s one from my personal tip jar.  This is well documented on Cisco’s website, but sometimes it’s just nicer to have this type of info in bite-sized portions.

As nice as the canned music on hold files are that come with Cisco Unified Communications Manager Express, sometimes you just want to add that personal touch.

A custom MOH file format must be 8khz 8-bit mono u-Law audio in WAV or AU.

Tools

  • Sound editor (I prefer Audacity, as it’s free and does a great job)
  • Sound recording (create your own or use your favorite song(s))

Prepare the Sound File

I’m not going to go into how to use Audacity, for that you should check out their well documented website.  However, here are some tips related to preparing your sound file for use as a music-on-hold file.

  • Adjust your sound levels prior to saving/converting your file, as you can’t adjust audio levels in UCME.  Often what sounds great on your computer speakers can be blaring at best or ear-drum shattering at worst playing through the phone system.
  • Encoding options:
    • Output format:  .au or .wav
    • Codec:  uLaw
    • Sample Rate:  8000 or 8khz
    • Channels:  Mono

moh file conversion1

When you have your sound file prepared, upload your MOH file via TFTP to the router’s flash file system.  I use TFTPD32 for this.

Configuring UCME

Lastly, you’ll need to configure UCME to use the uploaded file for your music on hold.

Configuration Steps:

1. enable
2. configure terminal
3. telephony-service
4. moh filename
5. multicast moh ip-address port port-number [route ip-address-list]
6. exit
7. ephone phone-tag
8. multicast-moh
9. end


Recover from IOS Armageddon

Armageddon2

Ok, maybe it’s not that extreme, but losing power to a Cisco router or switch, while performing an IOS upgrade, after you’ve deleted your existing IOS can be a headache.  While not a disaster, you can plan on spending about an extra 45 minutes or so to recover.  Here’s the lowdown:

Summary

You’ll need to upload a new IOS image using the Xmodem or Ymodem protocol, which is way slower than TFTP or other methods (about 50 times slower!).

What You’ll Need

  • Cisco console cable
  • Terminal emulator w/Xmodem or Ymodem support
  • IOS image of choice

Step 1

Configure the router for the fastest connection possible (115kbps) using the “confreg” command, as shown here.  Also, configure the speed of the serial port on the computer that you are connecting to the device with to the same speed.

PortSettings

Step 2

Upload image using a terminal emulator with support for Xmodem or Ymodem.  If you’re using Windows XP, you can use hyperterminal in combination with telnet.  I prefer to use “SecureCRT“, but if anyone has any other recommendations, don’t be shy to comment.  Be prepared for this process to take up to an hour for an 15 MB IOS image.  If you’re looking at a couple of hours for the same file size, most likely you don’t have your transfer or serial port speed set correctly (see step 1).

Step 3

Reload router using uploaded IOS image.  Don’t forget to change the speed settings on the network device and computer back to the default (9600kbps).



Exchange 2010: Simplify OWA URL

Ex2010 logo imageExchange Outlook Web Access is a wonderful feature, but directing users to access it on their own can be a patience testing proposal if you’re not using URL redirection.

For example: you’ve installed Exchange 2010, configured all the appropriate roles, including the CAS (Client Access Server; responsible for OWA), and deserve a hero’s welcome, or at least a pat on the back. You then send an email to staff telling them that they can access webmail from the following public URL – https://webmail.domain.com/owa; easy enough right? Wrong! A few days later, calls come streaming in with users attempting to access OWA using incorrect URL’s: http instead of https, forgetting to append /owa to the URL, etc.

Well you can clear all of this up and make it transparent to the user, and they’ll never know you did it; it will just work.

With Exchange 2010 and IIS 7, the process for redirection has been greatly improved over IIS 6. Before, I would place a custom page in the “wwwroot” directory that would automatically redirect the user if they didn’t use “https” or if they didn’t append the “/exchange” (Exchange 2000/2003) or “/owa” (Exchange 2007) directory. This was a combination of customizing the “403.4″ error and the home directory settings (maybe a later blog post, if requested).

In IIS 7, you only need a few mouse-clicks and your proper OWA URL to accomplish the same thing.


IIS7_ss1

Open IIS 7 manager and navigate to your “Default Web Site“. In the options panel, open “HTTP Redirect










Enter the proper OWA URL (i.e, https://webmail.domain.com/owa), select the “Only redirect requests to content in this directory (not subdirectories)” checkbox, and click “Apply“.


Uncheck URL RedirectThis will apply the redirection to ALL subdirectories of the default site, so you’ll need to click on each subdirectory/virtual directory and remove the redirection by unchecking “Redirect requests to this destination“. We only want to redirect the top level of the default site.

Note: The Exchange, Exchweb, and Public virtual directories should redirect to /owa.  This is for coexistence scenarios with older versions of Exchange (2000/2003).  There should already have been redirect settings in place for this, just make sure that these settings were not affected by adding the redirect above.


ssl settingsNext, we want to remove the SSL requirement from the default site. Yes we still need to use SSL to access OWA, but if we require it at this level, any user that enters the OWA URL without “https” will receive an error message.

ssl settings_detail

Since any changes made to the “Default Web Site” propagate down to subdirectories, as in the “HTTP Redirect” example above,  review the following subdirectories and make sure that “Require SSL” is enabled:

  • Autodiscover
  • ecp
  • EWS
  • Microsoft-Server-ActiveSync
  • owa
  • Rpc
  • RpcWithCert

Finally, don’t forget to restart the website and test.

Restart WebSite





There are some scripts floating out online that will perform these steps for you, such as this one, but I have not had a chance to test, so proceed with caution….and then let me know how it turned out!

Enable WiFi in Ubuntu 9.10 (Karmic Koala)

ubuntu-logo1I recently took the plunge and decided to setup a dual-boot configuration on my laptop.  I’m already running Windows 7, which is excellent by the way, but my geekier side has always dreamed of using a linux distribution regularly.  Ubuntu is one of the friendliest Linux distros out there, and with all of the buzz that the latest version (Karmic Koala) has been getting, I decided to go for it.

After an extremely smooth (Windows 7 smooth) install, my wired ethernet connection worked right from the start; but not so lucky with my wireless connection;  my wireless adapter was not detected during install.  If I’m going to use this regulary, my wifi connection HAS TO WORK!  I have a basic knowledge of Linux, nowhere near professional or expert, but I figured that with Ubuntu being user-friendly there has to be a fairly easy fix, especially since I am using a Dell because Dell is supposed to be Linux-friendly.

Disclaimer: this worked for my specific setup and has not been tested with other systems, but hopefully the process is general enough to help out others.  There are a lot of articles that are more technical, but my goal was to resolve this with making as few changes to the internals of Ubuntu as possible, as well as to avoid making any dumb newbie CLI mistakes that would ruin my install.

My setup:

Dell Latitude D520

Dell WLAN 1390

    1. Download Windows drivers for your WLAN adapter, extract to a directory of your choosing

    2. Install ‘Windows Wireless Drivers’ (Ndiswrapper driver installation tool) using the new ‘Ubuntu Software Center’WindowsWirelessDrivers

    3. Open the tool above (System/Administration/Windows Wireless Drivers) and ‘Install New Driver’ by pointing to the appropriate ‘.inf’ file, which should be located in the directory you extracted your WLAN drivers to from step 1.WWD

    4. Download, install, and activate the appropriate proprietary Linux drivers for your WLAN device (System/Preference/Hardware Drivers). In my case, there were no available drivers listed until I followed steps 1-3 above.  FYI, the download and install process took a while in my case, just be patient.

    5. Connect to your wifi and enjoy!Wifi

Better Tag Cloud