Posts Tagged ‘Unity Connection’

Forwarding calls back across a SIP trunk between CUCM and CME

Informational, Tips & Tricks | Posted by admin
Aug 25 2010

So lets say you have a Cisco Unified Communications Manager (CUCM) system with Unity or Unity Connection. You also have a remote site running on Callmanager Express (CME) with a SIP trunk to the CUCM as the primary gateway. To keep costs down, you decided to use your centralized unity system as the VM provider rather than purchase the Unity Express module for the router.
Here’s the problem: When you call an extension on the CME box and it rolls to voicemail, you get a fast busy.

If you do a debug, you will see the following messages:

Router# debug ccsip messages


SIP/2.0 302 Moved Temporarily
Via: SIP/2.0/UDP 192.168.1.10:5060;branch=4gsi4lsi84o57osh7j6ps
From: <sip:1000@192.168.1.10>;tag=91837ae4-cf98-d1ae-7f23-95fe870ab193-d4875345
To: <sip:5000@192.168.2.1>;tag=92FE84D7-CB6
Date: Wed, 25 Aug 2010 22:00:00 GMT
Call-ID: fe1edf80-c7519084-a9be7-5ff1bac@192.168.1.10
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-12.x
Content-Length: 0

This SIP message tells the CUCM that the number has been forwarded. By default, the CUCM will not know what to do with this and so will return a reorder tone.

This is an easy problem to fix, though probably hard to describe in a few words.
You could disable this SIP feature in IOS, but that would route all voice traffic for those users (to voicemail) out to the remote site and then back to the VM server. It works if your system doesn’t support this feature… but it’s not the best solution.

Instead we can just configure CUCM to reroute calls when it receives these messages.

Start by adding a new SIP profile if you use the Standard SIP Profile.
Go to : Device -> Device Settings -> SIP Profile
Click on Find and select the Standard SIP Profile
Click the Copy button to create a copy, then give the copy a new name. Something like Custom SIP Profile or Enhanced SIP Profile is fine or use your own naming standard.
Then before you save it, check the box that says Redirect by Application… this allows the CUCM system to process redirect messages on SIP devices using this profile.
Then click Save.

Next we go configure our SIP Trunk
Device -> Trunk
Click the Find button and click on your Trunk name.
Scroll all the way down. The second to the last line is your SIP profile. Change this to the custom profile we just created.
Lastly we need to tell the trunk where to reroute calls to… look a few lines farther up and you’ll see a Rerouting Calling Search Space field. Set that to your outgoing CSS. (Or a CSS that provides access to your VM or other required services)
Save the changes and Reset the trunk.

That’s it! The CUCM system will now process the SIP redirection messages and reroute the caller accordingly.

.wav File Mailbox Delivery in Unity Connection

Tips & Tricks | Posted by admin
Aug 12 2009

Since I’ve had several requests for more information on this, I thought I’d get back into my blogging by addressing this topic.
There are 2 ways to get this functionality. And I believe there are Pros and Cons to each approach. Both methods require that you have licensing on the system for IMAP access.

For Either Method :
First, create a new Class of Service in Unity Connection. Duplicate your default settings. Under ‘Licensed Features’ check ‘Allow Users to Access Voice Mail Using an IMAP Client’ and select ‘Allow Users to Access Message Bodies’.
Save the Class of Service. If you have sufficient licensing, you can just change the default Class of Service and skip the next step.
Next you will need to select which users will have this feature by selecting their Alias under Users and
changing ‘Class of Service’ to whatever you named the class you just created.
At this point you may need to change the Web Application password for the user account. Or at least set the password not to require changing at login. This is the password that will be used to access the server.

Method 1 : Configuring another account on the mail client
This is probably the easier of the two options to implement. But with multiple users it can also be the most time consuming.
Simple change the settings on the users email client.
Create a new account with the following settings :
Type : IMAP
Server : UnityConnectionIP
User Name : (Unity Alias)
Password : (Unity Alias Password)
Then you will probably want to configure rules that copy the incoming messges to the users inbox.
Copying is important since if you move it, the voicemail will be removed from the users phone as well.

Method 2: Forwarding voicemails to the primary mail server
This method is a little more difficult and requires an extra server. As it is more in-depth I’ll address it in my next post.

Cisco Unity Connection .wav file delivery

Third-Party Software, Tips & Tricks | Posted by admin
Apr 27 2009

Recently I was asked by a customer to deliver .wav files to the inbox of their mail server from a Unity Connection server.  Well, by asked I mean that the salesperson promised it to them and I had to find a way to deliver it.

I came up with an idea to do this… it didn’t work.  But the idea was sound, it just needed a little tuning to make it work right.

I used a Linux server with PHP and Postfix to make all the magic work.  It also helped that none of the customers used Unity Connection’s web client.

I created aliases on the Postfix server redirecting users to a custom script.  The script then logs into the Unity Connection system and retrieves the .wav file and retransmits it as a new message to a specified email address.

I’m still polishing it up a bit, but it’s fully functional and delivering .wav files to our inboxes as expected.  When I get it to a more flexible format I’ll release it on this site.  For now, if you are interested and don’t mind a ‘beta’ version of the software, let me know and I can provide you with a copy and instructions for use.