Tap here to compare the top VoIP providersTap here to hide the top VoIP Providers
[email protected] Handbook Wiki Chapter 4
Chapter 4 Using AMP to Configure your [email protected] Server
- 4.1 What is AMP?
- 4.2 How does AMP work?
- 4.3 How to Log into AMP
- 4.3 Configuring an extension
- 4.4 Configuring a trunk for outbound and inbound calls
- 4.5 Configuring Outbound Routing
- 4.6 Configuring Incoming Calls
- 4.7 Configuring the digital receptionist
- 4.7.1 How to connect a caller to a default extension when one is not chosen
- 4.8 Trunking two [email protected] Servers
- 4.9 "Extension Mobility" "Phone Sharing" or "Disconnecting the extension from the phone".
4.1 What is AMP?Using AMP (Asterisk Management Portal) we can easily configure our asterisk server. AMP provides a graphical method (through a web browser) to configure the textual configuration files that Asterisk needs to function. Note that this is only a brief overview of all the features of AMP (which is now called freePBX). For more detailed information, you can visit the end-user documentation of freePBX at http://www.aussievoip.com.au/wiki/freePBX.
4.2 How does AMP work?Here is what AMP can configure in asterisk:
Incoming Calls — Specify where to send calls coming from the outside
Extensions — Add extensions and set voicemail properties
Ring Groups — Group extensions that should ring simultaneously
Queues — Place calls into queues and allow them to be answered in order
Digital Receptionist — Create voice menus to greet callers
Trunks — Set up trunks to connect to the outside world
Outbound Routing — Manage which trunks outbound calls go out
DID Routes — Specify the destination for calls if their trunk supports direct inward dial
On Hold Music — Upload MP3 files to be played while users are on hold
System Recordings — Record or upload messages for specific extensions
Backup and Restore — Create, back up, and restore profiles of your system
General Settings — Set basic dialing, company directory, and fax settings
4.3 How to Log into AMPTo log into AMP and begin making your changes, point your browser to the IP address of the [email protected] Server
The default login and password of AMP is
Hopefully by this point you've already changed your password! (See Chapter 3 Securing your [email protected] server)
4.3 Configuring an extension1) Use a pc on your network that has a web browser and connect to your [email protected] box using HTTP:[email protected].
Screenshot of main screen.
2) Click on Asterisk Management Portal and then click setup.
Note: If you are using [email protected] v2.8 or later, or freePBX, you will need to install and enable the various configuration modules. This can be done in the Setup/Module Admin screen.
3) Click Extensions then Add Extension.
4) Select the type of extension.
- A. SIP = Session Initiation Protocol
- 1a) Use the default extension 200 and type in a password for registration like "abc123". The password box is actually the Secret box, aka. 'Extension Password', and it doesn't * out the password entered. After that, enter the name of the person using this extension.
- 2a) Go down to the voicemail section, select enable, and enter a voicemail password. Use something you can type on a phone keypad like '1234'. Enter an e-mail address where you would like your voice messages sent and click add extension. Then click on the red apply bar at the top of the screen.
- 3a) Set up a phone for this extension. Get a SIP phone, an X-Ten soft phone is good for testing. See the section on the X-Ten phone. remember to use your extension and extension password.
- 4a) Make a call from your phone. (try *45 this is a local echo test) (correction *43)
- B) IAX2 = Inter Asterisk Transport version 2
- C) ZAP = PSTN based hardware providing FXO/FXS operations
- D) Custom = Used for special types of extensions
- 1d) To create a custom extension which calls an external number enter the extension number for the new extension, 1234 will work nicely.
- 2d) Enter the display name for the extension, "Joe's Cell Phone" will do nicely for this
- 3d) Skip down to the "Dial" field. Enter the dial details in this format: [email protected] OR TYPE/TRUNK/NUMBER. For example: [email protected] or ZAP/4/5555551212 (both formats seem to work)
- 4d) Click Submit. Click the Red Bar that appears at the top of the screen
- 5d) Try calling your new extension.
There appears to be a problem defining a custom extension (AAH ver 2.6). To have an extension call an outside number, create a custom extension with the following dial string
eg A call to a UK phone might use the following dial string:
Here is a discussion about this issue:
4.4 Configuring a trunk for outbound and inbound callsUsing AMP (user: admin, pass: password) ([email protected] user: wwwadmin) select setup then trunks. Click on the type of trunk you want to create. See the VOIP Service Providers section for how to configure a trunk for your provider. See Example 6 for IAX trunking to a non [email protected] 2.5 host.
4.5 Configuring Outbound RoutingNext you need a route to allow calls from your phones to go out on a trunk. If you have more than one trunk you can set up rules to determine how a trunk is chosen for each call. Here we will set all calls to go out one trunk.
Using AMP (user: admin, pass: password) ([email protected] user: wwwadmin) select setup then Outbound Routing. Type in a name for your route. Then enter the following in the dial pattern box.
This will set all calls to use this route.
Next go to the Trunk Sequence section. Drop down the box and select the trunk you configured earlier. Click add.
That's it. Click Submit Changes and then click on the red apply bar at the top of the screen.
Try dialing a number on your phone like 19197543700 (RedHat customer support) and you should hear "Welcome to RedHat"
In South America, we use 00+country+areacode+number but USA use 011+country+areacode+number
To replace the 011 and start dialing with 00 and have the ability to dial local numbers, you have to add the Outgoing Dial Rules in your trunk:
Outgoing Dial Rules for the trunk voip:
1+NXXNXXXXXX ; this is to call to USA
011+N. ; this is to call to rest of the world
0115935+2XXXXXX ; this is for local dialing at my area
011593+NNXXXXXX ; this is for regional calls at my country
Next, create 3 outbound routing (localdialing, USA, restoftheworld)
0|9XXXXXXX ; this if for mobile
2XXXXXX ; this is for dialing local city numbers
001|800XXXXXXX ; toll free numbers
For restoftheworld :
4.6 Configuring Incoming CallsNext you need a route to allow calls from your provider to go someplace. Using AMP (user: maint, pass: password) select setup then Incoming Calls. Under the Send Incoming Calls from the PSTN to: section drop down the box next to Extension: and select the extension 200 you created earlier.
Click Submit Changes and then click on the red apply bar at the top of the screen.
Call the phone number from your provider with a cell phone or other non-IP phone. Your SIP phone at extension 200 should ring.
4.7 Configuring the digital receptionist
Go to the setup-digital receptionist page.
digit your extension number (ie. the number of the phone you are going to use to record the message for the receptionist).
Give a name to your menu (ex. business_hours) and write the text of the message in the box below, so when recording you'll "only" have to read.
By default you can give # as an option to access the directory or dial the extension wanted you know it.
Remember: you have to use options numbered 1, 2 3 and so on, not real extensions (ie: ... dial 3 for the marketing ... dial 550 for the marketing is wrong).
a good(tm) example would be:
Welcome to Acme! Thank you for your call. Dial the extension number if you know it or dial 1 to talk with administrators, 2 for the tech zone, 3 for the store, 4 to talk with an operator or 5 to leave a message in our mailbox. dial # to access the directory. Or zero for an operator. Thank You.
Note: you can have 2 digital receptionists, one for business hours and one for night hours.
ex: Welcome to Acme! Thank you for your call. Our offices are open from 8 to 5, Dial 1 to talk 24/24 support 5 to leave a message in our mailbox. Thank you.
dial *77 and record your message.
you can listen to your just recorded message via *99.
repeat until satisfied and press continue.
Insert the number of options you gave on the messages (in the example 5, dial extension and # does not count) and press continue.
now associate every option with the corresponding action ... (ex. 1 goes to extension 545, 2 to the queue 600, 3 to the ring group 650, 4 to 211 and 5 211's mailbox).
press continue and your first digital receptionist is created. now go to the setup-incoming-call and associate this digital receptionist to wanted incoming calls.
4.7.1 How to connect a caller to a default extension when one is not chosenCurrently when caller does not make a choice from the options the call is disconnected after second message. To send the caller to a default extension, add the letter "t" to the Digital Receptionist ---> Options for Menu ---> Dialed Option # ----> "T" ----> Then the extension you want the caller to be sent to.
4.8 Trunking two [email protected] ServersThere are many ways to trunk two asterisk servers together that offer different features and ability. Below is one such configuration using IAX2.
- The two [email protected] servers are named: SystemA and SystemB
- SystemA uses 2XX series extensions
- SystemB uses 3XX series extensions
- Add extension 201 (if needed)
- Add new IAX2 Trunk:
- Trunk Name: systemb
- Peer Details:
- User Context: systema-user
- User Details:
- Create outbound route:
- Dial Patterns: 3XX
- trunk Sequence: IAX2/systemb
- Add extension 201 (if needed)
- Add new IAX2 Trunk:
- Trunk Name: systema
- Peer Details:
- User Context: systemb-user
- User Details:
- Create outbound route:
- Dial Patterns: 2XX
- trunk Sequence: IAX2/systema
Note: Change "systema.ip" and "systemb.ip" to the ip addresses of your respective servers.
At this point, from extension 201, dialing 301, it will trunk through IAX2 to the next extension.
4.9 "Extension Mobility" "Phone Sharing" or "Disconnecting the extension from the phone".This little AMP custimization allows the administrator to disconnect the extension from the phone. In other words, users can now "Log Into" a phone will all the associated benefits. A good example when this would be great would be when there is a day and night shift using the same phones. The night shift comes in and logs into the same phone that a day shift person had just used. Another example would be a user that skips around your compan's remote sites. They won't have to lug the hard phone with them if all they need to do is log into the nearest hard phone to gain access to their extension.
Another benefit to this custimization is if you have 1 hard phone at work and 1 soft phone on your laptop with the same extension (example x1234). Usually, when the hard phone registers with the asterisk server, the registration would be "stolen" away by the soft phone when the soft phone is started. All incoming calls would go straight to the soft phone. The only way to get around this OTHER than this customization would be to assign your hard phone an extension (example: x12341) and your soft phone an extesion (x12342) and then tie them together with ring group with the extension that you want (x1234). This way both phones will ring if x1234 is called.
AMP fuses the user and the device into an object called an extension. We are going to un-fuse it.
4.9.1 Editing the AMP config fileWe have to edit the AMP configuration file. At the CentOS command line, type the following:
Look for an find the AMPEXTENSIONS= setting. Right now it is set for:
Change this to:
Save the file, and restart AMP by typing the following at the CentOS command line:
4.9.2 Configuring our Users and DevicesIf you login to AMP, you will notice that instead of the "Extensions" menu option in "Setup", there is now "Devices" and "Users".
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+