text stringlengths 0 152 |
|---|
Exten: <DialedExten...........> CLCID: <ConnectedLineCID.......> |
========================================================================================== |
Endpoint: 0000f30A0A01 Not in use 0 of inf |
InAuth: 1/0000f30A0A01 |
Transport: transport-udp udp 0 0 0.0.0.0:5060 |
Endpoint: 0000f30B0B02 Unavailable 0 of inf |
InAuth: 2/0000f30B0B02 |
Transport: transport-udp udp 0 0 0.0.0.0:5060 |
Objects found: 2 |
44 |
| |
Chapter 3: Installing Asterisk |
If you don’t see the two endpoints listed, you’ve got a configuration issue. You’re |
going to have to work backward to ensure you don’t have any errors that prevent |
Asterisk from connecting to the database and instantiating these two endpoints. |
Common Installation Errors |
The following conditions (in no particular order) cause the majority of installation |
errors: |
Syntax errors |
In some cases, substituting a tab for a space can be enough to break something. |
UnixODBC, for example, has proven to be sensitive to missing spaces between |
key = value definitions. The best advice we can give here is to use copy/paste |
whenever possible, as opposed to manual input. |
Permissions problems |
These can be annoying to resolve, but error messages will generally provide the |
clues you need. The /var/log/messages file is often a gold mine for useful clues. |
Missing steps |
A missed step might not have any noticeable effects until many steps later. |
Double-check everything, and verify functionality before moving on. |
Credentials problems |
Always verify that the users and passwords you create work manually, before |
using them in a configuration file. |
It’s not possible nor necessary to dig into every warning and error message you might |
see, but if we’ve provided a test to run, and it doesn’t produce anything like we said it |
should, you should probably work through that step again until you’ve figured out |
what’s going on. |
Some Final Configuration Notes |
Once installed, Asterisk will have created an environment for itself in your Linux |
machine. The following sections have some useful tidbits of information about how |
you can interact with your new Asterisk installation. |
Sample Configuration Files for Future Reference |
Even though we warned you not to run the sudo make samples command during the |
installation (because that will fill your /etc/asterisk directory with a bunch of stuff you |
don’t want), the sample files are nevertheless a fantastic reference. In your Asterisk |
source directory, you will find the following two directories: |
Common Installation Errors |
| |
45 |
~/src/asterisk-16.<TAB>/configs/basic-pbx |
~/src/asterisk-16.<TAB>/configs/samples |
The files in those folders are worth reading through (especially for any module you’re |
working with and want to research how to do something). |
Give them a read when you have a chance. |
Running make samples on a system that already has configuration |
files will overwrite the existing files. |
The Asterisk Shell Command |
Asterisk can be run either as a daemon or as an application. In general, you will want |
to run it as an application when you are building, testing, and troubleshooting, and as |
a daemon when you put it into production. |
The command to start Asterisk is the same regardless of whether you’re running it as |
a daemon or an application: |
asterisk |
However, without any arguments, this command will assume certain defaults and |
start Asterisk as a background application. In other words, you never want to run the |
command asterisk on its own, but rather will want to pass some options to it to bet‐ |
ter define the behavior you are looking for. The following list provides some examples |
of common usages: |
-h |
-c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.