[dahdi-commits] tzafrir: tools/trunk r10265 - /tools/trunk/xpp/perl_modules/Dahdi/Config/Gen/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Sun Oct 23 09:23:20 CDT 2011
Author: tzafrir
Date: Sun Oct 23 09:23:17 2011
New Revision: 10265
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10265
Log:
chandahdi gen: extens can have any num of digits
Don't force extens we generate to have exactly 4 digits (simple
formatting limitation).
Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Modified:
tools/trunk/xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm
Modified: tools/trunk/xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm?view=diff&rev=10265&r1=10264&r2=10265
==============================================================================
--- tools/trunk/xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm (original)
+++ tools/trunk/xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm Sun Oct 23 09:23:17 2011
@@ -168,7 +168,7 @@
die "missing context for chan #$num type $type" unless $context;
$callerid = ($type eq 'FXO')
? 'asreceived'
- : sprintf "\"Channel %d\" <%04d>", $num, $exten;
+ : sprintf "\"Channel %d\" <%d>", $num, $exten;
if($type eq 'IN') {
$immediate = 'yes';
}
@@ -182,7 +182,7 @@
printf ";;; line=\"%d %s%s%s\"\n", $num, $chan->fqn, $signalling, $info;
printf "signalling=$sig\n";
printf "callerid=$callerid\n";
- printf "mailbox=%04d\n", $exten unless $type eq 'FXO';
+ printf "mailbox=%d\n", $exten unless $type eq 'FXO';
if(defined $group) {
printf "group=$group\n";
}
More information about the dahdi-commits
mailing list