aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-05 19:14:25 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-05 19:14:25 +0000
commit33764ac954e9847ef596dd81acd8f11ddc86c71e (patch)
tree8bc75638e0b6ce907edcdf12fce0d547411ad64e
parent089424b350547e91e39d4dd8f6d14e304884721d (diff)
Fix crash on VPB exception when no hardware is present.
(closes issue #14970) Reported by: tzafrir Patches: vpb_exception.diff uploaded by tzafrir (license 46) Tested by: markwaters git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@228079 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_vpb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc
index 56467a6ce..71af41700 100644
--- a/channels/chan_vpb.cc
+++ b/channels/chan_vpb.cc
@@ -2718,7 +2718,7 @@ static enum ast_module_load_result load_module()
int num_cards = 0;
try {
num_cards = vpb_get_num_cards();
- } catch (VpbException e) {
+ } catch (std::exception e) {
ast_log(LOG_ERROR, "No Voicetronix cards detected\n");
return AST_MODULE_LOAD_DECLINE;
}