mgparser 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/call.rb +7 -7
  2. data/lib/version.rb +1 -1
  3. metadata +44 -72
data/lib/call.rb CHANGED
@@ -34,7 +34,7 @@ def analyze(data)
34
34
  end
35
35
 
36
36
  elsif line =~ /CallManager \[.*\] C\d{1,} - Send CallSetupA/
37
- id = line.scan(/C(\d{1,})/).first
37
+ id = line.scan(/C(\d{1,}) -/).first
38
38
  if @inbound == true
39
39
  puts "Call ID: #{id} - <== ISDN setup received"
40
40
  else
@@ -47,7 +47,7 @@ def analyze(data)
47
47
 
48
48
  elsif line =~ /CallManager \[.*\] C\d{1,} - CallProgressA\(2\)/
49
49
  @callprogr_counter += 1
50
- id = line.scan(/C(\d{1,})/).first
50
+ id = line.scan(/C(\d{1,}) -/).first
51
51
 
52
52
  if @progress_indication == true
53
53
  #puts "Call ID: #{id} - <== \"Proceeding indication\" received from operator"
@@ -62,27 +62,27 @@ def analyze(data)
62
62
  end
63
63
 
64
64
  elsif line =~ /CallManager \[.*\] C\d{1,} - CallProgressA\(3\)/
65
- id = line.scan(/C(\d{1,})/).first
65
+ id = line.scan(/C(\d{1,}) -/).first
66
66
  puts "Call ID: #{id} - ==> \"Call Progress\" sent to the operator"
67
67
 
68
68
 
69
69
  elsif line =~ /CallManager \[.*\] C\d{1,} - CallProgressA\(1\)/
70
- id = line.scan(/C(\d{1,})/).first
70
+ id = line.scan(/C(\d{1,}) -/).first
71
71
  puts "Call ID: #{id} - <== Destination number is ringing"
72
72
 
73
73
 
74
74
  elsif line =~ /CallManager \[.*\] C\d{1,} - CallConnectA/
75
- id = line.scan(/C(\d{1,})/).first
75
+ id = line.scan(/C(\d{1,}) -/).first
76
76
  puts "Call ID: #{id} - Call has been answered!"
77
77
 
78
78
 
79
79
  elsif line =~ /CallManager \[.*\] C\d{1,} - CallMessageA\(2\)/
80
- id = line.scan(/C(\d{1,})/).first
80
+ id = line.scan(/C(\d{1,}) -/).first
81
81
  @isdn_inbound_disconnect = true
82
82
 
83
83
 
84
84
  elsif line =~ /CallManager \[.*\] C\d{1,} - Send CallReleaseA\(\d{1,}\)/
85
- id = line.scan(/C(\d{1,})/).first
85
+ id = line.scan(/C(\d{1,}) -/).first
86
86
  cause = line.scan(/Send CallReleaseA\((\d{1,})/).first
87
87
 
88
88
  if @isdn_inbound_disconnect == true
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@ module Mgparser
2
2
  module VERSION
3
3
  MAJOR = 0 unless defined? MAJOR
4
4
  MINOR = 1 unless defined? MINOR
5
- TINY = 6 unless defined? TINY
5
+ TINY = 7 unless defined? TINY
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.') unless defined? STRING
8
8
  end
metadata CHANGED
@@ -1,75 +1,57 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mgparser
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.7
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 6
10
- version: 0.1.6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Dawid Pogorzelski
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-04-22 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-04-22 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: bundler
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &77632030 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 1
31
- - 0
32
- - 10
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 1.0.10
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: eventmachine
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *77632030
25
+ - !ruby/object:Gem::Dependency
26
+ name: eventmachine
27
+ requirement: &77631840 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
48
33
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: snmp
52
34
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *77631840
36
+ - !ruby/object:Gem::Dependency
37
+ name: snmp
38
+ requirement: &77631610 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
62
44
  type: :runtime
63
- version_requirements: *id003
64
- description: MGParser (MGP) is a tool which makes analysis of Mediatrix ISDN gateways debug a much simpler task
45
+ prerelease: false
46
+ version_requirements: *77631610
47
+ description: MGParser (MGP) is a tool which makes analysis of Mediatrix ISDN gateways
48
+ debug a much simpler task
65
49
  email: dawid.pogorzelski@mybushido.com
66
- executables:
50
+ executables:
67
51
  - mgparser
68
52
  extensions: []
69
-
70
53
  extra_rdoc_files: []
71
-
72
- files:
54
+ files:
73
55
  - README.markdown
74
56
  - bin/mgparser
75
57
  - mgparser.gemspec
@@ -81,36 +63,26 @@ files:
81
63
  - Gemfile
82
64
  homepage: https://github.com/dawid999/MGParser
83
65
  licenses: []
84
-
85
66
  post_install_message:
86
67
  rdoc_options: []
87
-
88
- require_paths:
68
+ require_paths:
89
69
  - lib
90
- required_ruby_version: !ruby/object:Gem::Requirement
70
+ required_ruby_version: !ruby/object:Gem::Requirement
91
71
  none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 3
96
- segments:
97
- - 0
98
- version: "0"
99
- required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
77
  none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- hash: 3
105
- segments:
106
- - 0
107
- version: "0"
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
108
82
  requirements: []
109
-
110
83
  rubyforge_project:
111
84
  rubygems_version: 1.7.2
112
85
  signing_key:
113
86
  specification_version: 3
114
87
  summary: Mediatrix ISDN gateways debug utility
115
88
  test_files: []
116
-