mod_portaudio cannot find input or output device
Hey guys maybe you can help with this. Been trying to get portaudio working, but cannot. I have built from the latest git source. Even downloaded and build portaudio, which sees the device fine. Also, sound output works through aplay on the command line. So why can't mod_portaudio find the devices? # lsmod | grep snd snd_intel8x0 33455 0 snd_ac97_codec 106082 1 snd_intel8x0 ac97_bus 12642 1 snd_ac97_codec snd_pcm 80845 2 snd_intel8x0,snd_ac97_codec snd_seq_midi 13132 0 snd_rawmidi 25424 1 snd_seq_midi snd_seq_midi_event 14475 1 snd_seq_midi snd_seq 51567 2 snd_seq_midi,snd_seq_midi_event snd_timer 28931 2 snd_pcm,snd_seq snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq snd 62064 7 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_de vice soundcore 14635 1 snd snd_page_alloc 14108 2 snd_intel8x0,snd_pcm # lspci 00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 01) 00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01) 00:1d.0 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01) 00:1d.1 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01) 00:1d.2 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01) 00:1d.7 USB controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 81) 00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 01) 00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01) 00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01) 01:0c.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) # cat /etc/group audio:x:29:freeswitch,www-data www-data:x:33:freeswitch freeswitch@internal> load mod_portaudio +OK Reloading XML -ERR [module load file routine returned an error] 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 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1422 Loading streams ... 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1454 Parsing stream 'usb1' parameter indev = #2 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1458 Invalid indev specified for stream 'usb1' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1454 Parsing stream 'usb1' parameter outdev = #2 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1467 Invalid outdev specified for stream 'usb1' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1454 Parsing stream 'usb1' parameter sample-rate = 48000 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1454 Parsing stream 'usb1' parameter codec-ms = 10 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1454 Parsing stream 'usb1' parameter channels = 2 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1498 You need at least one device for stream 'usb1' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1454 Parsing stream 'default' parameter indev = #0 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1458 Invalid indev specified for stream 'default' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1454 Parsing stream 'default' parameter outdev = #1 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1467 Invalid outdev specified for stream 'default' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1454 Parsing stream 'default' parameter sample-rate = 48000 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1454 Parsing stream 'default' parameter codec-ms = 10 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1454 Parsing stream 'default' parameter channels = 1 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1498 You need at least one device for stream 'default' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1569 Loading endpoints ... 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1598 Parsing endpoint 'default' parameter instream = default:0 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1603 Invalid instream specified for endpoint 'default' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1598 Parsing endpoint 'default' parameter outstream = default:0 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1611 Invalid outstream specified for endpoint 'default' 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1620 You need at least one stream for endpoint 'default' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1598 Parsing endpoint 'usb1out-left' parameter outstream = usb1:0 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1611 Invalid outstream specified for endpoint 'usb1out-left' 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1620 You need at least one stream for endpoint 'usb1out-left' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1598 Parsing endpoint 'usb1out-right' parameter outstream = usb1:1 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1611 Invalid outstream specified for endpoint 'usb1out-right' 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1620 You need at least one stream for endpoint 'usb1out-right' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1598 Parsing endpoint 'usb1in-left' parameter instream = usb1:0 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1603 Invalid instream specified for endpoint 'usb1in-left' 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1620 You need at least one stream for endpoint 'usb1in-left' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1598 Parsing endpoint 'usb1in-right' parameter instream = usb1:1 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1603 Invalid instream specified for endpoint 'usb1in-right' 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1620 You need at least one stream for endpoint 'usb1in-right' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1598 Parsing endpoint 'usb1-left' parameter instream = usb1:0 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1603 Invalid instream specified for endpoint 'usb1-left' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1598 Parsing endpoint 'usb1-left' parameter outstream = usb1:0 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1611 Invalid outstream specified for endpoint 'usb1-left' 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1620 You need at least one stream for endpoint 'usb1-left' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1598 Parsing endpoint 'usb1-right' parameter instream = usb1:1 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1603 Invalid instream specified for endpoint 'usb1-right' 2012-08-17 08:15:23.591770 [DEBUG] mod_portaudio.c:1598 Parsing endpoint 'usb1-right' parameter outstream = usb1:1 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1611 Invalid outstream specified for endpoint 'usb1-right' 2012-08-17 08:15:23.591770 [ERR] mod_portaudio.c:1620 You need at least one stream for endpoint 'usb1-right' 2012-08-17 08:15:23.591770 [CRIT] switch_loadable_module.c:1310 Error Loading module /usr/local/freeswitch/mod/mod_portaudio.so **Module load routine returned an error** ******************************************* Brett Wilson IT Department Launch 3 Ventures, LLC 134 Myer Street Hackensack, NJ 07601 Phone: <tel:877.878.9134> 877.878.9134 Fax: <tel:646.536.3866> 646.536.3866 Email: <mailto:Brett.Wilson@launch3.net> Brett.Wilson@launch3.net AOL IM: <mailto:Brett.Wilson@launch3.net> Brett.Wilson@launch3.net <http://www.launch3.net/> www.Launch3.net <http://www.launch3telecom.com/> www.Launch3telecom.com ******************************************* <http://launch3telecom.blogspot.com/> Description: Description: Description: Description: Blogger-logo <http://www.facebook.com/pages/Launch-3-Telecom/165610820178720> Description: Description: Description: Description: FaceBook-Logo <https://twitter.com/launch3telecom> Description: Description: Description: Description: Twitter-Logo <https://plus.google.com/102713212642017290959> Description: Description: Description: Description: GPlus-Logo
On 17-08-12 14:18, Brett Wilson wrote: [snip]
*freeswitch@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_availa... Regards, Patrick
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@puzzled.xs4all.nl> wrote:
On 17-08-12 14:18, Brett Wilson wrote: [snip]
*freeswitch@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_availa...
Regards, Patrick
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com ******************************************* -----Original Message----- From: Mitch Capper [mailto:mitch.capper@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@puzzled.xs4all.nl> wrote:
On 17-08-12 14:18, Brett Wilson wrote: [snip]
*freeswitch@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@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
I disabled loading of any modules besides the bare miniumum, still no dice. I set the in/out device as #0 as shown with aplay -l. Still no good. ******************************************* 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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com ******************************************* -----Original Message----- From: Patrick Lists [mailto:freeswitch-list@puzzled.xs4all.nl] Sent: Friday, August 17, 2012 8:45 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output device On 17-08-12 14:18, Brett Wilson wrote: [snip]
*freeswitch@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_availa ble_devices Regards, Patrick
in/outdev dont matter as portaudio is saying it cant find any device. Paste the results of: ps auxf | grep freeswitch back. ~Mitch On Fri, Aug 17, 2012 at 10:17 AM, Brett Wilson <brett@launch3.net> wrote:
I disabled loading of any modules besides the bare miniumum, still no dice. I set the in/out device as #0 as shown with aplay -l. Still no good.
******************************************* 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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com *******************************************
-----Original Message----- From: Patrick Lists [mailto:freeswitch-list@puzzled.xs4all.nl] Sent: Friday, August 17, 2012 8:45 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output device
On 17-08-12 14:18, Brett Wilson wrote: [snip]
*freeswitch@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_availa ble_devices
Regards, Patrick
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
root 16791 1.6 0.9 37076 14456 ? S<l 16:33 0:08 /usr/local/freeswitch/bin/freeswitch -rp -nc ******************************************* 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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com ******************************************* -----Original Message----- From: Mitch Capper [mailto:mitch.capper@gmail.com] Sent: Friday, August 17, 2012 1:39 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output device in/outdev dont matter as portaudio is saying it cant find any device. Paste the results of: ps auxf | grep freeswitch back. ~Mitch On Fri, Aug 17, 2012 at 10:17 AM, Brett Wilson <brett@launch3.net> wrote:
I disabled loading of any modules besides the bare miniumum, still no dice. I set the in/out device as #0 as shown with aplay -l. Still no good.
******************************************* 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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com *******************************************
-----Original Message----- From: Patrick Lists [mailto:freeswitch-list@puzzled.xs4all.nl] Sent: Friday, August 17, 2012 8:45 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output device
On 17-08-12 14:18, Brett Wilson wrote: [snip]
*freeswitch@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_ availa ble_devices
Regards, Patrick
______________________________________________________________________ ___ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@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
Bump. Anybody got any more info for me? ******************************************* 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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com ******************************************* -----Original Message----- From: Brett Wilson [mailto:brett@launch3.net] Sent: Friday, August 17, 2012 4:43 PM To: 'FreeSWITCH Users Help' Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output device root 16791 1.6 0.9 37076 14456 ? S<l 16:33 0:08 /usr/local/freeswitch/bin/freeswitch -rp -nc ******************************************* 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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com ******************************************* -----Original Message----- From: Mitch Capper [mailto:mitch.capper@gmail.com] Sent: Friday, August 17, 2012 1:39 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output device in/outdev dont matter as portaudio is saying it cant find any device. Paste the results of: ps auxf | grep freeswitch back. ~Mitch On Fri, Aug 17, 2012 at 10:17 AM, Brett Wilson <brett@launch3.net> wrote:
I disabled loading of any modules besides the bare miniumum, still no dice. I set the in/out device as #0 as shown with aplay -l. Still no good.
******************************************* 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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com *******************************************
-----Original Message----- From: Patrick Lists [mailto:freeswitch-list@puzzled.xs4all.nl] Sent: Friday, August 17, 2012 8:45 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output device
On 17-08-12 14:18, Brett Wilson wrote: [snip]
*freeswitch@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_ availa ble_devices
Regards, Patrick
______________________________________________________________________ ___ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@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
It is not installed. ******************************************* 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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com ******************************************* -----Original Message----- From: Patrick Lists [mailto:freeswitch-list@puzzled.xs4all.nl] Sent: Monday, August 20, 2012 4:01 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output device On 20-08-12 21:33, Brett Wilson wrote:
Bump. Anybody got any more info for me?
Not sure if mentioned before but have you tried disabling SELinux? Regards, Patrick
I am not sure why portaudio external can see devices just fine but the FS portaudio build can't unfortunately you would need to debug in the code most likely to figure out further, I have no further tips as to why it can't find any devices. ~Mitch On Mon, Aug 20, 2012 at 1:51 PM, Brett Wilson <brett@launch3.net> wrote:
It is not installed.
******************************************* 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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com *******************************************
-----Original Message----- From: Patrick Lists [mailto:freeswitch-list@puzzled.xs4all.nl] Sent: Monday, August 20, 2012 4:01 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output device
On 20-08-12 21:33, Brett Wilson wrote:
Bump. Anybody got any more info for me?
Not sure if mentioned before but have you tried disabling SELinux?
Regards, Patrick
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
How do I go about debugging it if there is no crash? I looked at the wiki but looks like gdb would only work if there is a crash. ******************************************* 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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com ******************************************* -----Original Message----- From: Mitch Capper [mailto:mitch.capper@gmail.com] Sent: Monday, August 20, 2012 6:28 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output device I am not sure why portaudio external can see devices just fine but the FS portaudio build can't unfortunately you would need to debug in the code most likely to figure out further, I have no further tips as to why it can't find any devices. ~Mitch On Mon, Aug 20, 2012 at 1:51 PM, Brett Wilson <brett@launch3.net> wrote:
It is not installed.
******************************************* 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@launch3.net AOL IM: Brett.Wilson@launch3.net www.Launch3.net www.Launch3telecom.com *******************************************
-----Original Message----- From: Patrick Lists [mailto:freeswitch-list@puzzled.xs4all.nl] Sent: Monday, August 20, 2012 4:01 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_portaudio cannot find input or output device
On 20-08-12 21:33, Brett Wilson wrote:
Bump. Anybody got any more info for me?
Not sure if mentioned before but have you tried disabling SELinux?
Regards, Patrick
______________________________________________________________________ ___ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@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
On 21-08-12 01:56, Brett Wilson wrote:
How do I go about debugging it if there is no crash? I looked at the wiki but looks like gdb would only work if there is a crash.
I guess it would boil down to adding debug statements in the code. On a different note, did you try different versions of the portaudio libs? Looking at http://www.portaudio.com/download.html there seem to be several versions that you could try. Maybe try to match the date of the mod_portaudio commits to the stable release that comes closest to that date. Regards, Patrick
participants (3)
-
Brett Wilson
-
Mitch Capper
-
Patrick Lists