From: Jason Parker Date: Thu, 5 Nov 2009 19:14:25 +0000 (+0000) Subject: Fix crash on VPB exception when no hardware is present. X-Git-Tag: 1.4.27-rc3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7dfd9901471e57665ac2bfe3a3f4fac49b6cde5;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@228079 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc index 56467a6ce3..71af41700b 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; }