summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-27 06:27:16 -0500
committerPeter Kozak <spag@golwen.net>2013-02-27 06:27:16 -0500
commit5341d680be8c7701f97cd497015da37806046f03 (patch)
treebe1ed4b307a01e241cebcc51da8e40c545d555b5 /app/models
parent211f558a86ae30cdd5b392ab1376e1393f97e22c (diff)
sip_account can be in b leg
Diffstat (limited to 'app/models')
-rw-r--r--app/models/sip_account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/sip_account.rb b/app/models/sip_account.rb
index 2040b41..5660e37 100644
--- a/app/models/sip_account.rb
+++ b/app/models/sip_account.rb
@@ -38,7 +38,7 @@ class SipAccount < ActiveRecord::Base
has_many :ringtones, :as => :ringtoneable, :dependent => :destroy
- has_many :calls, :finder_sql => lambda { |s| "SELECT DISTINCT detailed_calls.* FROM detailed_calls WHERE presence_id LIKE '#{self.auth_name}@%'" }
+ has_many :calls, :finder_sql => lambda { |s| "SELECT DISTINCT detailed_calls.* FROM detailed_calls WHERE presence_id LIKE '#{self.auth_name}@%' OR b_presence_id LIKE '#{self.auth_name}@%'" }
# Delegations:
#