First, the major configuration files that need to be modified are in /etc/asterisk. Each file that ends in .conf is a configuration file, which sets parameters for some specific part of Asterisk.
-->
The configuration we do in this chapter won’t be particularly useful on its own, but it will be a kernel to build on. We’re going to touch on the following files:
zaptel.conf
-->
Configuring a SIP phone to work with Asterisk does not require much. However, because there are so many options possible in both Asterisk and the configuration of the particular telephone set or softphone, things can get confusing.
This is not the best way, but it is the simplest way, and from a working foundation, it is much easier to take a basic configuration and tweak things until you get the solution you need.
Defining the SIP device in Asterisk
If you put the following in a sip.conf file, you will be able to register a phone to the system.
[general]
- Here, we’ll do low-level configuration for the hardware interface. We’ll set up one FXO channel and one FXS channel. This configures the driver for the Linux kernel.
- In this file, we’ll configure Asterisk’s interface to the hardware. This file contains a slightly higher-level configuration of the hardware in the Asterisk user-level process.
- The dialplans we create will be extremely primitive, but they will prove that the system is working.
- This is where we’ll configure the SIP protocol.
- This is where we’ll configure incoming and outgoing IAX channels.
- disallow=all
- allow=ulaw
- allow=alaw
- type=friend
- context=incoming (or whatever you want)
- host=dynamic
- secret=your password
- dtmfmode=rfc2833
- canreinvite= no
- port=5060
- dial=SIP/100
- callerid=device <100>
- type=friend
- context=incoming
- host=dynamic
- secret=your password
- dial=SIP/101
- ....
- ....
Comments
Post a Comment