Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
50b7001d
Commit
50b7001d
authored
Oct 22, 2010
by
Simon Morlat
Browse files
refer improvements
parent
820eaf86
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
19 deletions
+16
-19
coreapi/callbacks.c
coreapi/callbacks.c
+5
-2
coreapi/linphonecall.c
coreapi/linphonecall.c
+0
-1
coreapi/linphonecore.c
coreapi/linphonecore.c
+8
-14
coreapi/private.h
coreapi/private.h
+1
-1
coreapi/sal_eXosip2_presence.c
coreapi/sal_eXosip2_presence.c
+1
-0
mediastreamer2
mediastreamer2
+1
-1
No files found.
coreapi/callbacks.c
View file @
50b7001d
...
...
@@ -343,7 +343,6 @@ static void call_updating(SalOp *op){
linphone_call_set_state
(
call
,
prevstate
,
"Connected (streams running)"
);
}
}
if
(
lc
->
current_call
==
NULL
)
linphone_core_start_pending_refered_calls
(
lc
);
}
static
void
call_terminated
(
SalOp
*
op
,
const
char
*
from
){
...
...
@@ -556,7 +555,11 @@ static void refer_received(Sal *sal, SalOp *op, const char *referto){
lc
->
vtable
.
display_status
(
lc
,
msg
);
ms_free
(
msg
);
}
if
(
lc
->
current_call
==
NULL
)
linphone_core_start_pending_refered_calls
(
lc
);
if
(
call
->
state
!=
LinphoneCallPaused
){
ms_message
(
"Automatically pausing current call to accept transfer."
);
linphone_core_pause_call
(
lc
,
call
);
}
linphone_core_start_refered_call
(
lc
,
call
);
sal_call_accept_refer
(
op
);
}
else
if
(
lc
->
vtable
.
refer_received
){
lc
->
vtable
.
refer_received
(
lc
,
referto
);
...
...
coreapi/linphonecall.c
View file @
50b7001d
...
...
@@ -224,7 +224,6 @@ static void linphone_call_set_terminated(LinphoneCall *call){
if
(
call
==
lc
->
current_call
){
ms_message
(
"Resetting the current call"
);
lc
->
current_call
=
NULL
;
linphone_core_start_pending_refered_calls
(
lc
);
}
if
(
linphone_core_del_call
(
lc
,
call
)
!=
0
){
...
...
coreapi/linphonecore.c
View file @
50b7001d
...
...
@@ -1839,19 +1839,14 @@ const char * linphone_core_get_route(LinphoneCore *lc){
return
route
;
}
void
linphone_core_start_pending_refered_calls
(
LinphoneCore
*
lc
){
MSList
*
elem
;
for
(
elem
=
lc
->
calls
;
elem
!=
NULL
;
elem
=
elem
->
next
){
LinphoneCall
*
call
=
(
LinphoneCall
*
)
elem
->
data
;
if
(
call
->
refer_pending
){
LinphoneCallParams
*
cp
=
linphone_core_create_default_call_parameters
(
lc
);
cp
->
referer
=
call
;
ms_message
(
"Starting new call to refered address %s"
,
call
->
refer_to
);
call
->
refer_pending
=
FALSE
;
linphone_core_invite_with_params
(
lc
,
call
->
refer_to
,
cp
);
linphone_call_params_destroy
(
cp
);
break
;
}
void
linphone_core_start_refered_call
(
LinphoneCore
*
lc
,
LinphoneCall
*
call
){
if
(
call
->
refer_pending
){
LinphoneCallParams
*
cp
=
linphone_core_create_default_call_parameters
(
lc
);
cp
->
referer
=
call
;
ms_message
(
"Starting new call to refered address %s"
,
call
->
refer_to
);
call
->
refer_pending
=
FALSE
;
linphone_core_invite_with_params
(
lc
,
call
->
refer_to
,
cp
);
linphone_call_params_destroy
(
cp
);
}
}
...
...
@@ -2425,7 +2420,6 @@ int linphone_core_pause_call(LinphoneCore *lc, LinphoneCall *the_call)
lc
->
current_call
=
NULL
;
if
(
call
->
audiostream
||
call
->
videostream
)
linphone_call_stop_media_streams
(
call
);
linphone_core_start_pending_refered_calls
(
lc
);
return
0
;
}
...
...
coreapi/private.h
View file @
50b7001d
...
...
@@ -197,7 +197,7 @@ void linphone_core_update_progress(LinphoneCore *lc, const char *purpose, float
void
linphone_core_stop_waiting
(
LinphoneCore
*
lc
);
int
linphone_core_start_invite
(
LinphoneCore
*
lc
,
LinphoneCall
*
call
,
LinphoneProxyConfig
*
dest_proxy
);
void
linphone_core_start_
pending_
refered_call
s
(
LinphoneCore
*
lc
);
void
linphone_core_start_refered_call
(
LinphoneCore
*
lc
,
LinphoneCall
*
call
);
extern
SalCallbacks
linphone_sal_callbacks
;
void
linphone_proxy_config_set_error
(
LinphoneProxyConfig
*
cfg
,
LinphoneError
error
);
...
...
coreapi/sal_eXosip2_presence.c
View file @
50b7001d
...
...
@@ -627,6 +627,7 @@ int sal_publish(SalOp *op, const char *from, const char *to, SalPresenceStatus p
ms_message
(
"Failed to send publish request."
);
return
-
1
;
}
sal_add_other
(
sal_op_get_sal
(
op
),
op
,
pub
);
return
0
;
}
...
...
mediastreamer2
@
dcf3eba1
Subproject commit
bf8706f50f26e17b3ecc1501e70b712ec11d0dc3
Subproject commit
dcf3eba1afa5615cb01b52b1136d8aa0d224aca2
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