[asterisk-bugs] [Asterisk 0012096]: [patch] chan_vpb segfaults if no cards found

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Feb 28 08:36:45 CST 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12096 
====================================================================== 
Reported By:                mmickan
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   12096
Category:                   Channels/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 104869 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-28-2008 00:27 CST
Last Modified:              02-28-2008 08:36 CST
====================================================================== 
Summary:                    [patch] chan_vpb segfaults if no cards found
Description: 
On startup of Asterisk, if chan_vpb is loaded without any Voicetronix cards
in the system, it crashes Asterisk.  The same also happens if cards or
ports are declared in vpb.conf that don't exist (or if the appropriate vpb
driver is not loaded).

This patch checks the number of cards and ports.  If there are no cards
detected, then chan_vpb declines to load so we get a warning rather than a
segfault.  If there are cards and/or ports declared in
/etc/asterisk/vpb.conf that don't exist, then chan_vpb fails out of the
module load with a warning rather than a segfault.

This fixes the Debian bug reported at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466729
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-28-08 08:36  Corydon76      Status                   new => assigned     
02-28-08 08:36  Corydon76      Assigned To               => Corydon76       
======================================================================




More information about the asterisk-bugs mailing list