[svn-commits] tzafrir: branch 1.2 r3157 - /branches/1.2/xpp/utils/zconf/Zaptel/Chans.pm

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 18 14:31:37 CDT 2007


Author: tzafrir
Date: Thu Oct 18 14:31:37 2007
New Revision: 3157

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3157
Log:
Fix zaptel_hardware's behaviour for unknown span types.

Modified:
    branches/1.2/xpp/utils/zconf/Zaptel/Chans.pm

Modified: branches/1.2/xpp/utils/zconf/Zaptel/Chans.pm
URL: http://svn.digium.com/view/zaptel/branches/1.2/xpp/utils/zconf/Zaptel/Chans.pm?view=diff&rev=3157&r1=3156&r2=3157
==============================================================================
--- branches/1.2/xpp/utils/zconf/Zaptel/Chans.pm (original)
+++ branches/1.2/xpp/utils/zconf/Zaptel/Chans.pm Thu Oct 18 14:31:37 2007
@@ -61,7 +61,9 @@
 		$type = undef;
 	}
 	$self->type($type);
-	$self->span()->type($type) if $self->span()->type() eq 'UNKNOWN';
+	$self->span()->type($type)
+		if ! defined($self->span()->type()) ||
+			$self->span()->type() eq 'UNKNOWN';
 	return $self;
 }
 




More information about the svn-commits mailing list