Asterisk config alsa.conf
The alsa.conf Asterisk configuration file allows configuration of ALSA channels within Asterisk. ALSA channels allow calls to be placed to/from ALSA devices, using ALSA audio input/output devices as telephony devices. This allows a headphone and microphone plugged into a sound card, for example, to be used as a softphone. Calls can be placed and digits can be dialed from the Asterisk CLI, using the "dial", "answer", and "hangup" CLI commands.
The alsa.conf file may contain any of the following directives:
With 1.2.x versions of Asterisk, only one ALSA channel can be created, only one input/output device pair can be associated with the ALSA channel, and only one call can be placed to/from the ALSA channel at a given time. If the ALSA channel is in use when an incoming call is routed to it, the destination will be treated as busy.
Similar to the ALSA channel driver, the OSS channel driver provides similar functionality, but for OSS-compatible devices. See Asterisk config oss.conf.
Only one of either the ALSA or OSS channel drivers may be loaded at a given time. So, if you plan to use an ALSA channel, you must enable chan_alsa and disable chan_oss in modules.conf. Ex:
noload => chan_oss.so
load => chan_alsa.so
The alsa.conf file may contain any of the following directives:
- autoanswer = yes or no
- context = <context name>
- extension = <extension name or number>
- input_device = <ALSA device name>
- output_device = <ALSA device name>
With 1.2.x versions of Asterisk, only one ALSA channel can be created, only one input/output device pair can be associated with the ALSA channel, and only one call can be placed to/from the ALSA channel at a given time. If the ALSA channel is in use when an incoming call is routed to it, the destination will be treated as busy.
Similar to the ALSA channel driver, the OSS channel driver provides similar functionality, but for OSS-compatible devices. See Asterisk config oss.conf.
Only one of either the ALSA or OSS channel drivers may be loaded at a given time. So, if you plan to use an ALSA channel, you must enable chan_alsa and disable chan_oss in modules.conf. Ex:
noload => chan_oss.so
load => chan_alsa.so
Created by: voipdog, Last modification: Tue 02 of Sep, 2008 (03:47 UTC)
Featured -

Tap here to compare the top VoIP providers
