summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-07-31 07:54:51 +0200
committerPeter Kozak <spag@golwen.net>2013-07-31 07:54:51 +0200
commit198586b95cc0a8d6e3c426e215d758f22e7cdc24 (patch)
tree80fa6810dc300080d104520583ec043ab6809361 /db/migrate
parent10d3037aa6e4dbdcd438b436b094bdb225f34de5 (diff)
use local domain in from/asserted-identity headers
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20130612120200_add_gateway_defaults.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/db/migrate/20130612120200_add_gateway_defaults.rb b/db/migrate/20130612120200_add_gateway_defaults.rb
index eddba9d..c6d1c9f 100644
--- a/db/migrate/20130612120200_add_gateway_defaults.rb
+++ b/db/migrate/20130612120200_add_gateway_defaults.rb
@@ -3,10 +3,10 @@ class AddGatewayDefaults < ActiveRecord::Migration
GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'domain', :value => '192.168.1.1', :class_type => 'String')
GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'auth_source', :value => 'sip_received_ip', :class_type => 'String')
GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'auth_pattern', :value => '^192.168.1.1$', :class_type => 'String')
- GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'from', :value => '"{caller_id_name}" <sip:{caller_id_number}@{domain}>', :class_type => 'String')
- GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'from_clir', :value => '"Anonymous" <sip:anonymous@{domain}>', :class_type => 'String')
- GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'asserted_identity', :value => '"{caller_id_name}" <sip:{caller_id_number}@{domain}>', :class_type => 'String')
- GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'asserted_identity_clir', :value => '"Anonymous" <sip:{caller_id_number}@{domain}>', :class_type => 'String')
+ GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'from', :value => '"{caller_id_name}" <sip:{caller_id_number}@{domain_local}>', :class_type => 'String')
+ GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'from_clir', :value => '"Anonymous" <sip:anonymous@{domain_local}>', :class_type => 'String')
+ GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'asserted_identity', :value => '"{caller_id_name}" <sip:{caller_id_number}@{domain_local}>', :class_type => 'String')
+ GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'asserted_identity_clir', :value => '"Anonymous" <sip:{caller_id_number}@{domain_local}>', :class_type => 'String')
end
def down