Skip to content

fix bug, linphone_core_accept_call will be crash when call is NULL, use by linphonec#30

Open
smallmuou wants to merge 1 commit into
BelledonneCommunications:masterfrom
smallmuou:master
Open

fix bug, linphone_core_accept_call will be crash when call is NULL, use by linphonec#30
smallmuou wants to merge 1 commit into
BelledonneCommunications:masterfrom
smallmuou:master

Conversation

@smallmuou
Copy link
Copy Markdown

@smallmuou smallmuou commented Sep 18, 2017

Hi, Nearly i meet a issue, that when i use linphonec command to answer a call, it will crash. And I found it cause by linphone_core_accept_call(lc, NULL), see code bellow.

++++++++++console/commands.c++++++++
static int
lpc_cmd_answer(LinphoneCore *lc, char *args){
...
if ( -1 == linphone_core_accept_call(lc, NULL) )
{
linphonec_out("Fail to accept incoming call\n");
}
...
++++++++++++++++++++++++++++++++++

so I fix linphone_core_accept_call like this:

++++++++++coreapi/linphonecore.c++++++++

LinphoneStatus linphone_core_accept_call(LinphoneCore *lc, LinphoneCall *call) {
return linphone_core_accept_call_with_params(lc, call, NULL);
}
++++++++++++++++++++++++++++++++++

@abioteau
Copy link
Copy Markdown

abioteau commented Jun 9, 2022

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants