aboutsummaryrefslogtreecommitdiffstats
path: root/comms/atslog/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-03-21 20:32:48 +0800
committermiwi <miwi@FreeBSD.org>2007-03-21 20:32:48 +0800
commit997f2fff4f1e5714a34710e7f31cfe61d9db9a1a (patch)
tree9f497efccf57bc519b85a616818d36d16f1f7173 /comms/atslog/files
parentd677908172a7fe78f9b54e3c4b5e81495783efb1 (diff)
downloadfreebsd-ports-gnome-997f2fff4f1e5714a34710e7f31cfe61d9db9a1a.tar.gz
freebsd-ports-gnome-997f2fff4f1e5714a34710e7f31cfe61d9db9a1a.tar.zst
freebsd-ports-gnome-997f2fff4f1e5714a34710e7f31cfe61d9db9a1a.zip
- PBX library fixes from svn
- Bump PORTREVISION PR: 110575 Submitted by: Alexander Logvinov <ports@logvinov.com> (maintainer)
Diffstat (limited to 'comms/atslog/files')
-rw-r--r--comms/atslog/files/patch-bp-250.lib16
-rw-r--r--comms/atslog/files/patch-kx-td1232.lib142
-rw-r--r--comms/atslog/files/patch-ldk-300.lib54
3 files changed, 212 insertions, 0 deletions
diff --git a/comms/atslog/files/patch-bp-250.lib b/comms/atslog/files/patch-bp-250.lib
new file mode 100644
index 000000000000..bf5670efdff1
--- /dev/null
+++ b/comms/atslog/files/patch-bp-250.lib
@@ -0,0 +1,16 @@
+--- libexec/bp-250.lib.orig Sun Mar 4 17:48:54 2007
++++ libexec/bp-250.lib Tue Mar 20 19:55:47 2007
+@@ -97,7 +97,12 @@
+ $number=0;
+ }
+
+- $forwarded=0;
++ if ($transfer_conditio=~(/1[1234]/)) {
++ $forwarded=1;
++ }
++ else {
++ $forwarded=0;
++ }
+ # print("$timeofcall,$forwarded,$internally,$co,$way,$number,$duration\n");
+ WriteRecord($timeofcall, $forwarded, $internally, $co, $way, $number, $duration);
+ }
diff --git a/comms/atslog/files/patch-kx-td1232.lib b/comms/atslog/files/patch-kx-td1232.lib
new file mode 100644
index 000000000000..8388d6faf023
--- /dev/null
+++ b/comms/atslog/files/patch-kx-td1232.lib
@@ -0,0 +1,142 @@
+--- libexec/kx-td1232.lib.orig Sun Mar 4 17:48:54 2007
++++ libexec/kx-td1232.lib Tue Mar 20 20:08:42 2007
+@@ -10,70 +10,81 @@
+ # TESTLOG: Panasonic KX-TDA600.txt
+ #
+ sub parsecurcalls() {
+- while ($str=<PBX_DATA>)
+- {
+- $stringnumber++;
+- if ($str =~ /(\d{2})\/(\d{2})\/(\d{2}) (\d{2})\:(\d{2})(.{2}) (.{5}) (\d{2}) (.{25}).{5} (\d{2}):(\d{2})\'(\d{2}) (.{10}) (.{2})/){
+- unitecurcalls();
+- }else{
+- if ($vars{debug} =~ /yes/i){
+- if ($str !~ /^\s*$/){
+- print $str;
++ while ($str=<PBX_DATA>)
++ {
++ $stringnumber++;
++ if ($str =~ /(\d{2})\/(\d{2})\/(\d{2}) (\d{2})\:(\d{2})(.{2}) (.{5}) (\d{2}) (.{25}).{5} (\d{2}):(\d{2})\'(\d{2}) (.{10}) (.{2})/){
++ unitecurcalls();
++ }else{
++ if ($vars{debug} =~ /yes/i){
++ if ($str !~ /^\s*$/){
++ print $str;
++ };
++ };
+ };
+- };
+- };
+- };
++ };
+ };
+
+ sub unitecurcalls() {
+-
+- my $Month = $1;
+- my $Day=$2;
+- my $Year=$3+2000;
+- my $code=$13;
+-
+- my $CallHour=&AmPmTo24($4,$6);
+-
+- if($14 eq 'FW' or $14 eq 'TR'){
+- $forwarded =1;
+- }else{
+- $forwarded =0;
+- };
+-
+- $CallMinute=$5;
+-
+- $internally=$7;
+-
+- $co=$8;
+-
+- $duration = (($10*60*60)+($11*60)+$12);
+- $forIncoming=$9;
+-
+- $earlyIncoming=$10;
+-
+- $timeofcall = "$Year-$Month-$Day $CallHour\:$CallMinute\:00";
+-
+- if($forIncoming =~ /<I(NCOMING)?>\s*/i){
+- $way='1';
+- if ($forIncoming=~/(\d+)/)
+- {
+- $number=$1;
++ my $Day='';my $Month='';
++ # TDA600 has dd/mm/yy format
++ if($vars{model} eq 'KX-TDA600'){
++ $Day=$1;
++ $Month = $2;
+ }
+- else {
+- $number=0;
++ else { # 1232 has mm/dd/yy format
++ $Month = $1;
++ $Day=$2;
+ }
+- }else{
+- $way='2';
+- $number=$forIncoming;
+- $forIncoming =~ s/\D+//;
+- $number = substr($forIncoming,0,100);
+- };
+-
+- if ($timeofcall ne ""){
+- $callsCount++;
+- }
+- #print("$stringnumber $timeofcall $forwarded $internally $co $way $number $duration\n");
+- WriteRecord($timeofcall, $forwarded, $internally, $co, $way, $number, $duration);
++ my $Year=$3+2000;
++
++ my $code=$13;
++
++ my $CallHour=&AmPmTo24($4,$6);
++
++ if($14 eq 'FW' or $14 eq 'TR'){
++ $forwarded =1;
++ }else{
++ $forwarded =0;
++ };
++
++ $CallMinute=$5;
++
++ $internally=$7;
++
++ $co=$8;
++
++ $duration = (($10*60*60)+($11*60)+$12);
++ $forIncoming=$9;
++
++ $earlyIncoming=$10;
++
++ $timeofcall = "$Year-$Month-$Day $CallHour\:$CallMinute\:00";
++
++ if($forIncoming =~ /<I(NCOMING)?>\s*/i){
++ $way='1';
++ if ($forIncoming=~/(\d+)/)
++ {
++ $number=$1;
++ }
++ else {
++ $number=0;
++ }
++ }else{
++ $way='2';
++ $number=$forIncoming;
++ if ($forIncoming=~/([\d*#P]+)/)
++ {
++ $number=$1;
++ }
++
++ };
++
++ if ($timeofcall ne ""){
++ $callsCount++;
++ }
++ #print("$stringnumber $timeofcall $forwarded $internally $co $way $number $duration\n");
++ WriteRecord($timeofcall, $forwarded, $internally, $co, $way, $number, $duration);
+ }
+
+ 1;
diff --git a/comms/atslog/files/patch-ldk-300.lib b/comms/atslog/files/patch-ldk-300.lib
new file mode 100644
index 000000000000..4bc0f972e6ab
--- /dev/null
+++ b/comms/atslog/files/patch-ldk-300.lib
@@ -0,0 +1,54 @@
+--- libexec/ldk-300.lib.orig Sun Mar 4 17:48:54 2007
++++ libexec/ldk-300.lib Tue Mar 20 19:59:52 2007
+@@ -1,7 +1,7 @@
+ # ATSlog version 2.1.1 build 664 www.atslog.com
+ #
+ # VENDOR: LG
+-# MODELS: LDK-100,LDK-300
++# MODELS: LDK-100,LDK-300,ARIASOHO
+ # AUTHOR: Alex Samorukov samm@os2.kiev.ua
+ #
+ # TESTLOG: LG LDK-300.txt
+@@ -42,7 +42,7 @@
+
+
+ $co=int($co);
+- $forwarded=0; # please, FIXME
++ $forwarded=0;
+
+ if ($dialed_number=~/(\d+)/)
+ {
+@@ -52,19 +52,22 @@
+ $number=0;
+ }
+
+- if($dialed_number =~ /I/){
++ if($dialed_number =~ /^[IG]/){
+ $way='1';
+- # detection of the CID line
+- if($dialed_number =~ /^I(\d+)/)
+- {
+- $nubmer=$1;
+- }
+- else {
+- $number=0;
+- }
+- }else{
++ $forwarded=0;
++ }
++ elsif($dialed_number =~ /^O/){
++ $way='2';
++ $forwarded=0;
++ }
++ elsif($dialed_number =~ /^T/){
+ $way='2';
+- };
++ $forwarded=1;
++ }
++ elsif($dialed_number =~ /^t/){
++ $way='1';
++ $forwarded=1;
++ }
+
+ if ($date=~(/(\d{2})\/(\d{2})\/(\d{2})/)) {
+ $Month=$2;