diff options
-rwxr-xr-x | CHANGES | 2 | ||||
-rwxr-xr-x | channels/chan_alsa.c | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -20,6 +20,8 @@ -- chan_agent -- We now will not pass audio until the agent has acked the call if the configuration is set up for the agent to do so. + -- chan_alsa + -- Fixed problems with the unloading of this module -- res_agi -- A fix has been added to prevent calls from being hung up when more than one call is executing an AGI script calling the GET DATA command. diff --git a/channels/chan_alsa.c b/channels/chan_alsa.c index 49030d1c5..3da955a6b 100755 --- a/channels/chan_alsa.c +++ b/channels/chan_alsa.c @@ -1053,10 +1053,12 @@ int load_module() int unload_module() { int x; + + ast_channel_unregister(type); for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++) ast_cli_unregister(myclis + x); - close(readdev); - close(writedev); + snd_pcm_close(alsa.icard); + snd_pcm_close(alsa.ocard); if (sndcmd[0] > 0) { close(sndcmd[0]); close(sndcmd[1]); |