From d4a664a0495bd183b16a239aeb4c342e1ca739fa Mon Sep 17 00:00:00 2001 From: spag Date: Wed, 30 Jan 2013 15:59:52 +0100 Subject: select route endpoint --- app/models/call_route.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/call_route.rb') diff --git a/app/models/call_route.rb b/app/models/call_route.rb index b4496ab..1c3f70a 100644 --- a/app/models/call_route.rb +++ b/app/models/call_route.rb @@ -239,6 +239,10 @@ class CallRoute < ActiveRecord::Base end end + def endpoint_str + "#{endpoint_type}=#{endpoint_id}" + end + def endpoint if self.endpoint_id.to_i > 0 begin -- cgit v1.2.3 From 50f1c25d6ae641e48d29cc4a6742dd12ce60d4a9 Mon Sep 17 00:00:00 2001 From: spag Date: Thu, 7 Feb 2013 15:13:14 +0100 Subject: dtmf routing table added --- app/models/call_route.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/call_route.rb') diff --git a/app/models/call_route.rb b/app/models/call_route.rb index 1c3f70a..6e0dcab 100644 --- a/app/models/call_route.rb +++ b/app/models/call_route.rb @@ -2,7 +2,7 @@ class CallRoute < ActiveRecord::Base # https://github.com/rails/strong_parameters include ActiveModel::ForbiddenAttributesProtection - ROUTING_TABLES = ['prerouting', 'outbound', 'inbound'] + ROUTING_TABLES = ['prerouting', 'outbound', 'inbound', 'dtmf'] has_many :route_elements, :dependent => :destroy -- cgit v1.2.3 From f8f35f666613eff24d3988bda1a22cc40ef2ab30 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Tue, 12 Feb 2013 13:26:30 +0100 Subject: Make the call_elements table sortable by drag and drop. --- app/models/call_route.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/call_route.rb') diff --git a/app/models/call_route.rb b/app/models/call_route.rb index 6e0dcab..8bc811a 100644 --- a/app/models/call_route.rb +++ b/app/models/call_route.rb @@ -4,7 +4,7 @@ class CallRoute < ActiveRecord::Base ROUTING_TABLES = ['prerouting', 'outbound', 'inbound', 'dtmf'] - has_many :route_elements, :dependent => :destroy + has_many :route_elements, :dependent => :destroy, :order => :position validates :name, :presence => true -- cgit v1.2.3