File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ const Constants = require('../../../../constants');
55class Phone {
66 static detectPhone ( ua ) {
77 Phone . detectNttTeless . call ( this , ua ) ;
8+ Phone . detectSnom . call ( this , ua ) ;
89 }
910
10- /* Casio */
11+ /* NTT Teless */
1112 static detectNttTeless ( ua ) {
1213 if ( / P r o d u c t = N T T \/ T e l e s s / iu. test ( ua ) ) {
1314 this . data . device . manufacturer = 'NTT' ;
@@ -17,6 +18,18 @@ class Phone {
1718 this . data . device . subtype = Constants . deviceSubType . DESKTOP ;
1819 }
1920 }
21+
22+ /* SNOM */
23+ static detectSnom ( ua ) {
24+ let match ;
25+ if ( ( match = / s n o m ( .+ ) - S I P / iu. exec ( ua ) ) ) {
26+ this . data . device . manufacturer = 'SNOM' ;
27+ this . data . device . model = match [ 1 ] + ' IP Telephone' ;
28+ this . data . device . identified |= Constants . id . MATCH_UA ;
29+ this . data . device . type = Constants . deviceType . MOBILE ;
30+ this . data . device . subtype = Constants . deviceSubType . DESKTOP ;
31+ }
32+ }
2033}
2134
2235module . exports = Phone ;
You can’t perform that action at this time.
0 commit comments