Upgrade 3CX to v18 and get it hosted free!

Asterisk config phone.conf

Author image

Configuration of Linux Telephony Devices under * is fairly painless. Below is the sample config file, and their descriptions.

phone.conf Sample:

 


[interfaces]
;
; Select a mode, either the phone jack provides dialtone, reads digits,
; then starts PBX with the dialed extension (dialtone mode), or
; immediately provides the PBX in the default or configured context at extension "s",
; without reading any digits or providing any dialtone (this is the immediate
; mode, the default).  Also, you can set the mode to "fxo" if you have a
; linejack to make it operate properly as a fxo port. Also, in the CVS version of Asterisk,
; you should set the mode to "fxs" if Asterisk need not provide dialtone.
;
mode=dialtone
;mode=immediate
;mode=fxo
;mode=fxs
;
; You can decide which format will be used as the preferred codec, "g723.1", "slinear", or "ulaw".
; XXX Be careful, sometimes the card causes kernel panics when running
; in signed linear mode for some reason... XXX
;
format=ulaw
;format=slinear
;format=g723.1
;
; And set the echo cancellation to "off", "low", "medium", and "high".
; This is not supported on all phones.
;
echocancel=medium
;
; You can optionally use VAD/CNG silence supression
;
;silencesupression=yes
;
; List all devices we can use.  Contexts may also be specified
;
;context=local
;
; You can set txgain and rxgain for each device in the same way as context.
; If you want to change default gain value (1.0 =~ 100%) for device, simple
; add txgain or rxgain line before device line. But rememeber, if you change
; volume all cards listed below will be affected by these values. You can
; use float values (1.0, 0.5, 2.0) or percentage values (100%, 150%, 50%).
;
;txgain=100%
;rxgain=1.0

; This sets the Caller Id string and number for calls originating on this channel.
;callerid = "myname" <555-555-1212>

; Specify the operating system device file to be used for the channel.
; You can have multiple devices defined, but these directives must be the last
; directives in this file, otherwise other options will be ineffective.
device=/dev/phone0

Back to Asterisk config files
Back to Asterisk


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.