[freeside-commits] freeside/FS/bin freeside-cdrrewrited,1.1,1.2
Ivan,,,
ivan at wavetail.420.am
Tue Feb 24 00:45:12 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv29049
Modified Files:
freeside-cdrrewrited
Log Message:
exact match, RT#3196
Index: freeside-cdrrewrited
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-cdrrewrited,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- freeside-cdrrewrited 24 Feb 2009 08:41:34 -0000 1.1
+++ freeside-cdrrewrited 24 Feb 2009 08:45:10 -0000 1.2
@@ -29,8 +29,6 @@
#--
-my $domestic_prefix = 1; #hmm, global config?
-
while (1) {
#hmm... don't want to do an expensive search with an ever-growing bunch
@@ -52,12 +50,11 @@
$found = 1;
- if ( $cdr->dstchannel =~ /^Local\/($domestic_prefix)?(\d+)/i
- && $2 ne $cdr->dst
+ if ( $cdr->dstchannel =~ /^Local\/(\d+)/i && $1 ne $cdr->dst
)
{
- my $dst = $2;
+ my $dst = $1;
warn "dst ". $cdr->dst. " does not match dstchannel $dst ".
"(". $cdr->dstchannel. "); rewriting CDR as a forwarded call";
More information about the freeside-commits
mailing list