Introduction to Asterisk with Vincente D’Ingianni Director of Professional Services Binary Systems, Inc. vincente@binary-systems.com www.convergencetechnologycenter.org DUE 402356 What is TrixBox? TrixBox is an Asterisk distribution pre-packaged with the following additions: CentOS - a free distribution of RedHat Linux FreePBX – a web-based configuration tool And many other bells and whistles. TrixBox allows easy user access to Voice Mail, Conferencing, etc. TrixBox removes many of the complications of configuring Asterisk. www.convergencetechnologycenter.org 2 TrixBox Installation See Installation Video www.convergencetechnologycenter.org 3 TrixBox Admin Login Default UserID: maint Default Password: password www.convergencetechnologycenter.org 4 TrixBox Admin Mode Allows configuration of your Asterisk system through FreePBX or configuration files. www.convergencetechnologycenter.org 5 FreePBX Module Admin Feature modules must be installed prior to configuration. Install the following modules: Feature Code Admin VoiceMail IVR Ring Groups Time Conditions Music on Hold Info Services Backup & Restore Click “Process” when done. www.convergencetechnologycenter.org 6 Module Admin Confirmation Click “Confirm” to install. www.convergencetechnologycenter.org 7 Apply Configuration Changes All changes must be applied before they become active. Look for the Red bar at the top of the FreePBX window to signal when changes must be applied. Simply click the bar to apply the changes. www.convergencetechnologycenter.org 8 FreePBX Configuration Return to FreePBX Setup to see your new modules. www.convergencetechnologycenter.org 9 Configure SIP Extensions Add phone extensions to your PBX. www.convergencetechnologycenter.org 10 Add Extension Name & Number User Extension is the extension number. Display Name is the Caller ID Name. Secret is the SIP registration password. Leave other fields alone. www.convergencetechnologycenter.org 11 Fax, Privacy, Recording, and VoiceMail Other features for the extension can be configured here. Click “Submit” when finished. Add other extensions as necessary. Don’t forget to click the “Apply Changes” bar. www.convergencetechnologycenter.org 12 Configure X-Lite Soft Phone Download and install the X-Lite Soft Phone from www.counterpath.com Configure your Soft Phone to match the exensions in FreePBX. Point the Soft Phone to the IP address of the Asterisk system. Configure multiple Soft Phones on other computers for each extension. www.convergencetechnologycenter.org 13 Configure X-Lite Soft Phone Download and install the X-Lite Soft Phone from www.counterpath.com Configure your Soft Phone to match the exensions in FreePBX. Point the Soft Phone to the IP address of the Asterisk system. Configure multiple Soft Phones on other computers for each extension. www.convergencetechnologycenter.org 14 Making Calls Between Extensions X-Lite Soft Phone X-Lite Soft Phone IP Network Extension 101 dials 102 to make a call on the PBX. www.convergencetechnologycenter.org 15 Simple IAX2 Trunking Create a “Virtual Trunk” between two Asterisk PBXs. www.convergencetechnologycenter.org 16 Simple IAX2 Trunking Leave the top fields blank www.convergencetechnologycenter.org 17 Simple IAX2 Trunking Put the Peer PBX IP address on the PEER Details Configure both PEER and USER type=friend There is no registration or password required between PBXs, so do not implement this on a real system unless you are sure of what you are doing. www.convergencetechnologycenter.org 18 Create an Outbound Route Set the Dial Pattern to match any dialed number string beginning with a “9” Put your IAX2 trunk in the Trunk Sequence list. Note: A dial pattern of “9|.” will strip off the 9 and pass the rest of the digits to the trunk. www.convergencetechnologycenter.org 19 Create an Inbound Route Allow inbound calls from any trunk to be routed to a specific destination. By not specifying a DID Number or Caller ID Number, any inbound call will match. www.convergencetechnologycenter.org 20 Set the Inbound Route Destination Direct the inbound route to a specific extension, ring group, IVR, etc. www.convergencetechnologycenter.org 21 General Settings Adjust the Voice Mail, Faxes, Security, etc. Allow anonymous inbound SIP Calls makes testing easy, but can be a security risk. www.convergencetechnologycenter.org 22 Making Calls Between PBXs X-Lite Soft Phone X-Lite Soft Phone IP Network Extension 101 dials 9102 to make a call across the IAX trunk between the two PBXs. www.convergencetechnologycenter.org 23 Flash Operator Panel Monitor call activity in real time on the Flash Operator Panel. www.convergencetechnologycenter.org 24 Congratulations You have now created a fully functional VoIP PBX system ideal for teaching communication fundamentals. Expand the system with real VoIP Gateways or SIP termination to the PSTN for real applications. Experiment with IVRs, Ring Groups, Time-ofDay routing, etc. Best of all, it is free! www.convergencetechnologycenter.org 25