Create a VoIP Network TO BE EDITED AND REDONE

How to Make a VoIP Network
What you’ll need:
• A Linux NUC or another device to boot FreePBX onto
• A Bootable flash drive
• A wall network jack with internet connection
• A switch with a DHCP port
• A gateway router with FXO ports
• An 8 port POE Switch
• About 10 network patch cables
• Phone sets for the network (this guide will have 4)
• A laptop or another device to browse configuration settings
• Download Angry IP to monitor ip addresses easily

  1. Proper Plugging
  2. Wall outlet – DHCP port of switch
  3. 2nd slot of the same switch – POE switch
  4. POE switch – laptop or other device for configuration settings
  5. POE switch – FXO gateway router
  6. POE switch – NUC or another device for booting FreePBX
  7. POE switch – Remaining 4 ports are for the phones
  8. Static IP’s
  9. The following need static IP’s as to not mess with connection for the phones. Type in the Ip address of the device once its connected to the network to set static settings for each
  10. FreePBX Device
  11. Once installed and activated, go to Admin –> System Admin –> Network Settings
  12. Network Interface: eth0
  13. Ip assignment: static
  14. Static ip: an ip address that is within the static range of ip addresses for the network
  15. Netmask: 24
  16. Gateway: Your Router’s IP address
  17. Start Automatically: yes
  18. Create interface
  19. FXO Gateway
  20. The example in this guide is the GrandStream gateway router, each router settings may vary depending on make and model
  21. Check the ip of the router and visit the address
  22. Default username and password are admin, admin
  23. Click networks
  24. Click the bubble for statically configured (default) as:
  25. IP address: a static ip that is within the static range of ip addresses for the network
  26. Subnet Mask: 255.255.255.0
  27. Default Router: same ip as your router’s IP address
  28. DNS Server1: 8.8.8.8.
  29. DNS Server2: 8.8.4.4
  30. Save

iii. DHCP Switch (unless the last octet is set to 1, take these steps)

  1. Each process will defer based on the make and model of the switch.
  2. Go to the IP address of your DHCP Switch(Router)
  3. Sign in using the default sign in (if you don’t know the default sign in information google the make and model password and you will find it there)
  4. If there is a setup wizard, follow that.
  5. The phones
  6. Using Angry IP, find the ip address of the phones connected to your network. You can also go into the menu of the phones and find it in the settings there
  7. Go to the ip address of each phone
  8. Process defers based on make and model
  9. This guide uses Sangoma S505 phones
  10. Sign in using the default sign in (for Sangoma phones it is admin, admin)
  11. Go to network –> Basic
  12. Static IP address
  13. Fill in the static ip with an ip address that works with the static ip scheme for your network
  14. Subnet mask is 255.255.255.0
  15. Default Gateway: same ip address as your router
  16. Static dns yes
  17. Primary DNS: 8.8.8.8.
  18. Secondary DNS: 8.8.4.4
  19. SaveSet
  20. Repeat for each phone

 

  1. Download FreePBX to a bootable usb flash drive
  2. https://www.freepbx.org/
  3. https://rufus.ie/en/
  4. Download the most current version from each website. Use Rufus to create a bootable version of FreePBX on the flash drive
  5. Insert the flash drive into the FreePBX device (NUC or another predefined device)
  6. Boot from the flash drive and set up the device for FreePBX
  7. Set the root password and configuration settings and remove the flash drive and reboot
  8. If configured properly, you should see an Ip upon boot of FreePBX
  9. Use this Ip address on the laptop connected to the network by searching it in a URL

 

  1. FreePBX
    The following links are in depth guides for setting up the phones. Look here for anything that is not in this guide.
    https://wiki.freepbx.org/display/FPG/Configuring+Your+PBX
    https://wiki.freepbx.org/display/PHON/Setup+Phone+by+hard+setting+provisioning+server#SetupPhonebyhardsettingprovisioningserver-FromthePhoneGUI
    https://wiki.freepbx.org/pages/viewpage.action?pageId=4161667
    https://wiki.freepbx.org/display/PHON/Dial+Patterns
  2. Go to the IP address provided by the FreePBX device and sign in using the user/password used to set up the device
  3. Activate the system by going to Admin – System Admin – Activation
  4. Follow the form and submit
  5. DNS – make sure DNS is set to your FreePBX IP
  6. Intrusion Detection – Set an email to receive alerts on any intrusion by putting an email address under email
  7. Network Settings – if not set earlier
  8. network interface: eth0
  9. static Ip: set to static ip address within DHCP range for client server

iii. netmask: 24

  1. Gateway: FXO gateway router Ip
  2. Start automatically: Yes
  3. Time zone –> set to local time zone

 

  1. Setting up Extensions
  2. Go to Applications – Extensions
  3. Add extension –> add new SIP (chan_pjsip)
  4. User extension –> whatever the user’s ext. will be
  5. Display name –> the person’s name (can be left blank)

iii. Secret – a password to access a person’s ext.

  1. Select User Directory –> PBX Internal Directory
  2. Link to a default user: Create new user
  3. Groups –> all users

vii. Go to the voicemail tab next to general

viii. Voicemail enabled: yes

  1. Password: same as extension
  2. submit
  3. Once an extension is created, you can create more extensions based on how many phones you are setting up. This is expedited with quick create extension
  4. Click quick create extension
  5. Follow the prompt to complete the remaining extensions
  6. After Your extensions are created, make one more but this one is a virtual extension for a general voicemail box
  7. Add extension –> add new virtual extension
  8. Ext: something within your extension scheme but 5 or 10 numbers ahead of the last extension to save space for any additional phones you wish to add.

iii. Display name: general voicemail

  1. Do NOT create a new user for this extension
  2. Go to the voicemail tab next to general
  3. Enabled: yes

vii. Voicemail password: same as the extension

viii. Submit

 

  1. Configuring a phone using EndPoint Manager (EPM)
  2. Settings -> EndPoint Manager
  3. In the menu button on the right side -> Global Settings
  4. Global Settings
  5. Internal Address –> The IP address from FreePBX device
  6. Phone admin password – defaulted to 222222 but you can change this to whatever the client needs. If not, leave as be.

iii. Phone User Password – Defaulted to 111111 but you can change this to whatever the client needs. If not, leave as be.

  1. Save Global Settings

 

  1. Creating templates for phone
  2. In the same menu as Global Settings, go to Add Brand
  3. Select the brand of your phones, in this guide we have Sangoma S505
  4. Template name – You can name the template whatever you want (no spaces)
  5. Destination Address – Will be pulled from internal IP address defined in global settings
  6. Regional – > Time Zone - Select time zone according
  7. Models –> select your phone model –> Line Label – Any of the options are fine, this is preference by client.
  8. Options
  9. Background image – once you upload an image, you can apply it to the background here.
  10. To do this, have your image file ready as a .GIF, .JPEG or .PNG
  11. In the menu button on the right-hand side, scroll down to image management
  12. Add image
  13. Choose file
  14. Choose the image file
  15. Upload image
  16. Go back to options where background image was
  17. The image will show up as a drop-down option listing its file name
  18. Line label – what the line label displays

iii. Dial patterns – add dial patterns here for the phone to use

  1. Dial entry timeout – change from 0 to 2. This will make the phone dial out after dialing a number without having to hit send
  2. LED statuses will change how the LED indicator will react to different scenarios
  3. Save, rebuild config, and update phones
  4. Firmware Version – Select Firmware Slot 1(if this doesn’t show in the drop down go to firmware management and select the latest firmware version and drag it to firmware slot 1 go back to the general tab and select firmware slot 1)
  5. Provision Server Address – should match the destination address
  6. Provision Server Protocol – Click on HTTP. FTP or TFTP based on which protocol is correct for the phone model
  7. Save Template

 

  1. Setting up a line key for an extension
  2. Settings –> EndPoint Manager –> Brands –> Phone Brand –> Manage (template name)
  3. Select model of phone you’re setting up
  4. Line Keys –> Type: line (line keys are for extension lines, park, transfer, etc. set up 4 lines and then set up other lines for anything the client requested)
  5. Account: Account 1
  6. Save Model

 

  1. Mapping the phone to an extension
  2. Menu button on the right side where global settings is
  3. Extension mapping
  4. Add extension
  5. Extension/name –> first extension
  6. Brand/MAC Address –> Brand of phone and Mac Address of phone(you can find this on the phone Menu –> )

iii. Template/Model –> Template you created, model of phone

  1. Action –> Save and Rebuild
  2. Click Use selected the new extension should have a green background
  3. Repeat for each extension

 

  1. Installing Firmware
  2. Click Firmware Management
  3. Your phone brand should appear under Firmware
  4. Drag the latest firmware to firmware slot 1

iii. Submit

 

  1. Downloading Configuration Files to the phone
  2. Settings defer by phone model for downloading configuration files. Follow directions for the specific phone
  3. Go to the phones ip address in a url and change the settings (for Sangoma)
  4. Go to Phone IP address
  5. User/pw is admin, admin

iii. Management –> Auto Provision

  1. Change Firmware Server Path to your FreePBX IP address with the port number with proper protocol for either http or https (i.e., http://192.168.10.6:84)
  2. Change Config Server Path to your FreePBX IP address as well
  3. Save

vii. Apply to each phone

  1. Username and password are admin, admin by default but if it is configured the phones password will be 222222 unless changed at that step
  2. Go to Network (if not set up prior in the static ip section)
  3. IPv4
  4. IPv4 setting – Static IP Address
  5. Ip address is the assigned address for this phone
  6. Subnet mask 255.255.255.0
  7. Default gateway – FreePBX Ip address
  8. DNS 8.8.8.8 (testing purposes only)
  9. Saveset

iii. Management –> Auto Provision

  1. PnP active – no
  2. Upgrade mode: HTTP
  3. Firmware server path –> http://YourFreePBXIPAddressgoeshere:84
  4. Config Server Path –> http://YourFreePBXIPAddressgoeshere:84
  5. Saveset
  6. Scroll to AutoProvision Now and click on that
  7. Phones should now be configured with the settings from FreePBX
  8. Do for each phone

 

  1. Setting up a Trunk
  2. Connectivity –> Trunks
  3. Add Trunk (chan_pjsip)
  4. Trunk Name – “client name trunk”
  5. Outbound CallerID – client phone number
  6. Allow Any CID
  7. Maximum Channels: 4 (or however many phones they have)
  8. Dial Number Manipulation Rules
  9. NPA is the area code, NXX is the following three numbers in a phone number.
  10. Type in NPA your area code, and NXX the following three numbers in your area phone numbers

iii. Add emergency lines separate, as the wizard won’t pull both the local numbers and emergency at the same time.

  1. Inserting these will allow the phone to dial out after dialing the numbers without having to hit send or call
  2. Pjsip settings
  3. General
  4. Secret – password (You MUST set a password so when you connect to your fxo gateway you enter in the same password on that interface and that’s how the phones will connect. Without a password, FreePBX and your fxo gateway router will not connect.)

iii. Authentication – both

  1. Sip server – ip address of your FXO Gateway
  2. SIP server port – 5060
  3. Save Trunk

 

  1. Setting up an inbound route to an extension manually
  2. Connectivity –> Inbound Routes
  3. Add inbound route
  4. Describe it however you see fit
  5. DID number – the clients phone number
  6. CID – any
  7. Set Destination: set to an extension you created.
  8. If you want all phones to ring at the same time you will need to set up time groups/conditions and ring groups
  9. Time groups and conditions
  10. On set destination select time conditions to the ext you created and save it. This will have that specific phone ring when the phone is called. Go to Applications and click time groups

iii. Add time group

  1. Description – describe what the time group is, in this example it is open hours
  2. Time: select the time when your clients company is open if they are open 8-5 Monday through Friday
  3. Time to start: when you will open (8:00)
  4. Time to finish: when you close (17:00)
  5. Week day start: starting day of the week that you are open. If you are open Monday to Friday set this to Monday
  6. Week day finish: the last day of the week you are open. If you are open Monday to Friday then you set this to Friday
  7. Month day start/finish: the days of the month you are open, mainly used for holidays. you would be closed so you would make a new time group called holidays and set a time for each holiday of the year. Example: new years day - month day start: 1 month day finish: 1 month start: January month finish: January
  8. Submit after you set your open hours of operation
  9. Back in the time groups main page, click on list time conditions
  10. Add time condition
  11. In this example we are setting closed hours
  12. Time condition name: Closed hours
  13. Override code pin: whatever pin works for the client to override a time condition
  14. Time group: open hours
  15. Destination matches: Ring Groups
  16. If you plan on all phones to ring at the same time when someone calls in, select ring group
  17. A prompt will show up saying to create a new ring group
  18. Ring Group number: the extension to call to ring all phones in the group

iii. Description: describe what this ring group is

  1. Extension list: using the user quick select, you can quickly add any extension to this group
  2. Ring strategy: ringall
  3. Destination if no answer: voicemail General voicemail box (unavailable message)

vii. submit

b.

  1. Destination non matches Voicemail box – general voicemail (unavailable)
  2. Apply Config
  3. Repeat for each phone
  4. This allows phones to all ring at the same time when called in. This also sets the phones to not ring after a certain time (i.e., closed) and goes directly to a voicemail

 

  1. Setting up Outbound routes
  2. Connectivity –> Outbound Routes
  3. Add Outbound Route
  4. Route Settings
  5. Route name - Give the route a name, no spaces
  6. Route CID – A client phone number

iii. Trunk Sequence for matched routes – select the trunk name you created

  1. Dial Patterns – same as setting up the trunk, you create rules based on what the client needs for dial patterns
  2. Save Route
  3. Create another Route for Emergencies
  4. Add outbound route
  5. Route name: Company name Emergency

iii. Route type: Emergency

  1. Trunk Sequence for matched routes: the trunk you created
  2. Dial Patterns: unselect 7,10- and 11-digit patterns and only select US Emergency
  3. Additional Settings: force record phone calls
  4. Save Outbound Route

 

  1. Configuring your FXO Gateway with FreePBX
  2. This guide we use a GrandStream GXW4104
  3. Login – default password is admin
  4. Networks (If not set earlier in static ip address setting)
  5. Basic Settings
  6. IP Address
  7. Select statically configured as:
  8. Ip address – whatever number in the last octet of the ip that won’t interfere with any of the other static addresses
  9. Subnet mask – 255.255.255.0
  10. Default router – The router that connects internet to network
  11. DNS Server 1 – 8.8.8.8 (testing purposes only)
  12. DNS Server 2 – 8.8.4.4 (testing purposes only)
  13. Save
  14. (OPTIONAL WHILE TESTING) Change the default admin password
  15. Maintenance
  16. Admin password – enter whatever you’d like
  17. Unless its analog, you do not need to do an FXO line test
  18. FXO Lines – scroll to FXO Termination
  19. Change AC Termination Impedance from ch1-4:0; to ch1-4:1; save
  20. Go to Dialing on the left-hand side
  21. Min Delay before dialing out ch1-4:1300;

 

  1. Channel Dialing to VOIP (FXO Gateway)
  2. Settings –> Channels Settings –> Calling to VoIP –> Unconditional Call Forward to following:
  3. User ID: ch1:phone#1;ch2:phone#2 etc. until all phone numbers are added between users (use the phone numbers for each phone)
  4. SIP Server: ch1-4:p1;

iii. SIP Destination Port: ch1-4:5060;

  1. T.38 setting: ch1-4:mode=2,rate=9600,ecm=1;
  2. save

 

  1. Channels (FXO Gateway)
  2. Select Accounts tab: Set your SIP server IP address (FreePBX IP address)
  3. Select User account on the left-side
  4. Going down the channels should be 1,2,3,4

iii. SIP User ID is the name of the trunk that you created

  1. Authenticate ID should also be the name of the trunk
  2. Authen Password – Password
  3. SIP Account 1

vii. Save

 

  1. Ring Groups(FreePBX) – if not set up in inbound routes
  2. Applications –> ring groups
  3. Add ring group
  4. Ring-Group number – the number to call to ring the group of extensions
  5. Group Description – describe this ring group here
  6. Extension List – using user quick select, add the extensions you created to the ring group
  7. Ring strategy – ringall will ring all the extensions selected. Other options are available for whatever the group is being used for
  8. Destination if no answer – voicemail general voicemail (unavailable)

 

  1. Time Groups – If not set up in inbound routes
  2. Applications –> Time Groups
  3. Add time group
  4. Description – define what this time group is (open hours)
  5. Time – this is very specific. If you are setting up open hours for your phones to work, you need to select the hours and days your business is open. This example will be 8-5 Monday to Friday
  6. Time to start – 08:00
  7. Time to finish – 17:00

iii. Weekday to start – Monday

  1. Weekday to finish – Friday
  2. If you are setting up a time group for holidays when you will be closed, set up a new time group named holidays
  3. Example: New Year’s Day
  4. Month day start – 1
  5. Month day finish – 1
  6. Month start – 1
  7. Month finish – 1

 

  1. Time Conditions – if not set in inbound routes
  2. Applications –> time conditions (or from time groups click time conditions)
  3. Add Time Condition
  4. Time condition name – name your condition
  5. Override code pin – a pin you can enter to override the condition and have the phone ring when its closed
  6. Time zone – use system time zone
  7. Mode – time group mode or calendar mode
  8. Time group mode will pull times from the time groups to decide when to activate phones
  9. Calendar mode will pull from a calendar for when to activate phones. You would need to set up a calendar with holidays and days that your business is closed.
  10. Time group – select the time group to pull active times from
  11. Destination matches – Ring Groups – Ring all lines (if ring group for all lines was created)
  12. Destination non matches – Voicemail

 

  1. Recordings – the client will usually have these recorded but for testing you can set it here.
  2. Admin –> System Recordings
  3. Add recording
  4. Name – name your recording
  5. Description – describe your recording

iii. Upload recording – browse your files to select the recording to upload

  1. If you don’t have anything prerecorded, you can also record yourself via a phone by choosing an extension to call and it will record what you say.
  2. Convert to WAV file
  3. submit

 

  1. Announcements – announcements can be used in many places to let the caller know a message. You can set an announcement in an IVR to let people know what to dial to reach their destination or an announcement can play before you reach a voicemailbox etc.
  2. Applications –> Announcements
  3. Add
  4. Description – describe your announcement
  5. Recording – Select a recording of a script you uploaded

iii. Destination after playback – Voicemail

  1. IVR
  2. Applications –> IVR (interactive voice response)
  3. IVR Name – name your IVR
  4. IVR description – describe what your IVR does

iii. Announcement – select a recording that will play at the beginning of the IVR

  1. Invalid destination – voicemail
  2. IVR entries
  3. Digits – the number for the user to select when navigating through the IVR
  4. Destination – Where the user will go after pressing a digit (i.e., pressing 1 will send you to the first phone number’s voicemail when closed)
  5. Submit

 

  1. Adding Recordings and images and where to apply them
  2. Images
  3. Go to endpoint manager
  4. Menu button

iii. Scroll down under advanced and click image management

  1. Click add image
  2. Choose file, browse your files to find the image you wish to upload
  3. Upload image

vii. Go back to the endpoint manager menu

viii. Go to your phone brand and select your phone template

  1. Options – background image select your image
  2. Screensaver – custom photo (optional, depends on client request)
  3. Save
  4. Recordings
  5. Admin –> system recordings
  6. Add recording

iii. Name - Name your recording

  1. Description - Describe your recording
  2. Upload recording – browse
  3. Select file to upload

vii. If you do not have it prerecorded, you can choose an extension to call and record a message to upload to the phone system

viii. Convert to WAV file

  1. Save
  2. You can add recordings to announcements, IVR and other places as well.

 

 

New Systems and configurations will change, and the system may not recognize it giving problems with SIP. Either reboot the system or go into command line on the FreePBX console and type in fwconsole reset

 

At this point the phones should be working and able to do as needed.

 

 

  • Phone, VoIP, Create, Network
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Adding a New NAS to Network

To be completed in house prior to delivery and setup Connect network cable Connect power...

How to Create a SharePoint Site

Go to the admin center of the client you are setting the site up for, signed in as Unifeyed...

Employee Offboarding Procedure

Upon notice from Client that an employee of theirs is no longer working there, depending on the...

New Employee Onboarding

Get the Device that you are setting up for the employee (Laptop, Appleyeance, etc) Set up the...

Shared Mailboxes Disappear After a Minute

https://docs.microsoft.com/en-US/outlook/troubleshoot/profiles-and-accounts/cannot-connect-web-se...