Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
b5968174
Commit
b5968174
authored
17 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
DTMF problems solved
The first dialing sound was played two times in a row.
parent
d7360c35
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sflphone-gtk/src/actions.c
+6
-4
6 additions, 4 deletions
sflphone-gtk/src/actions.c
with
6 additions
and
4 deletions
sflphone-gtk/src/actions.c
+
6
−
4
View file @
b5968174
...
...
@@ -382,7 +382,7 @@ void process_dialing(call_t * c, guint keyval, gchar * key)
// We stop the tone
if
(
strlen
(
c
->
to
)
==
0
&&
c
->
state
!=
CALL_STATE_TRANSFERT
){
dbus_start_tone
(
FALSE
,
0
);
dbus_play_dtmf
(
key
);
//
dbus_play_dtmf( key );
}
switch
(
keyval
)
{
...
...
@@ -424,6 +424,8 @@ void process_dialing(call_t * c, guint keyval, gchar * key)
default:
if
(
keyval
<
255
||
(
keyval
>
65453
&&
keyval
<
65466
))
{
if
(
c
->
state
!=
CALL_STATE_TRANSFERT
)
dbus_play_dtmf
(
key
);
gchar
*
before
=
c
->
to
;
c
->
to
=
g_strconcat
(
c
->
to
,
key
,
NULL
);
g_free
(
before
);
...
...
@@ -474,7 +476,7 @@ sflphone_keypad( guint keyval, gchar * key)
switch
(
c
->
state
)
{
case
CALL_STATE_DIALING
:
// Currently dialing => edit number
dbus_play_dtmf
(
key
);
//
dbus_play_dtmf(key);
process_dialing
(
c
,
keyval
,
key
);
break
;
case
CALL_STATE_CURRENT
:
...
...
@@ -484,7 +486,7 @@ sflphone_keypad( guint keyval, gchar * key)
dbus_hang_up
(
c
);
break
;
default:
// TODO should this be here?
dbus_play_dtmf
(
key
);
//
dbus_play_dtmf(key);
if
(
keyval
<
255
||
(
keyval
>
65453
&&
keyval
<
65466
))
{
gchar
*
temp
=
g_strconcat
(
call_get_number
(
c
),
key
,
NULL
);
...
...
@@ -556,7 +558,7 @@ sflphone_keypad( guint keyval, gchar * key)
}
else
{
// Not in a call, not dialing, create a new call
dbus_play_dtmf
(
key
);
//
dbus_play_dtmf(key);
switch
(
keyval
)
{
case
65293
:
/* ENTER */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment