Asterisk Server
Asterisk Server
Asterisk Server
From Standard ERP's Telephony module, it is possible to fully configure an Asterisk server, whether it is installed
locally on the same server as Standard ERP (only applicable on a Linux-based server) or on a separate remote
server. It is also possible to integrate Standard ERP with an existing Asterisk server without managing its
configuration directly from Standard ERP. Below are the steps required for a full integration, and will not explain what
steps are required for local, remote, and existing servers.
PBX Connection
The basic setting for integrating your Standard ERP system with an Asterisk server is a PBX Connection. A PBX
Connection represents a connection to a unique actual VoIP Server.
To start with, you should create a new PBX Connection from the Telephony module in the PBX Connection register.
A PBX Connection is defined primarily by:
port=5038
bindaddr=0.0.0.0
allowmultiplelogin=yes
displayconnects=yes
timestampevents=yes
[myadmin]
secret=passwordxyz
deny=0.0.0.0/0.0.0.0
permit=1.2.3.4
read=system,call,originate
write=system,call,originate
In this case Port would be 5038, username myadmin and password passwordxyz. You should replace 1.2.3.4 by the
IP address of your Standard ERP server.
A PBX Connection has other fields organised in four tabs, and which are used when managing a local or remote
server entirely from Standard ERP. Administrators using an existing server fully managed by some external means
should skip over to the Contact records section.
Ignore SIP Channel: In case of an existing server, this will ignore possible intermediary SIP channels to handle
calls and instead only care about the end points. The Identifier is the name of the intermediary SIP channel to
ignore.
No Act For Calls Between Extensions Shorter Than: Disables the automatic Activity creation for internal calls
(detected by the short length of internal extensions). This is only applicable for PBX Connections of the Type
Digium SwitchVox. The Identifier is the maximum length.
Track number: Not used.
Unique callers only: With this option, only one call will be displayed in Communicator even if there is more than
one call from or to the number configured in Identifier.
Remote User: Linux user that will be used to copy the Asterisk configuration files to a remote server
Remote Configuration Directory: The path where to copy said configuration files. As such, it is important that
the directory is writable by the Linux user and that your Standard ERP server has been set up to be able to
connect directly to the remote Asterisk server without needing to enter a password (namely set up a Public
Key Authentication between both servers).
Enable Inter-Asterisk eXchange (IAX): By ticking this option, you will allow all other PBX Connections
configured in Standard ERP and set to use IAX to connect to this particular server as well as allow this server
to connect to all other servers enabled for IAX and configured in Standard ERP.
IAX Password: The password used by this server to connect to other IAX servers.
After completing the above configuration of a PBX Connection, you can already send the configuration to an Asterisk
server.
If you are running a local server, you can dump the configuration files by using the Local Asterisk Server settings from
the Telephony module.
If you close the Local Asterisk Inspect window and reopen it, you will see the path where your server is installed.
From the Operation Menu, you can also select “Update Asterisk Server Configuration” (which will dump the current
configuration on the Asterisk server configuration directory and restart the Asterisk server so that the configuration is
applied), Start Asterisk Server, and Stop Asterisk Server (which should both only rarely be used, for instance for
external maintenance purposes).
If you are running a remote server which is fully configured using Standard ERP, you should instead head to the
Asterisk SIP Configuration Files maintenance in the Routines of the Telephony module.
Use Paste Special in the PBX Connection to select the server you want to update, and tick Send Files to Server
before running. If you do not tick this option, then the files will only be generated locally on your Standard ERP server.
Note that this will only work if you have properly setup your PBX Connection and the Linux environment of your
Asterisk server (see above).
You can also select from the following other Maintenance Routines:
! Asterisk SIP trunks.
! Asterisk Users.
These routines will generate respectively only the configuration files for the SIP trunks of a PBX Connection, or for its
users, instead of regenerating all the files.
Note that the files are only sent to the server but not applied. An administrator needs to connect manually to the
Asterisk server and reload them. For instance by issuing a 'core reload' command from Asterisk's command line
interface.
From the Telephony module, you can create new Asterisk Users for your employees or partners.
PBX Connections: One or more servers on which the user will be created and allowed to connect to. Leave
blank to create the user on all PBX Connections configured.
Name: A descriptive name.
Username: Will be used to configure their SIP client.
Password: Will be used to configure their SIP client.
Group: No longer used.
Caller ID number: The display number that might be shown to the party this user is calling. Note that this can
easily be overridden by the configuration of a SIP client or SIP trunk. Especially when dialling out to
international telephone numbers, Caller ID numbers are likely to get lost.
Caller ID name: The display name that might be shown to the party this user is calling. Note that this can easily
As of now, Asterisk users and Standard ERP users (Persons), and their contact cards are not connected and as
such, Contact cards for your users will need to be filled in manually with their SIP contact details.
In the SIP field of the contact record pertaining to your Asterisk user should be filled in as username@hostname.
Where username comes from the Asterisk User record, and hostname from the PBX Connection record.
SIP Trunks
This section is applicable for local and remote servers.
At this point of the configuration, you can place calls between users of your Asterisk server. To reach out to the
outside world, you will need a SIP trunk or VoIP trunk. Each country usually has several providers that can help you
get started. As Asterisk is a commonly used VoIP server platform, it is easy to get help from your provider in general.
A simple Internet search should allow you to find a number of SIP providers for your country.
Using the information provided by your subscriber, you will be able to fill in the SIP Trunk record necessary for you to
place calls to the rest of the world. A SIP provider will usually be able to sell you the usage of one, or more phone
numbers that your contacts will be able to call to reach you. In some cases, your SIP provider might also allow you to
place outgoing calls. Make sure to carefully select the SIP provider that is able to provide you with the capabilities
you need to run your business smoothly.
Setting up a SIP trunk comes with a wide array of technical possibilities, a number of which are supported in
Instructions for users to use queues can be found earlier in the document.
The last remaining part of the configuration is now to assign sound files to be played to guide your callers through
your Menus and Queues.
Whereas all the previous configuration was done in Registers of the Telephony module, sounds will be configured
from the Settings of the Telephony module. More precisely, from the PBX Sounds setting.
Initial Queue Message: Played as an initial greeting when a caller reaches a Queue.
Line Busy: Played after 30 seconds of a caller waiting in a Queue.
Menu Closed: Played whenever a caller arrives to a Menu outside of the defined opening hours
Menu Message: Played as an initial greeting when a caller enters a Menu (should also describes the options
available from the Menu and the digits associated with each function).
Music on Hold: Music to play while the caller is waiting in a Queue.
Queue Closed: Played whenever a caller arrives to a Queue outside of the defined opening hours.
Once an Event is selected, use Paste Special to select the Queue/Menu where the sound file should be used. Only
one Queue or Menu can be selected. After Saving the Record, you can now attach a file to the Record following the
usual way of dragging and dropping the file over the paperclip icon or into the Document Manager window which
you can open by double-clicking the paperclip icon.
Note: the attached sound file must be a mono.wav file, sampled at 8kHz.
Remember to send the configuration to the server once done. The sound files will be copied during that stage a s
well.