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
4fda9653
Commit
4fda9653
authored
17 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
Notify voice mails to the right account
parent
493d5562
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
sflphone-gtk/src/actions.c
+3
-2
3 additions, 2 deletions
sflphone-gtk/src/actions.c
sflphone-gtk/src/actions.h
+1
-1
1 addition, 1 deletion
sflphone-gtk/src/actions.h
sflphone-gtk/src/dbus.c
+2
-2
2 additions, 2 deletions
sflphone-gtk/src/dbus.c
with
6 additions
and
5 deletions
sflphone-gtk/src/actions.c
+
3
−
2
View file @
4fda9653
...
@@ -42,9 +42,10 @@
...
@@ -42,9 +42,10 @@
guint
voice_mails
;
guint
voice_mails
;
void
void
sflphone_notify_voice_mail
(
guint
count
)
sflphone_notify_voice_mail
(
const
gchar
*
accountID
,
guint
count
)
{
{
voice_mails
=
count
;
voice_mails
=
count
;
gchar
*
id
=
g_strdup
(
accountID
);
if
(
count
>
0
)
if
(
count
>
0
)
{
{
gchar
*
message
=
g_new0
(
gchar
,
50
);
gchar
*
message
=
g_new0
(
gchar
,
50
);
...
@@ -58,7 +59,7 @@ sflphone_notify_voice_mail (guint count)
...
@@ -58,7 +59,7 @@ sflphone_notify_voice_mail (guint count)
// TODO: add ifdef
// TODO: add ifdef
if
(
account_list_get_size
()
>
0
)
if
(
account_list_get_size
()
>
0
)
{
{
account_t
*
acc
=
account_list_get_by_
state
(
ACCOUNT_STATE_REGISTERED
);
account_t
*
acc
=
account_list_get_by_
id
(
id
);
if
(
acc
!=
NULL
)
if
(
acc
!=
NULL
)
notify_voice_mails
(
count
,
acc
);
notify_voice_mails
(
count
,
acc
);
}
}
...
...
This diff is collapsed.
Click to expand it.
sflphone-gtk/src/actions.h
+
1
−
1
View file @
4fda9653
...
@@ -63,7 +63,7 @@ void sflphone_hang_up ();
...
@@ -63,7 +63,7 @@ void sflphone_hang_up ();
void
sflphone_on_hold
();
void
sflphone_on_hold
();
void
sflphone_off_hold
();
void
sflphone_off_hold
();
call_t
*
sflphone_new_call
();
call_t
*
sflphone_new_call
();
void
sflphone_notify_voice_mail
(
guint
count
);
void
sflphone_notify_voice_mail
(
const
gchar
*
accountID
,
guint
count
);
void
sflphone_set_transfert
();
void
sflphone_set_transfert
();
void
sflphone_unset_transfert
();
void
sflphone_unset_transfert
();
/**
/**
...
...
This diff is collapsed.
Click to expand it.
sflphone-gtk/src/dbus.c
+
2
−
2
View file @
4fda9653
...
@@ -73,11 +73,11 @@ volume_changed_cb (DBusGProxy *proxy,
...
@@ -73,11 +73,11 @@ volume_changed_cb (DBusGProxy *proxy,
static
void
static
void
voice_mail_cb
(
DBusGProxy
*
proxy
,
voice_mail_cb
(
DBusGProxy
*
proxy
,
const
gchar
*
accountID
,
const
gchar
*
accountID
,
const
gint
nb
,
const
g
u
int
nb
,
void
*
foo
)
void
*
foo
)
{
{
g_print
(
"%d Voice mail waiting!
\n
"
,
nb
);
g_print
(
"%d Voice mail waiting!
\n
"
,
nb
);
sflphone_notify_voice_mail
(
nb
);
sflphone_notify_voice_mail
(
accountID
,
nb
);
}
}
static
void
static
void
...
...
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