Showing posts with label VOIP. Show all posts
Showing posts with label VOIP. Show all posts

Wednesday, July 14, 2021

Setting up your own VIOP System

 A while ago I had setup a voip system using Ring Central.  Now the cost of having a service like Ring Central, isn't outrageous but it isn't inexpensive either.  I also know a few people who were wanting a "LAN" line for their kids, and shaw and Telus are charging between $20 - $40 per month for a basic phone depending on what services you are subscribed to which is outrageous.  

SHAW Phone Cost

Telus Phone Costs

So I started to do some reading about opensource pbx systems, and really liked freepbx, and am currently playing with it in a VM in my Lab.  With all phones going network based with either a cellular base or an office voip phone, you don't have "lan lines" in that sense anymore.  I had the good fortune of getting a hold of a Cisco SPA504G on the facebook marketplace for $20, and they range from $20USD to $150 on ebay.  You will also need a POE injector which can run from $15 - $100 depending on what you want to buy.  I got the TP-Link 150S which worked well for this.


I intend to finish my work with freepbx, but I needed to get something up and running pretty quick and was told that in canada, VOIPMS would be a good provider to use for a cloud based PBX.  It has a great wiki for configuring devices.

To get the phone up and going you have first signup for a VOIPMS Account, and get it verified.  Once that is done to get things going right away you will want to "add funds" from the Finances tab and pick a DID number (phone number).  The minimum is $15USD purchase.


As you can see from the screen shot above, you can setup a number of settings, such as voicemail, caller id, hold music, etc.  This was a little tricky to setup, it is much simpler to use ring central for setting it up but it wasn't to bad setting up the calling features I wanted on the phone and on the VOIP.MS account.


Configuring settings on VOIP.MS also requires making changes on the VOIP phone your using, so in my case Cisco SPA504G.

So first thing is first you must setup and verify your VOIP.MS Account.


VOIP.MS has a number of tutorials which are accessible on their youtube channel; I like being difficult and read though the wiki but did get to where I needed to go.

The first thing I would recommend setting up is the cloud then configure the phone and adjust on either as you see fit.  So if you go to DID Numbers -> Manage DID, you will get options for configuring your number, such as selecting the Server for your cloud host.  I selected Vancouver because it is the closest one to Edmonton.


One thing you will want to change is the default ring time which I believe was 60 seconds, I set mine to 30, and you will want to associate the voicemail to the DID once you have voicemail setup.


To setup voicemail, you tie it to a DID, the wiki was an excellent resource for the setup, once I setup the voicemail number (it can be anything up to 10 digits) a password and you can setup if you want to skip it because I am setting this up as a home phone I did choose to skip it.


Now that your voicemail is configured you can go and associate the voicemail with the DID (DID Numbers -> Manage DID).  Save your settings.  Once configured, you go to your voip device for PBX server and configure the settings you want to use.  On the Cisco SPA504G it is accessed by the WebUI.


To make the changes you want to make to the phone you will want to click on the Admin Login 

 


The Admin login give you many more settings that you don't get in user mode.  We will be editing the Phone, and Ext 1-4.  In Phone we want to put *97 in the voice mail number which will take us directly to our voicemail box we configured with our voicemail box we made for our DID.  I also changed the short name for line key 1 to the phone number I am using with VOIP.MS

Then in Ext 1 I put the proxy url I want to use provided by voip.ms DID Numbers -> Manage DID (in my case vancouver2.voip.ms) and put the SIP number in the user id and your VOIP.MS Password in the password field.


Since I only have one line on my VOIP.MS account, I disabled lines 2 - 4 but that is up to you if that is something you want to do.  The end result is your voicemail button going to your voicemail without requiring a password, displaying your number. Which makes the phone easy to use for everyone.



Thursday, September 06, 2018

Setting up Mitel VOIP phones using PFSense and Active Directory


At my office we were using a Mitel Phone controller that used streamline adapters for connecting our phones to the VOIP system.  At the best of time the system required a weekly reboot otherwise phones would randomly drop off the system and need to be rebooted.


Mitel Streamline Dongle

So we had a bit of a panic, on a Friday before the long weekend near closing time; Mitel Streamline system decided to die.  


About the Organization:


So we have 2 locations about 500 meters apart lets call one SAP and the other LMC; they are connected by a high speed fiber link.  So what was done is we were asked to pass two different VLANs though the network VLAN 11 for LMC and 210 for SAP.  Our LMC network was already getting the VOIP system though the DHCP on our Active Directory Controller.


Here is some of the info for the single DHCP Server:  192.168.1.0/24 on VLAN 100 and we are using option 43 to pass VLAN 11 to the phones.


To add or modify the Mitel string you need to go to DHCP Server -> Server Name -> IPV4 -> Scope -> Scope Options


Find 043 put a good name and description then add the following String:


id:ipphone.mitel.com;sw_tftp="$YOURSRVIP";call_srv="$YOURSRVIP";vlan=11;dscp=46  


example:

id:ipphone.mitel.com;sw_tftp=10.12.0.10;call_srv=10.12.0.10;vlan=11;dscp=46  


Active Directory Mitel Scope Option
With our two locations we know LMC is setup on a 192.168.1.0/24 network and we have Mitel phones working and being passed though on option 43 on our DHCP Server.

We need to add the phones at SAP to the network and to do that we need to setup another virtual network with a DHCP server so it can pass the Mitel info but still connect to the active directory controller.


Since we use PFSense and Cisco switches adding another virtual network was pretty easy and we are going to use PFSense.  So we added 2 new VLAN to the switches VLAN 210 and 200 and we also added it to the PFSense firewall.


So we are going to setup the following on the SAP network:


Vlan 200 - 192.168.200.0/24 - 210 in the Mitel DHCP Options




Adding vlan 200 to the PFSense Firewall to allow users to connect to the domain and keep using their Mitel phones.  Please note this is a redundant firewall so everything goes though CARP.


Go to Interfaces -> Assignments.  Press the add button and add the new network VLAN (You might want to make sure you've added the vlan to all relevant switches)

VLANS
be sure to add the new network in your interface assignments for carp.

Then go to Firewall -> Virtual IPs



Press the Add Button.  Below is a sample of the settings that might be used in the new network.

VIRTUAL IP Settings
Enable the network interface and set the IP for the PFSense firewall on the network
SAP Network Interface Settings

Now that we have the Gateway and the Interface setup now we can enable the DHCP Server.   Under Services -> DHCP Server.  Select the network you want to enable the DHCP server on and fill out your settings you want for your DHCP Server



DHCP Range


***IMPORTANT***

Here is where we add the option 43 Type is Text and the value for our Mitel phones is the same as what we have for our AD DHCP Option with the exception of the vlan (Unless you are obviously using a different server)

Press the add button and fill out 43 in the number field, should be a text type and copy/paste or type the value listed below for your mitel phone option.

id:ipphone.mitel.com;sw_tftp=10.12.0.10;call_srv=10.12.0.10;vlan=210;dscp=46  


With that done now we can configure our firewall rules for SAP Network so we can talk to our AD controller on the LMC Network so our users can login and use the network resources with the appearance that nothing has changed.  We have 3 different rule sets that we have to setup, the LMC interface (which were already done)


LMC interface:


We have an open rule for an SMTP mail forwarder on port 587
Access for "CatMan" which is allowed to go through to anywhere
A block for any thing from getting to the SuperSecret_Network
A Pass for anything on the LMC_Network to be allowed anywhere

SAP Interface:

A block for any thing from getting to the SuperSecret_Network
A Pass for anything on the SAP_Network to be allowed anywhere


Floating Rule:


This makes the whole thing work properly.  On our selected network interfaces we want to make sure we allow all traffic to the network our domain controller is on.  This lets us get our DNS for our clients from our domain server while they get a different DHCP address from our PFSense firewall and the proper Mitel information for the phones.

Floating Rule that allows the pass from one network to another

List of the floating rules

Now there is obviously more happening with this firewall then meets the eye but this is essentially what you need in a nutshell.  On our LMC network we have our computer clients on Vlan 100 with a subnet of 192.168.1.0/24. The Mitel Phones work using vlan 11.  Our SAP Network on Vlan 200  clients are on a subnet of 192.168.200.0/24 using vlan 210 for the Mitel phones.  


All clients can access network shares and login to the domain with no issue.  Below is a ping test from a machine on the SAP Network to another machine on the LMC Network and it also works from LMC to SAP.

Verification that the network passes though.

Reference Documents Mitel VOIP Phones:
http://edocs.mitel.com/UG/Apps-Solutions/MiCollab%207.2/MiCollab/MiCW%20Help/forms/dhcp_options.html

http://www.mitelforums.com/articles/option-128-missing.php

Updating your godaddy certs during the G2 intermediate hierarchy to the TLS Root CA - R1 hierarchy

  If you use GoDaddy TLS certificates you should be aware of some changes during the transition from the G2 Intermediate certificates to the...