Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
4fda9653
Commit
4fda9653
authored
Apr 10, 2008
by
Emmanuel Milou
Browse files
Notify voice mails to the right account
parent
493d5562
Changes
3
Hide whitespace changes
Inline
Side-by-side
sflphone-gtk/src/actions.c
View file @
4fda9653
...
...
@@ -42,9 +42,10 @@
guint
voice_mails
;
void
sflphone_notify_voice_mail
(
guint
count
)
sflphone_notify_voice_mail
(
const
gchar
*
accountID
,
guint
count
)
{
voice_mails
=
count
;
gchar
*
id
=
g_strdup
(
accountID
);
if
(
count
>
0
)
{
gchar
*
message
=
g_new0
(
gchar
,
50
);
...
...
@@ -58,7 +59,7 @@ sflphone_notify_voice_mail (guint count)
// TODO: add ifdef
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
)
notify_voice_mails
(
count
,
acc
);
}
...
...
sflphone-gtk/src/actions.h
View file @
4fda9653
...
...
@@ -63,7 +63,7 @@ void sflphone_hang_up ();
void
sflphone_on_hold
();
void
sflphone_off_hold
();
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_unset_transfert
();
/**
...
...
sflphone-gtk/src/dbus.c
View file @
4fda9653
...
...
@@ -73,11 +73,11 @@ volume_changed_cb (DBusGProxy *proxy,
static
void
voice_mail_cb
(
DBusGProxy
*
proxy
,
const
gchar
*
accountID
,
const
gint
nb
,
const
g
u
int
nb
,
void
*
foo
)
{
g_print
(
"%d Voice mail waiting!
\n
"
,
nb
);
sflphone_notify_voice_mail
(
nb
);
sflphone_notify_voice_mail
(
accountID
,
nb
);
}
static
void
...
...
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