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
3a4a27e3
Commit
3a4a27e3
authored
Aug 13, 2010
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for inband DTMF dialing
parent
f96b8f08
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
account.py
blink/configuration/account.py
+6
-1
sessions.py
blink/sessions.py
+2
-0
No files found.
blink/configuration/account.py
View file @
3a4a27e3
...
...
@@ -5,7 +5,7 @@
__all__
=
[
'AccountExtension'
,
'BonjourAccountExtension'
]
from
sipsimple.account
import
PSTNSettings
,
TLSSettings
from
sipsimple.account
import
PSTNSettings
,
RTPSettings
,
TLSSettings
from
sipsimple.configuration
import
Setting
,
SettingsGroup
,
SettingsObjectExtension
from
sipsimple.util
import
user_info
...
...
@@ -16,6 +16,10 @@ class PSTNSettingsExtension(PSTNSettings):
idd_prefix
=
Setting
(
type
=
unicode
,
default
=
None
,
nillable
=
True
)
class
RTPSettingsExtension
(
RTPSettings
):
inband_dtmf
=
Setting
(
type
=
bool
,
default
=
False
)
class
ServerSettings
(
SettingsGroup
):
settings_url
=
Setting
(
type
=
HTTPURL
,
default
=
None
,
nillable
=
True
)
...
...
@@ -30,6 +34,7 @@ class TLSSettingsExtension(TLSSettings):
class
AccountExtension
(
SettingsObjectExtension
):
pstn
=
PSTNSettingsExtension
rtp
=
RTPSettingsExtension
server
=
ServerSettings
sounds
=
SoundSettings
tls
=
TLSSettingsExtension
...
...
blink/sessions.py
View file @
3a4a27e3
...
...
@@ -326,6 +326,8 @@ class SessionItem(QObject):
player
=
WavePlayer
(
SIPApplication
.
voice_audio_bridge
.
mixer
,
Resources
.
get
(
filename
))
notification_center
=
NotificationCenter
()
notification_center
.
add_observer
(
self
,
sender
=
player
)
if
self
.
session
.
account
.
rtp
.
inband_dtmf
:
self
.
audio_stream
.
bridge
.
add
(
player
)
SIPApplication
.
voice_audio_bridge
.
add
(
player
)
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