asterisk_mini_statement 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 294dc858114906892317b896f7ab0376e3871c56
4
- data.tar.gz: 673de283b531d8aa84ee00ee2e5e78c2b5b40e5a
3
+ metadata.gz: 9b9a567d9c511d2eb0980b65830e34d1976e383d
4
+ data.tar.gz: db23f88b30b410e41f03ecda7fc8fcec9dc677ad
5
5
  SHA512:
6
- metadata.gz: 692b3f16565c2bdffdee4db095b11f7fed9b258b6f48e05eacebd9b77bfab3eed6668959bab5e40928c5f0b94df5716b8b6228f67400d3533933410f4f52a5b0
7
- data.tar.gz: e8d71c544f0af6b0583f7895ebf8bd9b57bd8f735a10aca7c7b2edfdf5b72ea353bd307bdf6c53b3d8e7d0b948282c834b9a8d327166c8ce89df2106d0671f77
6
+ metadata.gz: 5e5edd4c9f2be60c2012be9d1b90305f975616bfd570291bb683fce02e385115126f9c9ba62cb8d1205d7471d8f280d7b8e812bbf6a1c60c97fc09c9eefcee3b
7
+ data.tar.gz: 35ed3be2c374225a4e741ee5e64265894cdf80051da099165b29ac9c92e3f6cdc14fcb7bd26026e9edcc624631cfb1c4d572f498d939c4db7f96b6213430fb4e
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -41,7 +41,8 @@ class AsteriskMiniStatement
41
41
 
42
42
  a2 = a.select do |x|
43
43
  date = Date.parse(x[:start])
44
- date >= sdate and date <= edate and x[:disposition] == 'ANSWERED'
44
+ date >= sdate and date <= edate and \
45
+ x[:disposition] == 'ANSWERED' and x[:lastapp] == 'Dial'
45
46
  end
46
47
 
47
48
  a3 = a2.group_by {|x| Date.parse(x[:start]) }
@@ -119,4 +120,4 @@ Date/time Telephone duration
119
120
 
120
121
  end
121
122
 
122
- end
123
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asterisk_mini_statement
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -103,6 +103,6 @@ rubyforge_project:
103
103
  rubygems_version: 2.4.8
104
104
  signing_key:
105
105
  specification_version: 4
106
- summary: Project under development to output a mini statement of recent telephone
107
- calls from the Asterisk Call Detail Records (cdr-csv/Master.csv) file.
106
+ summary: Outputs a mini statement of recent telephone calls from the Asterisk Call
107
+ Detail Records (cdr-csv/Master.csv) file.
108
108
  test_files: []
metadata.gz.sig CHANGED
Binary file