[Freeswitch-users] mod_portaudio cannot find input or output device

Mitch Capper mitch.capper at gmail.com
Fri Aug 17 18:48:29 MSD 2012


The first problem may be the default config you are using is going to
cause the console to load with a lot of errors that may just add
confusion.  Portaudio streams are enabled but not documented by
default and are throwing atleast some of those errors (and for most
are not needed).   Try a much simple PA config like:
                <configuration name="portaudio.conf"
description="Soundcard Endpoint">
                  <settings>
                    <param name="ring-file"
value="tone_stream://%(2000,4000,440.0,480.0);loops=20"/>
                    <param name="ring-interval" value="5"/>
                    <param name="hold-file" value="$${hold_music}"/>
                    <param name="dialplan" value="XML"/>
                    <param name="sample-rate" value="24000"/>
                    <param name="codec-ms" value="20"/>
                  </settings>
                </configuration>

Then see if you can get portaudio loading, however I believe the
inability to find any audio devices is kicking the error out.  You
would want to try running aplay -l from a command line to make sure
some audio devices are listed.  In addition try running freeswitch as
root without the -u flag and ensure that its not a permissions
problem.

~Mitch

On Fri, Aug 17, 2012 at 5:45 AM, Patrick Lists
<freeswitch-list at puzzled.xs4all.nl> wrote:
> On 17-08-12 14:18, Brett Wilson wrote:
> [snip]
>> *freeswitch at internal> load mod_portaudio*
>>
>> +OK Reloading XML
>>
>> -ERR [module load file routine returned an error]
>
> That ERR does not look good. Iirc I have seen that with mod_java when
> starting FreeSWITCH. Subsequent manual loading of the mod_java module
> went fine. But in your case you are already manually loading the module.
>
>> *2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1767 Cannot find an
>> input device*
>>
>> *2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1777 Cannot find an
>> output device*
>
> Did you set the input/output devices? Lot's of info on the wiki:
>
> http://wiki.freeswitch.org/wiki/FreeSwitch_Enpoint_Portaudio#List_the_available_devices
>
> Regards,
> Patrick
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list