Partilhar via


Configuring Exchange 2013 Unified Messaging with a PBX (Test Lab Setup)

 

 

This blog is a step by step guide on Exchange Server 2013 Unified Messaging Integration with a PBX System. We will be configuring Exchange 2013 Server to work with an existing PBX and enable Voicemail, Auto attendant and Voicemail functionality.

Technorati Tags: Exchange UM,Unified Messaging 2013,Testing Unified Messaging,UM Lab,Unified Messaging Lab,Exchange 2013 UM Lab

The entire exercise has be carried out in a Lab environment. Please Note that this is NOT intended to be used for Production deployments as it is primarily directed towards testing UM functionality in Exchange 2013.

We have divided the blog into below parts,

· Ensuring host machine connectivity to Virtual Machines.

· Installing the PBX Server.

· Configuring PBX settings.

· Installing Softphone and registering it to the PBX Server.

· Configuring UM Settings on the Exchange 2013 Server and Enabling users.

· Enabling User for Unified Messaging & Testing voicemail, Auto attendant and Outlook Voice access.

 

Downloads

SNOM PBX - https://skydrive.live.com/redir?resid=F60C05CB0A044323!523&authkey=!ACnGqBzNLqn02q0

3CX IP Phone - https://onedrive.live.com/redir?resid=F60C05CB0A044323\!453\&authkey=\!AKcwvM28vEomqR0\&ithint=file%2c.iso

 

 

OUT OF SCOPE

Installation of Domain Controller, Exchange Server 2013 and Creating Hyper V VM’s is not in scope for this document.

LAB ENVIRONMENT

Virtual Machine Role Memory Operating System IP Address
DC1.contoso.com Domain Controller 1 GB Windows Server 2008 R2 SP1 10.0.0.1
E2k13.contoso.com Exchange Server 2013 with UM 4 GB Windows Server 2008 R2 SP1 10.0.0.3
SNOMPBX.contoso.com PBX Server 1 GB Windows Server 2008 R2 SP1 10.0.0.5

 

Background on Unified Messaging.

Exchange 2013 Unified Messaging is no longer a separate server role. It’s now a component of the voice-related features offered in Exchange 2013. It is installed on the CAS and Mailbox roles. To learn more about UM in Exchange 2013 please refer What’s new in Unified Messaging 2013 .

 

Ensuring Host Machine Connectivity to Virtual Machine

 

          a) This step is essential to make the Softphone register the PBX Virtual machine and leave Voicemails or Calling the OVA(Outlook voice access), Auto attendant. We will ensure out 10.0.0.x network should be able to talk to the Host machine network.

         b) On the Host machine, in the Hyper V Console right on any virtual machine in the 10.0.0.x network and select “Settings”. Make a note of the “Local Area Connection 2- Virtual Network”

pic1

        c) Open Network Connections on the Host machine and find out the NIC that lists this name. We will be assigning an address in the 10.0.0.x to it.

pic2

         d) Go to the properties of this NIC and assign an IP address. I have assigned 10.0.0.67 in my lab.

pic3

         e) The next step is to verify connectivity between my host and Virtual Machine. We will ping the SNOMPBX VM IP 10.0.0.5. You should get a successful reply.

pic5

         f) The host machine is now ready to connect to PBX. Let’s Move on to installing the SNOM PBX Server. Do not proceed to the next step without ensuring connectivity between Host and VM Networks as it is crucial for the success of this exercise.

 

Installing the PBX Server.

        a) Mount the SNOM iso in the VM dedicated to host the PBX. SNOM PBX can be installed on a Windows Server 2008 R2 SP1 machine and the installation is pretty straightforward. The iso is just 17.9 MB.

        b) Extract the zip file and run snomone.exe

   pic6

 

         c) Follow the steps in the installer and you should be finished.

   pic7

 

         d) On the SNOMPBX server open a browser and go to https://localhost/ . If you see the login screen then installation is successful.

    pic8

 

       e) Since this is a trail version, you need to activate the free license to allow the softphones to register. To do that watch out for the Exclamation mark on the Home page and click on the link in the screenshot below.

pic9

         f) Select “User Evaluation Copy” and click save.

pic10

 

        g) We have now successfully installed the PBX Server. Let’s move on and dig into its configuration.

 

Configuring PBX settings.

a) We have the PBX installed. Now we will be creating a Trunk, Extension and register a softphone to the SNOM Server.

b) Click Home on the Snom page and click on “Trunks”

c) In the new Trunk field, Type in a Trunk name, e.g. : Exchange UM and Click “Create” .

pic11 

pic12

 d) You will see Exchange UM listed like in the screenshot above. Click on it and here’s where we would be configuring the main PBX settings.

e) Type in the settings as mentioned below and in the screenshot

 

Type – SIP Gateway

Trunk Destination – Generic SIP Server

Domain – IP Address of the Exchange UM Server

*Proxy Addresssip:ExchangeUM.domain.com:5060;transport=tcp

*note: The proxy address field is important. The sip field contains the Exchange server FQDN. Take care to ensure there is no typo in this field as an incorrect entry would cause issues.

pic13

f) The other fields can be safely ignored. Click on Save at the bottom of the page.

g) Click on Dial Plans at the Top of the page and create a dial plan with the name “Exchange”.

pic14

pic15

 

h) Click on “Edit” at the right side of the Dial plan that you create and you will get a page similar to the screenshot below,

pic16

 

i) Select the Trunk that we created earlier (ExchangeUM in this example) and input * and * in the Pattern and Replacement fields. Click on “Save”.

image

 

j)The unassigned Trunk for some reason does not go away, so we have to change the priority of our Trunk dial plan to a lower value.

image

 

k) We have the Trunks and Dial plans created. Now, create the extension which will be used to login to the softphone. Click on “Accounts” at the Top of the webpage.

l) You would see default extensions listed there. We will edit those extensions and create our own which would then be used to logon to the softphone.

image

m) Click on one of the extensions and edit the following fields, once done click “Save”. Follow the same procedure to create more extensions.

Account Number – 4001 (example extension)

Dial Plan – Exchange (Created in step g )

First Name & Last name – Name for the extension (I have named this similar to my UM enabled Mailbox account)

SIP Password – Key in any simple password

Web Password – Same as above. I have kept both the passwords same for this example.

image

 

n) Edit the Settings and make the SNOM PBX aware to send any unanswered calls to an External Voicemail System.

 

o) Click on “Settings” in the top of the PBX webpage.

image

 

p) Scroll down to “Voicemail/Mailbox” Settings and edit the “External Voicemail System” field to ‘$u’ .

Note – I’ m not quite aware what $u settings implies. This was taken from the SNOM Configuration guide.

q) Also change the settings in “Maximum voicemail” duration and “Voicemail size”.

image

r) Snom system is now configured. Proceed with installing the softphone on the host machine.

 

Installing Softphone and registering it to the PBX Server.

a) We will use the 3CX free softphone for this article. Download the msi from https://www.3cx.com/voip/softphone/ on the Host machine as this is where this phone would be running.

b) Follow the wizard to complete installation.

image

image

image

c) Keep the “Launch 3CXPhone” option selected and click on finish. This will open the softphone and present you with below options,

image

 

d) Click “Create Profile” and click “New”

image

 

e) Add the following settings to configure the Softphone.

 

    Account Name: 4001 (Extension name created in SNOM or Display name of the account)

    Caller ID: 4001 (You can also type your account name here)

    Extension: 4001

    ID: 4001

    Password: Password created during Extension creation in the PBX Console.

   Specify the IP of your PBX/SIP Server – I am in the office – Local IP: IP address of the SNOM Server.

image

 

f) Click on OK and you should see the Softphone status change to “On Hook” which means the Phone has successfully registered to the PBX Server.

image

Note – The success of this operation is dependent on connectivity between your PBX VM and Host.

 

Configuring UM Settings on the Exchange 2013 Server and Enabling users

 We now move on to Exchange server and configure the UM Settings. We would first be creating a Dial plan followed by configuring the Auto attendant and Subscriber access numbers.

If you are new to UM Terminology, refer the below link which gives a short description on the terminologies used in Exchange Voicemail.

https://technet.microsoft.com/en-us/library/ee633462(v=exchg.150).aspx

 

a) Logon to the Exchange 2013 server. Open the Exchange Control Panel by using the link https://servername.domain.com/ecp . Login using Admin credentials.

image

b) Click on Unified Messaging and click on the “ + ” sign to create a new Dial Plan.

image

 

c) Add the following fields.

 

Extension Length: 4 Digits (As we have created 4 digit extensions in SNOM).

Dial Plan type: Telephone extension.

VOIP security mode: Unsecured.

Country/Region code: Not really useful in our demo as we are going to test internal extensions only.

image

 

c) Click “Save” and the dial plan is created. We will now edit the Dial plan properties (See highlighted area) to create a Subscriber Access (Outlook voice access) number & an Auto Attendant number.

image

d) Click on “Configure” . We will configure Subscriber access (Outlook Voice Access) and create a Dialing rule group.

e) Click on “Outlook Voice Access” and add a number. We are using 4 digit numbers for this and the Auto attendant for simplicity. You can user any number that you want. You will need to ensure Dial plans are created in PBX to route the calls to Exchange.

image

 

f) Click on “dialing rules” and click “+” below “In-country/region dialing rules”.

image

 

g) Add the following fields to create a dialing rule and click “OK   after filling the below fields..

Dialing rule name: Allow all calls

Number Pattern to Transform: *

Dialed Pattern: *

Comment: Allow all calls

Note - By adding * we are allowing all calls to flow if this group is applied.

image

 

h) Follow the same procedure to create a rule group for “Authorized international dialing rule groups”. Click “Save” once finished.

image image

i) Click on “dialing authorization”. We will add these two groups here. Click “Save” once you add the “All calls” dialing group.

j) You would still be in the Dial plans page. Scroll down to the “UM Auto Attendants” and click on the “+” sign to create a new Auto attendant. Fill the following properties to create it.

Name: Auto attendant name

Select “Create this auto attendant as enabled”

Select “Set the auto attendant to respond to voice commands”

Add the Access numbers – This is the number that will be used to dial into an Auto attendant (e.g. : 4003)

image 

k) Go back and edit the Auto attendant properties.

image 

l) Click on “Address book and operator access”. Select the following options, and then click “Save”

“Allow callers to dial users

“Allow callers to leave voice messages for users”

image 

 

m) Click on “dialing authorization”. We‘ ll add the authorization rules created earlier (i.e. : All calls). Ensure the following options are checked and click “Save”,

                 Calls in the same UM dial plan

                 Allow calls to any extension

Add the “All calls” rule group in both the fields as listed in the screenshot. We are not creating any restrictions on where the AA can place calls thus we do not need to add any custom rule groups .

image

n) Scroll up in the Dial plan properties and click on Configure. We will configure Subscriber access (Outlook Voice Access) and create a Dialing rule group.

image

o) Click on “Outlook Voice Access” and add a number. We are using 4 digit numbers for this and the Auto attendant for simplicity. You can user any number that you want. You will need to ensure Dial plans are created in PBX to route the calls to Exchange.

image

p) Click on “dialing rules” and click “+” below “In-country/region dialing rules”.

image

q) Add the following fields to create a dialing rule and click “OK after filling the below fields..

Dialing rule name: Allow all calls

Number Pattern to Transform: *

Dialed Pattern: *

Comment: Allow all calls

Note - By adding * we are allowing all calls to flow if this group is applied.

image

 

r) Follow the same procedure to create a rule group for “Authorized international dialing rule groups”. Click “Save” once finished.

image

image

 

s) Click on “dialing authorization”. We will add these two groups here. Click “Save” once you add the “All calls” dialing group.

image

 

t) Restart the Mailbox Assistants service on the Exchange server as the grammar files needed for Auto attendant are not created instantly.

u) The Unified Messaging Configuration is ready. We should now be able to successfully test leaving Voicemail from the soft phone and make a call to the Auto attendant.

 

 

Enabling User for Unified Messaging& Testing voicemail, Auto attendant and Outlook Voice access.

         a) In the Exchange admin center click on “Recipients”. On the right, below “Phone and Voice” features click on “Enable”

image

 

         b) Select the Default policy in “UM Mailbox policy” click “OK” and “Next”

image

         c) Add the Extension number (Defined in PBX) 4002 and uncheck “Require the user to reset their PIN the first time they sign in”. Click “finish”

image

        d) If you wish to view the properties, Edit the mailbox properties and click “mailbox features”. Click “View Details” on Unified Messaging properties.

image

image

       e) We now need to know the PIN number (Since we set it to automatic) to access mailbox through the phone (Outlook Voice Access). Check e-mail for the user who has been enabled for UM and you should see a Welcome e-mail with all the details.

image

   Now that the server and PBX has been configured, it’s time to test out UM Features. We will begin by leaving a voicemail for a user. Post this task a mail will be sent to the user mailbox with the voicemail as an attachment.

       f) On the Host machine, open the 3CXPhone software. As we have configured the phone profile previously, we should be able to see the phone status as “On Hook”.

image

 

      g) Dial 4002 (User enabled for UM). Since 4002 is not active on any pbx phone, you should hear Voicemail prompt. Leave a voicemail for the user and end the call.

      h) Wait for some time and you should get an e-mail in the user’s inbox with the below format.

image

 

        i) Similarly, you can dial 4003 from the 3CX phone to reach an Auto attendant. If you hear “Welcome to Microsoft Exchange Auto Attendant” then your AA is working as expected. You can now leave voicemail for users or make calls by simply dialing an UM enabled user’s extension.

Note – When you are dialing a user through an auto attendant, a separate instance of 3CX phone should be running as the AA will dial out that PBX phone.

        j ) To access your mailbox through the phone, dial 4004 from the 3CX Phone. You will be asked to enter your pin to access your mailbox.

This completes our exercise of Configuring UM with a PBX. Note that we have to ensure the VM-Host connectivity is maintained to ensure we connect to PBX and Exchange Auto attendant successfully. Please feel free to leave your comments and Feedback.

Comments

  • Anonymous
    January 01, 2003
    Good Article with detail info on UM Configuration..Great!!!

  • Anonymous
    January 01, 2003
    awesome article, thanks for sharing.

  • Anonymous
    July 16, 2013
    Nicely done and explained. Good work...

  • Anonymous
    August 19, 2013
    Hello Abhay, I cannot find the PBX setup at SNOM PBX - skydrive.live.com/redir Can you please upload it for us to download. Thanks

  • Anonymous
    September 30, 2013
    A very good post, Abhay. Great for getting a lab started.

  • Anonymous
    November 06, 2013
    great, thanks for your contribution. My Cisco switches supplier www.3anetwork.com/cisco-ws-c3750x-12s-s-price_p111.html has recommended that.

  • Anonymous
    November 19, 2013
    @hasnain - Sorry for the  delay. Have uploaded the pbx software. Thanks!

  • Anonymous
    January 27, 2014
    Appreciate your Great Effort, could you please upload the 3CX IP Phone 3CX IP Phone ?no data found in the provided link https://skydrive.live.com/redir?resid=F60C05CB0A044323!452&authkey=!AOpWFsmS6v0VQEc

  • Anonymous
    June 06, 2014
    Hello. Several times you said, "You will need to ensure Dial plans are created in PBX to route the calls to Exchange." However, I'm not entirely sure what this means and I suspect it's why this lab isn't working for me. If you happen to see this, please let me know. Thanks!

  • Anonymous
    September 18, 2014
    Excellent article

  • Anonymous
    November 05, 2014
    Thank you for sharing your valuable information.this information very useful for online learners
    http://www.ucpartners.com.au/unify-series.php">unify pabx systems

  • Anonymous
    November 17, 2014
    Thank you for sharing your valuable information.this information very useful for online learners
    http://www.ucpartners.com.au/unify-series.php">unify pabx systems

  • Anonymous
    February 03, 2015
    You will need to add the pbx as an ip gateway in Exchange

  • Anonymous
    February 05, 2015
    You will need to ensure Dial plans are created in PBX to route the calls to Exchange. How is this done?

  • Anonymous
    March 28, 2015
    This was a good overview. Didn't work though. Get "Server Failure" on softphone. Even created the IP GW as suggested. Followed to the letter. Something ain't right.... :)

  • Anonymous
    May 25, 2015
    Sid, I had the same issue as you. I think the problem was that I had the CAS and mailbox roles separated onto different servers. Once I changed the "Accept Redirect" option in the SNOM Exchange Trunk settings it worked!

  • Anonymous
    July 18, 2015
    The comment has been removed