Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
a98350fa
Commit
a98350fa
authored
Mar 10, 2014
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 45s initial and pause times for hold tones
parent
cd650aec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sessions.py
blink/sessions.py
+3
-3
No files found.
blink/sessions.py
View file @
a98350fa
...
@@ -4006,11 +4006,11 @@ class SessionManager(object):
...
@@ -4006,11 +4006,11 @@ class SessionManager(object):
connected_on_hold_sessions
=
[
session
for
session
in
connected_sessions
if
session
.
on_hold
]
connected_on_hold_sessions
=
[
session
for
session
in
connected_sessions
if
session
.
on_hold
]
if
self
.
outbound_ringtone
is
Null
and
self
.
inbound_ringtone
is
Null
and
connected_sessions
:
if
self
.
outbound_ringtone
is
Null
and
self
.
inbound_ringtone
is
Null
and
connected_sessions
:
if
len
(
connected_sessions
)
==
len
(
connected_on_hold_sessions
):
if
len
(
connected_sessions
)
==
len
(
connected_on_hold_sessions
):
hold_tone
=
WavePlayer
(
SIPApplication
.
alert_audio_mixer
,
Resources
.
get
(
'sounds/hold_tone.wav'
),
loop_count
=
0
,
pause_time
=
15
,
volume
=
30
,
initial_delay
=
1
5
)
hold_tone
=
WavePlayer
(
SIPApplication
.
alert_audio_mixer
,
Resources
.
get
(
'sounds/hold_tone.wav'
),
loop_count
=
0
,
volume
=
30
,
initial_delay
=
45
,
pause_time
=
4
5
)
hold_tone
.
bridge
=
SIPApplication
.
alert_audio_bridge
hold_tone
.
bridge
=
SIPApplication
.
alert_audio_bridge
hold_tone
.
type
=
None
hold_tone
.
type
=
None
elif
len
(
connected_on_hold_sessions
)
>
0
:
elif
len
(
connected_on_hold_sessions
)
>
0
:
hold_tone
=
WavePlayer
(
SIPApplication
.
voice_audio_mixer
,
Resources
.
get
(
'sounds/hold_tone.wav'
),
loop_count
=
0
,
pause_time
=
45
,
volume
=
30
,
initial_delay
=
1
5
)
hold_tone
=
WavePlayer
(
SIPApplication
.
voice_audio_mixer
,
Resources
.
get
(
'sounds/hold_tone.wav'
),
loop_count
=
0
,
volume
=
30
,
initial_delay
=
45
,
pause_time
=
4
5
)
hold_tone
.
bridge
=
SIPApplication
.
voice_audio_bridge
hold_tone
.
bridge
=
SIPApplication
.
voice_audio_bridge
hold_tone
.
type
=
None
hold_tone
.
type
=
None
else
:
else
:
...
@@ -4175,7 +4175,7 @@ class SessionManager(object):
...
@@ -4175,7 +4175,7 @@ class SessionManager(object):
notification
.
sender
.
_play_hangup_tone
=
notification
.
data
.
old_state
in
(
'connecting/*'
,
'connected/*'
)
notification
.
sender
.
_play_hangup_tone
=
notification
.
data
.
old_state
in
(
'connecting/*'
,
'connected/*'
)
def
_NH_BlinkSessionDidChangeHoldState
(
self
,
notification
):
def
_NH_BlinkSessionDidChangeHoldState
(
self
,
notification
):
if
notification
.
data
.
remote_hold
and
not
notification
.
data
.
local_hold
:
# check if this could be integrated in update_ringtone -Dan
if
notification
.
data
.
remote_hold
and
not
notification
.
data
.
local_hold
:
player
=
WavePlayer
(
SIPApplication
.
voice_audio_bridge
.
mixer
,
Resources
.
get
(
'sounds/hold_tone.wav'
),
loop_count
=
1
,
volume
=
30
)
player
=
WavePlayer
(
SIPApplication
.
voice_audio_bridge
.
mixer
,
Resources
.
get
(
'sounds/hold_tone.wav'
),
loop_count
=
1
,
volume
=
30
)
SIPApplication
.
voice_audio_bridge
.
add
(
player
)
SIPApplication
.
voice_audio_bridge
.
add
(
player
)
player
.
start
()
player
.
start
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment