Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
liblinphone
Commits
6129ecf5
Commit
6129ecf5
authored
14 years ago
by
Simon Morlat
Browse files
Options
Download
Patches
Plain Diff
bugfix
parent
7a02fb5a
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
coreapi/callbacks.c
+3
-9
coreapi/callbacks.c
with
3 additions
and
9 deletions
coreapi/callbacks.c
+
3
−
9
View file @
6129ecf5
...
...
@@ -26,18 +26,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
static
void
linphone_connect_incoming
(
LinphoneCore
*
lc
,
LinphoneCall
*
call
){
if
(
lc
->
vtable
.
show
)
lc
->
vtable
.
show
(
lc
);
if
(
lc
->
vtable
.
display_status
)
lc
->
vtable
.
display_status
(
lc
,
_
(
"Connected."
));
linphone_call_set_state
(
call
,
LinphoneCallConnected
,
"Connected"
);
if
(
lc
->
ringstream
!=
NULL
){
ring_stop
(
lc
->
ringstream
);
lc
->
ringstream
=
NULL
;
}
linphone_call_start_media_streams
(
call
);
linphone_call_set_state
(
call
,
LinphoneCallStreamsRunning
,
"Connected (streams running)"
);
}
static
void
call_received
(
SalOp
*
h
){
...
...
@@ -208,7 +201,7 @@ static void call_accepted(SalOp *op){
}
else
{
linphone_call_set_state
(
call
,
LinphoneCallStreamsRunning
,
"Connected (streams running)"
);
}
linphone_c
all_start_media_streams
(
call
);
linphone_c
onnect_incoming
(
lc
,
call
);
}
else
{
/*send a bye*/
ms_error
(
"Incompatible SDP offer received in 200Ok, need to abort the call"
);
...
...
@@ -236,6 +229,7 @@ static void call_ack(SalOp *op){
sal_media_description_ref
(
call
->
resultdesc
);
if
(
call
->
resultdesc
&&
!
sal_media_description_empty
(
call
->
resultdesc
)){
linphone_connect_incoming
(
lc
,
call
);
linphone_call_set_state
(
call
,
LinphoneCallStreamsRunning
,
"Connected (streams running)"
);
}
else
{
/*send a bye*/
ms_error
(
"Incompatible SDP response received in ACK, need to abort the call"
);
...
...
@@ -273,7 +267,7 @@ static void call_updated(SalOp *op){
linphone_call_stop_media_streams
(
call
);
linphone_call_init_media_streams
(
call
);
linphone_c
onnect_incoming
(
lc
,
call
);
linphone_c
all_start_media_streams
(
call
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets