From b579a1b150d2aeca1576d7ea4baebafd2f2a1146 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Wed, 7 Aug 2013 15:37:00 +0200 Subject: workaround for strange FS behavior on From headers --- db/migrate/20130804201900_add_gateway_default_headers.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'db/migrate/20130804201900_add_gateway_default_headers.rb') diff --git a/db/migrate/20130804201900_add_gateway_default_headers.rb b/db/migrate/20130804201900_add_gateway_default_headers.rb index 4b50242..fc35bc2 100644 --- a/db/migrate/20130804201900_add_gateway_default_headers.rb +++ b/db/migrate/20130804201900_add_gateway_default_headers.rb @@ -7,13 +7,13 @@ class AddGatewayDefaultHeaders < ActiveRecord::Migration GsParameter.create(:entity => 'sip_gateways', :section => 'settings', :name => 'dtmf_type', :value => 'rfc2833', :class_type => 'String') - GsParameter.create(:entity => 'sip_gateways', :section => 'headers_default', :name => 'INVITE', :value => 'sip:{destination_number}@{domain}', :class_type => 'String') - GsParameter.create(:entity => 'sip_gateways', :section => 'headers_default', :name => 'To', :value => '', :class_type => 'String') - GsParameter.create(:entity => 'sip_gateways', :section => 'headers_default_clir_off', :name => 'From', :value => '"{caller_id_name}" ', :class_type => 'String') - GsParameter.create(:entity => 'sip_gateways', :section => 'headers_default_clir_on', :name => 'From', :value => '"Anonymous" ', :class_type => 'String') - GsParameter.create(:entity => 'sip_gateways', :section => 'headers_default_clir_off', :name => 'P-Asserted-Identity', :value => '"{caller_id_name}" ', :class_type => 'String') - GsParameter.create(:entity => 'sip_gateways', :section => 'headers_default_clir_on', :name => 'P-Asserted-Identity', :value => '"Anonymous" ', :class_type => 'String') - GsParameter.create(:entity => 'sip_gateways', :section => 'headers_default_clir_on', :name => 'Privacy', :value => 'id', :class_type => 'String') + GsParameter.create(:entity => 'sip_gateways', :section => 'headers_invite', :name => 'INVITE', :value => 'sip:{destination_number}@{domain}', :class_type => 'String') + GsParameter.create(:entity => 'sip_gateways', :section => 'headers_invite', :name => 'To', :value => '', :class_type => 'String') + GsParameter.create(:entity => 'sip_gateways', :section => 'headers_invite_clir_off', :name => 'From', :value => '"{caller_id_name}" ', :class_type => 'String') + GsParameter.create(:entity => 'sip_gateways', :section => 'headers_invite_clir_on', :name => 'From', :value => '"Anonymous" ', :class_type => 'String') + GsParameter.create(:entity => 'sip_gateways', :section => 'headers_invite_clir_off', :name => 'P-Asserted-Identity', :value => '"{caller_id_name}" ', :class_type => 'String') + GsParameter.create(:entity => 'sip_gateways', :section => 'headers_invite_clir_on', :name => 'P-Asserted-Identity', :value => '"Anonymous" ', :class_type => 'String') + GsParameter.create(:entity => 'sip_gateways', :section => 'headers_invite_clir_on', :name => 'Privacy', :value => 'id', :class_type => 'String') end def down -- cgit v1.2.3