summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-15 12:28:21 +0100
committerspag <spag@golwen.net>2013-01-15 12:28:21 +0100
commit857f3de83628c1de8d1c65ce2aea36ab7bd8e8c5 (patch)
tree80bc5a7fa12df8e6d13b38ce4cba69b20a980dde
parent160a510a6638b1e58f6460ae9c03ab64ef6ced75 (diff)
gateway settings added
-rw-r--r--app/models/gateway_setting.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/models/gateway_setting.rb b/app/models/gateway_setting.rb
index 96410f4..c01f0a8 100644
--- a/app/models/gateway_setting.rb
+++ b/app/models/gateway_setting.rb
@@ -1,7 +1,16 @@
class GatewaySetting < ActiveRecord::Base
CLASS_TYPES = ['String', 'Integer', 'Boolean']
GATEWAY_SETTINGS = {
- 'sip' => { 'domain' => 'String', 'username' => 'String', 'password' => 'String', 'register' => 'Boolean', 'auth_source' => 'String', 'auth_pattern' => 'String' },
+ 'sip' => {
+ 'domain' => 'String',
+ 'username' => 'String',
+ 'password' => 'String',
+ 'contact' => 'String',
+ 'register' => 'Boolean',
+ 'auth_source' => 'String',
+ 'auth_pattern' => 'String',
+ 'number_source' => 'String',
+ },
}
attr_accessible :gateway_id, :name, :value, :class_type, :description