mgparser 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/call.rb +7 -7
- data/lib/version.rb +1 -1
- 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,})
|
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,})
|
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,})
|
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,})
|
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,})
|
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,})
|
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,})
|
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
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
|
-
|
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
|
-
|
19
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
59
|
-
segments:
|
60
|
-
- 0
|
61
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
62
44
|
type: :runtime
|
63
|
-
|
64
|
-
|
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
|
-
|
96
|
-
|
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
|
-
|
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
|
-
|