Commit 5676a21b authored by Saul Ibarra's avatar Saul Ibarra

Fixed using secondary ringtone when adding chat to an audio session

parent 9e8103e9
......@@ -3946,7 +3946,7 @@ class SessionManager(object):
settings = SIPSimpleSettings()
outbound_ringtone = settings.sounds.outbound_ringtone
if outbound_ringtone:
if any('audio' in session.streams and not session.on_hold for session in outgoing_sessions_or_proposals):
if any('audio' in session.streams.proposed and not session.on_hold for session in outgoing_sessions_or_proposals):
ringtone_path = outbound_ringtone.path
ringtone_type = self.PrimaryRingtone
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment