Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smallmuou
Copy link

@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

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.

None yet

2 participants