PortAudio not closing audio device properly after hangup?
Under revision 11484, if I make a call using PortAudio: pa call <extension> then hang up the call: pa hangup and after that, try to access the same audio device with other software, I get a "device or resource busy" error. This is using Alsa under Debian Sid, kernel 2.6.26. Shutting down FreeSWITCH fixes this. This is also a regression compared with the earlier version of FreeSWITCH that I was running before doing the latest build. It seems to me that the device isn't being closed as it should be when the last call hangs up.
Thats really odd since we never close the audio device anymore. Can you open a jira with the proper debug info so I can take a look at it? Please assign it to "brian" when reporting. http://jira.freeswitch.org Include debug log, double check you're on svn trunk... and then collect the info and attach it to the jira. Please don't paste logs inline its harder to read ;) /b On Jan 25, 2009, at 3:24 AM, Jason White wrote:
Under revision 11484, if I make a call using PortAudio: pa call <extension> then hang up the call: pa hangup and after that, try to access the same audio device with other software, I get a "device or resource busy" error.
This is using Alsa under Debian Sid, kernel 2.6.26.
Shutting down FreeSWITCH fixes this.
This is also a regression compared with the earlier version of FreeSWITCH that I was running before doing the latest build.
It seems to me that the device isn't being closed as it should be when the last call hangs up.
_______________________________________________ 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
Brian West <brian@freeswitch.org> wrote:
Thats really odd since we never close the audio device anymore.
Maybe we're misunderstanding each other here. Not closing the audio device anymore is the bug, because trying to access that device with another audio program (e.g., a sound file player outside FreeSWITCH) fails, even after all FreeSWITCH calls have hung up, because FreeSWITCH is still holding the audio device open. Would it be possible to have a configuration parameter that says, in effect, close the audio device when it isn't being used?
Oh so its a problem with your linux distro and how it setups up the sound card... aren't there things for Linux that allow multiple access to the sound hardware? ESD? /b On Jan 25, 2009, at 4:02 AM, Jason White wrote:
Maybe we're misunderstanding each other here. Not closing the audio device anymore is the bug, because trying to access that device with another audio program (e.g., a sound file player outside FreeSWITCH) fails, even after all FreeSWITCH calls have hung up, because FreeSWITCH is still holding the audio device open.
Would it be possible to have a configuration parameter that says, in effect, close the audio device when it isn't being used?
Brian West <brian@freeswitch.org> wrote:
Oh so its a problem with your linux distro and how it setups up the sound card... aren't there things for Linux that allow multiple access to the sound hardware? ESD?
It's supposed to work by default in recent versions of Alsa. I'll investigate why it isn't working in this case.
I'll try another approach. try latest trunk and see how that works? On Sun, Jan 25, 2009 at 4:19 AM, Jason White <jason@jasonjgw.net> wrote:
Brian West <brian@freeswitch.org> wrote:
Oh so its a problem with your linux distro and how it setups up the sound card... aren't there things for Linux that allow multiple access to the sound hardware? ESD?
It's supposed to work by default in recent versions of Alsa.
I'll investigate why it isn't working in this 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (3)
-
Anthony Minessale
-
Brian West
-
Jason White