Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Error loading portaudio module


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
jason at jasonjgw.net
Guest





PostPosted: Fri Dec 12, 2008 1:19 pm    Post subject: [Freeswitch-users] Error loading portaudio module Reply with quote

I am new to FreeSWITCH; hence this is the first of what will probably be a
number of questions as I learn.

I've compiled the latest code from svn trunk under Debian Sid (Linux kernel
2.6.27, x86_64 architecture), with the portaudio19-dev package installed.

Whenever I try to load the portaudio module I get the following in the logs. I
haven't changed anything in the default portaudio configuration that comes
with FreeSWITCH.

PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Dec 12 2008)'
Number of devices = 0
2008-12-12 20:17:51 [ERR] mod_portaudio.c:883 load_config() Cannot find an
input
device!
2008-12-12 20:17:51 [ERR] mod_portaudio.c:893 load_config() Cannot find an
input
device!
2008-12-12 20:17:51 [CRIT] switch_loadable_module.c:839
switch_loadable_module_l
oad_file() Error Loading module /opt/freeswitch/mod/mod_portaudio.so

Other software that uses portaudio is known to work. I would expect FreeSWITCH
to detect my Alsa sound devices.

Suggestions welcome.


_______________________________________________
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Dec 12, 2008 3:09 pm    Post subject: [Freeswitch-users] Error loading portaudio module Reply with quote

Jason,

If I understand correctly software other than PA can lock up the sound
card so that PA doesn't "see" it. That might explain why PA reports
number of devices = 0. Could you check to see if possibly something
else has control of your sound card, perhaps ALSA? Turn off anything
that might use the sound card and then restart FS to see if PA can
then detect your device.

-MC

On Fri, Dec 12, 2008 at 1:38 AM, Jason White <jason@jasonjgw.net> wrote:
Quote:
I am new to FreeSWITCH; hence this is the first of what will probably be a
number of questions as I learn.

I've compiled the latest code from svn trunk under Debian Sid (Linux kernel
2.6.27, x86_64 architecture), with the portaudio19-dev package installed.

Whenever I try to load the portaudio module I get the following in the logs. I
haven't changed anything in the default portaudio configuration that comes
with FreeSWITCH.

PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Dec 12 2008)'
Number of devices = 0
2008-12-12 20:17:51 [ERR] mod_portaudio.c:883 load_config() Cannot find an
input
device!
2008-12-12 20:17:51 [ERR] mod_portaudio.c:893 load_config() Cannot find an
input
device!
2008-12-12 20:17:51 [CRIT] switch_loadable_module.c:839
switch_loadable_module_l
oad_file() Error Loading module /opt/freeswitch/mod/mod_portaudio.so

Other software that uses portaudio is known to work. I would expect FreeSWITCH
to detect my Alsa sound devices.

Suggestions welcome.


_______________________________________________
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


_______________________________________________
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
Back to top
gmaruzz at celliax.org
Guest





PostPosted: Fri Dec 12, 2008 3:32 pm    Post subject: [Freeswitch-users] Error loading portaudio module Reply with quote

Hi there,

you have to use the "default" ALSA audio device to share it, and to
have it automatically format and rate converted.

the "default" ALSA device is not the default portaudio device (not in
the portaudio version used currently by FS).

You have to find out what device id it has under portaudio.

But in this specific case, no device at all was found.

So, maybe portaudio was not commpiled with ALSA support (do you have the ALSA


Sincerely,

Giovanni Maruzzelli
=========================================
Company : Celliax
Website: www.celliax.org
Address : via Pierlombardo 9, 20135 Milano
Country/Territory : Italy
Business Email: gmaruzz at celliax dot org
Cell : 39-347-2665618
Fax : 39-02-87390039




On Fri, Dec 12, 2008 at 8:58 PM, Michael Collins <msc@freeswitch.org> wrote:
Quote:
Jason,

If I understand correctly software other than PA can lock up the sound
card so that PA doesn't "see" it. That might explain why PA reports
number of devices = 0. Could you check to see if possibly something
else has control of your sound card, perhaps ALSA? Turn off anything
that might use the sound card and then restart FS to see if PA can
then detect your device.

-MC

On Fri, Dec 12, 2008 at 1:38 AM, Jason White <jason@jasonjgw.net> wrote:
Quote:
I am new to FreeSWITCH; hence this is the first of what will probably be a
number of questions as I learn.

I've compiled the latest code from svn trunk under Debian Sid (Linux kernel
2.6.27, x86_64 architecture), with the portaudio19-dev package installed.

Whenever I try to load the portaudio module I get the following in the logs. I
haven't changed anything in the default portaudio configuration that comes
with FreeSWITCH.

PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Dec 12 2008)'
Number of devices = 0
2008-12-12 20:17:51 [ERR] mod_portaudio.c:883 load_config() Cannot find an
input
device!
2008-12-12 20:17:51 [ERR] mod_portaudio.c:893 load_config() Cannot find an
input
device!
2008-12-12 20:17:51 [CRIT] switch_loadable_module.c:839
switch_loadable_module_l
oad_file() Error Loading module /opt/freeswitch/mod/mod_portaudio.so

Other software that uses portaudio is known to work. I would expect FreeSWITCH
to detect my Alsa sound devices.

Suggestions welcome.


_______________________________________________
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


_______________________________________________
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


_______________________________________________
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
Back to top
gmaruzz at celliax.org
Guest





PostPosted: Fri Dec 12, 2008 3:35 pm    Post subject: [Freeswitch-users] Error loading portaudio module Reply with quote

Sorry, the previous one was sent by mistake.

This one is complete:


Hi there,

you have to use the "default" ALSA audio device to share it, and to
have it automatically format and rate converted.

the "default" ALSA device is not the default portaudio device (not in
the portaudio version used currently by FS).

You have to find out what device id it has under portaudio.

But in this specific case, no device at all was found.

So, maybe portaudio was not commpiled with ALSA support (do you have
the ALSA development library installed?).

Also, after recompiling portaudio and mod_portaudio, you can launch FS
giving it the PA_ALSA_PLUGHW=1 environment variable, so portaudio will
use the plughw devices (that are automatically converted to the
desired rate/format) and not the raw devices.

Giovanni Maruzzelli
=========================================
Company : Celliax
Website: www.celliax.org
Address : via Pierlombardo 9, 20135 Milano
Country/Territory : Italy
Business Email: gmaruzz at celliax dot org
Cell : 39-347-2665618
Fax : 39-02-87390039




On Fri, Dec 12, 2008 at 9:25 PM, Giovanni Maruzzelli
<gmaruzz@celliax.org> wrote:
Quote:
Hi there,

you have to use the "default" ALSA audio device to share it, and to
have it automatically format and rate converted.

the "default" ALSA device is not the default portaudio device (not in
the portaudio version used currently by FS).

You have to find out what device id it has under portaudio.

But in this specific case, no device at all was found.

So, maybe portaudio was not commpiled with ALSA support (do you have the ALSA


Sincerely,

Giovanni Maruzzelli
=========================================
Company : Celliax
Website: www.celliax.org
Address : via Pierlombardo 9, 20135 Milano
Country/Territory : Italy
Business Email: gmaruzz at celliax dot org
Cell : 39-347-2665618
Fax : 39-02-87390039




On Fri, Dec 12, 2008 at 8:58 PM, Michael Collins <msc@freeswitch.org> wrote:
Quote:
Jason,

If I understand correctly software other than PA can lock up the sound
card so that PA doesn't "see" it. That might explain why PA reports
number of devices = 0. Could you check to see if possibly something
else has control of your sound card, perhaps ALSA? Turn off anything
that might use the sound card and then restart FS to see if PA can
then detect your device.

-MC

On Fri, Dec 12, 2008 at 1:38 AM, Jason White <jason@jasonjgw.net> wrote:
Quote:
I am new to FreeSWITCH; hence this is the first of what will probably be a
number of questions as I learn.

I've compiled the latest code from svn trunk under Debian Sid (Linux kernel
2.6.27, x86_64 architecture), with the portaudio19-dev package installed.

Whenever I try to load the portaudio module I get the following in the logs. I
haven't changed anything in the default portaudio configuration that comes
with FreeSWITCH.

PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Dec 12 2008)'
Number of devices = 0
2008-12-12 20:17:51 [ERR] mod_portaudio.c:883 load_config() Cannot find an
input
device!
2008-12-12 20:17:51 [ERR] mod_portaudio.c:893 load_config() Cannot find an
input
device!
2008-12-12 20:17:51 [CRIT] switch_loadable_module.c:839
switch_loadable_module_l
oad_file() Error Loading module /opt/freeswitch/mod/mod_portaudio.so

Other software that uses portaudio is known to work. I would expect FreeSWITCH
to detect my Alsa sound devices.

Suggestions welcome.


_______________________________________________
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


_______________________________________________
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



_______________________________________________
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
Back to top
jason at jasonjgw.net
Guest





PostPosted: Fri Dec 12, 2008 6:33 pm    Post subject: [Freeswitch-users] Error loading portaudio module Reply with quote

On Fri, Dec 12, 2008 at 09:30:16PM +0100, Giovanni Maruzzelli wrote:

Quote:
But in this specific case, no device at all was found.

So, maybe portaudio was not commpiled with ALSA support (do you have
the ALSA development library installed?).

Yes, and in any case the version of PortAudio which is installed came from the
Debian package.

Does FreeSWITCH support PortAudio 19? If not, maybe there are API differences.
Quote:

Also, after recompiling portaudio and mod_portaudio, you can launch FS
giving it the PA_ALSA_PLUGHW=1 environment variable, so portaudio will
use the plughw devices (that are automatically converted to the
desired rate/format) and not the raw devices.

I'll try that.

To answer another question that arose in this thread, I have no other software
currently using the audio devices. Alsa is known to work, as is other software
that accesses the Alsa devices with PortAudio.


_______________________________________________
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
Back to top
jason at jasonjgw.net
Guest





PostPosted: Fri Dec 12, 2008 7:59 pm    Post subject: [Freeswitch-users] Error loading portaudio module Reply with quote

This is interesting...

I wrote the following test.


#include<stdio.h>
#include <portaudio.h>
int main(int argc, char **argv)
{
Pa_Initialize();
printf("Number of devices: %d\n",Pa_GetDeviceCount());
Pa_Terminate();
}

then I compiled and executed it:
gcc -o pa_test pa_test.c -lportaudio
./portaudio

Number of devices: 10

Quote:
From what I can see, the code in mod_portaudio.c is using exactly the same API
call, but it seems to be returning 0 in that case.


_______________________________________________
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
Back to top
jason at jasonjgw.net
Guest





PostPosted: Fri Dec 12, 2008 8:37 pm    Post subject: [Freeswitch-users] Error loading portaudio module Reply with quote

With apologies for the noise on the list, I just realized that FreeSWITCH is
building its own version of PortAudio.

I can confirm that Alsa is being detected and support for it included.

So, there must be some difference between the version of PortAudio that comes
with FreeSWITCH, and the version installed in my /usr/lib, such that the
FreeSWITCH version fails to detect my Alsa devices.


_______________________________________________
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
Back to top
jason at jasonjgw.net
Guest





PostPosted: Fri Dec 12, 2008 9:08 pm    Post subject: [Freeswitch-users] Error loading portaudio module Reply with quote

The problem is now solved.

It turned out to be permissions: the freeswitch user wasn't added to the audio
group in /etc/group, hence didn't have permission to interrogate the audio
devices.

Perhaps a future version of the Debian package could address this, or at least
it should be noted somewhere.


_______________________________________________
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Dec 12, 2008 9:33 pm    Post subject: [Freeswitch-users] Error loading portaudio module Reply with quote

Jason,

Thanks for troubleshooting this! At the very least I will add a note
to the PA section of the wiki.
-MC

On Fri, Dec 12, 2008 at 6:01 PM, Jason White <jason@jasonjgw.net> wrote:
Quote:
The problem is now solved.

It turned out to be permissions: the freeswitch user wasn't added to the audio
group in /etc/group, hence didn't have permission to interrogate the audio
devices.

Perhaps a future version of the Debian package could address this, or at least
it should be noted somewhere.


_______________________________________________
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


_______________________________________________
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
Back to top
mike at jerris.com
Guest





PostPosted: Sat Dec 13, 2008 4:59 pm    Post subject: [Freeswitch-users] Error loading portaudio module Reply with quote

Please file a bug on Jira.freeswitch.org on this issue so we make sure
it gets adressef in the debs.

Mike

On Dec 12, 2008, at 9:01 PM, Jason White <jason@jasonjgw.net> wrote:

Quote:
The problem is now solved.

It turned out to be permissions: the freeswitch user wasn't added to
the audio
group in /etc/group, hence didn't have permission to interrogate the
audio
devices.

Perhaps a future version of the Debian package could address this,
or at least
it should be noted somewhere.


_______________________________________________
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

_______________________________________________
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Sat Dec 13, 2008 6:02 pm    Post subject: [Freeswitch-users] Error loading portaudio module Reply with quote

Done: http://jira.freeswitch.org/browse/FSBUILD-95

On Sat, Dec 13, 2008 at 1:51 PM, Michael Jerris <mike@jerris.com> wrote:
Quote:
Please file a bug on Jira.freeswitch.org on this issue so we make sure
it gets adressef in the debs.

Mike

On Dec 12, 2008, at 9:01 PM, Jason White <jason@jasonjgw.net> wrote:

Quote:
The problem is now solved.

It turned out to be permissions: the freeswitch user wasn't added to
the audio
group in /etc/group, hence didn't have permission to interrogate the
audio
devices.

Perhaps a future version of the Debian package could address this,
or at least
it should be noted somewhere.


_______________________________________________
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

_______________________________________________
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


_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services