[Astpp-commit] SF.net SVN: astpp:[2297] trunk/scripts/astpp-common.pl
Brought to you by:
darrenkw
From: <dar...@us...> - 2009-11-01 00:42:48
|
Revision: 2297 http://astpp.svn.sourceforge.net/astpp/?rev=2297&view=rev Author: darrenkw Date: 2009-11-01 00:13:47 +0000 (Sun, 01 Nov 2009) Log Message: ----------- Fixed a problem preventing the regular expression from editing the accountcode. Modified Paths: -------------- trunk/scripts/astpp-common.pl Modified: trunk/scripts/astpp-common.pl =================================================================== --- trunk/scripts/astpp-common.pl 2009-10-31 23:55:34 UTC (rev 2296) +++ trunk/scripts/astpp-common.pl 2009-11-01 00:13:47 UTC (rev 2297) @@ -4250,7 +4250,10 @@ $cdrinfo->{dst} = $did; } if ($config->{cdr_regex_accountcode}) { - $cdrinfo->{accountcode} =~ $config->{cdr_regex_accountcode}; + print STDERR "Modify Accountcode\n"; + print STDERR "Original: " . $cdrinfo->{accountcode}; + $cdrinfo->{accountcode} =~ s/$config->{cdr_regex_accountcode}//mg; + print STDERR "Modified: " . $cdrinfo->{accountcode}; } my $carddata = &get_account( $astpp_db, $cdrinfo->{accountcode} ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |