2007-01-23 01:12:47 +00:00
|
|
|
<configuration name="portaudio.conf" description="Soundcard Endpoint">
|
|
|
|
<settings>
|
|
|
|
<!-- indev, outdev, ringdev:
|
|
|
|
partial case sensitive string match on something in the name
|
|
|
|
or the device number prefixed with # eg "#1" (or blank for default) -->
|
|
|
|
|
|
|
|
<!-- device to use for input -->
|
2011-03-18 01:46:52 +00:00
|
|
|
<param name="indev" value="Built-in Input"/>
|
2007-01-23 01:12:47 +00:00
|
|
|
<!-- device to use for output -->
|
2011-03-18 01:46:52 +00:00
|
|
|
<!--<param name="outdev" value="Built-in Output"/>-->
|
|
|
|
<param name="outdev" value="#2"/>
|
2007-01-23 01:12:47 +00:00
|
|
|
|
|
|
|
<!--device to use for inbound ring -->
|
2011-03-18 01:46:52 +00:00
|
|
|
<param name="ringdev" value="Built-in Output"/>
|
|
|
|
|
2007-01-23 01:12:47 +00:00
|
|
|
<!--File to play as the ring sound -->
|
|
|
|
<!--<param name="ring-file" value="/sounds/ring.wav"/>-->
|
|
|
|
<!--Number of seconds to pause between rings -->
|
|
|
|
<!--<param name="ring-interval" value="5"/>-->
|
2009-01-23 21:34:43 +00:00
|
|
|
<!--Enable or Disable dual_streams-->
|
|
|
|
<!--<param name="dual-streams" value="true"/>-->
|
2007-01-23 01:12:47 +00:00
|
|
|
|
|
|
|
<!--file to play when calls are on hold-->
|
2009-01-16 21:48:01 +00:00
|
|
|
<param name="hold-file" value="$${hold_music}"/>
|
2007-01-23 01:12:47 +00:00
|
|
|
<!--Timer to use for hold music (i'd leave this one commented)-->
|
|
|
|
<!--<param name="timer-name" value="soft"/>-->
|
|
|
|
|
|
|
|
<!--Default dialplan and caller-id info -->
|
|
|
|
<param name="dialplan" value="XML"/>
|
2008-10-12 00:28:48 +00:00
|
|
|
<param name="cid-name" value="$${outbound_caller_name}"/>
|
|
|
|
<param name="cid-num" value="$${outbound_caller_id}"/>
|
2007-01-23 01:12:47 +00:00
|
|
|
|
|
|
|
<!--audio sample rate and interval -->
|
2011-03-18 01:46:52 +00:00
|
|
|
<!--<param name="sample-rate" value="48000"/>-->
|
|
|
|
<param name="sample-rate" value="8000"/>
|
2007-01-23 01:12:47 +00:00
|
|
|
<param name="codec-ms" value="20"/>
|
|
|
|
</settings>
|
2011-03-18 01:46:52 +00:00
|
|
|
|
2011-03-20 07:26:01 +00:00
|
|
|
<streams>
|
|
|
|
<stream name="usb1">
|
|
|
|
<!-- How many channels to open for this stream -->
|
|
|
|
<param name="indev" value="#2" />
|
|
|
|
<param name="outdev" value="#2" />
|
|
|
|
<param name="sample-rate" value="48000" />
|
|
|
|
<param name="codec-ms" value="10" />
|
2011-03-18 01:46:52 +00:00
|
|
|
<param name="channels" value="2" />
|
2011-03-20 07:26:01 +00:00
|
|
|
</stream>
|
|
|
|
<stream name="default">
|
|
|
|
<!-- How many channels to open for this stream -->
|
|
|
|
<param name="indev" value="#0" />
|
|
|
|
<param name="outdev" value="#1" />
|
|
|
|
<param name="sample-rate" value="48000" />
|
|
|
|
<param name="codec-ms" value="10" />
|
|
|
|
<param name="channels" value="1" />
|
|
|
|
</stream>
|
|
|
|
</streams>
|
2011-03-18 01:46:52 +00:00
|
|
|
|
|
|
|
<endpoints>
|
|
|
|
|
2011-03-20 07:26:01 +00:00
|
|
|
<!-- An endpoint is a handle name to represent a logical container to
|
|
|
|
read media from and write media to.
|
|
|
|
The endpoint can use any input/output stream combination for that purpose as
|
|
|
|
long as the streams match the sampling rate and codec-ms (see <streams> XML tag) -->
|
|
|
|
<endpoint name="usb1out-left">
|
|
|
|
<!-- The instream, outstream parameters follow the syntax
|
|
|
|
<stream-name>:<channel index> You can omit either the outstream
|
|
|
|
or the instream, but not both! -->
|
|
|
|
<param name="outstream" value="usb1:0" />
|
2011-03-18 01:46:52 +00:00
|
|
|
</endpoint>
|
|
|
|
|
2011-03-20 07:26:01 +00:00
|
|
|
<endpoint name="usb1out-right">
|
|
|
|
<param name="outstream" value="usb1:1" />
|
|
|
|
</endpoint>
|
|
|
|
|
|
|
|
<endpoint name="default">
|
|
|
|
<param name="instream" value="default:0" />
|
|
|
|
<param name="outstream" value="default:0" />
|
2011-03-18 01:46:52 +00:00
|
|
|
</endpoint>
|
|
|
|
|
|
|
|
</endpoints>
|
|
|
|
|
2007-01-23 01:12:47 +00:00
|
|
|
</configuration>
|
2011-03-18 01:46:52 +00:00
|
|
|
|