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
3c2b4309
Commit
3c2b4309
authored
12 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Plain Diff
Merge branch 'sipregistration' of
git+ssh://git.sflphone.org/var/repos/sflphone/git/sflphone
parents
ff37d557
3c9dea6a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gnome/src/actions.c
+4
-43
4 additions, 43 deletions
gnome/src/actions.c
gnome/src/actions.h
+1
-1
1 addition, 1 deletion
gnome/src/actions.h
with
5 additions
and
44 deletions
gnome/src/actions.c
+
4
−
43
View file @
3c2b4309
...
...
@@ -744,38 +744,19 @@ sflphone_keypad(guint keyval, gchar * key)
sflphone_new_call
();
}
static
void
place_direct_call
(
const
callable_obj_t
*
c
)
{
g_assert
(
c
->
_state
==
CALL_STATE_DIALING
);
dbus_place_call
(
c
);
}
static
int
place_registered_call
(
callable_obj_t
*
c
)
int
sflphone_place_call
(
callable_obj_t
*
c
)
{
account_t
*
account
=
NULL
;
DEBUG
(
"Actions: Placing call with %s @ %s and accountid %s"
,
c
->
_display_name
,
c
->
_peer_number
,
c
->
_accountID
);
if
(
c
->
_state
!=
CALL_STATE_DIALING
)
return
-
1
;
if
(
!*
c
->
_peer_number
)
return
-
1
;
// No longer usefull
/*
if (account_list_get_size() == 0) {
notify_no_accounts();
sflphone_fail(c);
return -1;
}
*/
/*
if (account_list_get_by_state(ACCOUNT_STATE_REGISTERED) == NULL) {
DEBUG("Actions: No registered account, cannot make a call");
notify_no_registered_accounts();
sflphone_fail(c);
return -1;
}
*/
DEBUG
(
"Actions: Get account for this call"
);
if
(
strlen
(
c
->
_accountID
)
!=
0
)
{
...
...
@@ -815,26 +796,6 @@ static int place_registered_call(callable_obj_t * c)
return
0
;
}
void
sflphone_place_call
(
callable_obj_t
*
c
)
{
DEBUG
(
"Actions: Placing call with %s @ %s and accountid %s"
,
c
->
_display_name
,
c
->
_peer_number
,
c
->
_accountID
);
if
(
place_registered_call
(
c
)
<
0
)
DEBUG
(
"An error occured while placing registered call in %s at %d"
,
__FILE__
,
__LINE__
);
/*
if (is_direct_call(c)) {
gchar *msg = g_markup_printf_escaped(_("Direct SIP call"));
statusbar_pop_message(__MSG_ACCOUNT_DEFAULT);
statusbar_push_message(msg , NULL, __MSG_ACCOUNT_DEFAULT);
g_free(msg);
place_direct_call(c);
} else if (place_registered_call(c) < 0)
DEBUG("An error occured while placing registered call in %s at %d", __FILE__, __LINE__);
*/
}
void
sflphone_detach_participant
(
const
gchar
*
callID
)
{
...
...
This diff is collapsed.
Click to expand it.
gnome/src/actions.h
+
1
−
1
View file @
3c2b4309
...
...
@@ -157,7 +157,7 @@ void sflphone_keypad(guint keyval, gchar * key);
* Place a call with a filled callable_obj_t.to
* @param c A call in CALL_STATE_DIALING state
*/
void
sflphone_place_call
(
callable_obj_t
*
c
);
int
sflphone_place_call
(
callable_obj_t
*
c
);
/**
* Fetch the ip2ip profile through dbus and fill
...
...
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