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

Brett Wilson brett at launch3.net
Fri Aug 17 21:16:49 MSD 2012


The device(s) list fine with aplay -l and also as I mentioned sound files do
play out the speaker with aplay. When I built portaudio standalone from
portaudio's website, pa_devs also lists the sound devices fine. I tried
running FS as root and still same issue.

******************************************* 
Brett Wilson
IT Department
Launch 3 Ventures, LLC 
134 Myer Street 
Hackensack, NJ 07601 
Phone: 877.878.9134
Fax: 646.536.3866 
Email: Brett.Wilson at launch3.net
AOL IM: Brett.Wilson at launch3.net
www.Launch3.net 
www.Launch3telecom.com 
******************************************* 


-----Original Message-----
From: Mitch Capper [mailto:mitch.capper at gmail.com] 
Sent: Friday, August 17, 2012 10:48 AM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output
device

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-use
> rs
> http://www.freeswitch.org






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