dmsessions/app_swift — Issue #1: Hangup during playback crashes Asterisk v10 - patch to fix attached
Author: robscheibel
Created: 2012-01-06 20:01:58+00:00
State: open

Darren -

Great product! I found that when using commit c89657ed5d with Asterisk v10 if a user is to hangup during playback with Cepstral, it would crash asterisk. Using a patch from a David Ryder, I was able to generate the following patch that fixed my problem. Take a look and please commit to help others if it works for you:

--- app_swift.c 2012-01-06 13:54:23.325324132 -0600
+++ app_swift.c.new 2012-01-06 13:54:10.505104756 -0600
@@ -461,8 +461,8 @@
ast_log(LOG_NOTICE, "DTMF = %s\n", results);
pbx_builtin_setvar_helper(chan, "SWIFT_DTMF", results);
}
+ ast_frfree(f);
}
- ast_frfree(f);
}
}

Thanks!

-rob