mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 07:08:11 +00:00
fix c89 compilation issue
This commit is contained in:
parent
a1eae0148c
commit
ef2ce842c7
1 changed files with 4 additions and 2 deletions
|
|
@ -42,14 +42,16 @@ static void stop(int signum){
|
|||
* Call state notification callback
|
||||
*/
|
||||
static void call_state_changed(LinphoneCore *lc, LinphoneCall *call, LinphoneCallState cstate, const char *msg){
|
||||
LinphoneCallParams * call_params;
|
||||
switch(cstate){
|
||||
case LinphoneCallIncomingReceived:
|
||||
printf("Incoming call arrive !\n");
|
||||
/* accept the incoming call*/
|
||||
LinphoneCallParams * call_params = linphone_core_create_default_call_parameters(lc);
|
||||
call_params = linphone_core_create_default_call_parameters(lc);
|
||||
linphone_call_params_set_audio_direction(call_params,LinphoneMediaDirectionSendOnly);
|
||||
linphone_call_params_set_video_direction(call_params,LinphoneMediaDirectionSendOnly);
|
||||
linphone_core_accept_call_with_params(lc,call,call_params);
|
||||
linphone_call_params_destroy(call_params);
|
||||
|
||||
break;
|
||||
case LinphoneCallOutgoingEarlyMedia:
|
||||
|
|
@ -84,11 +86,11 @@ int main(int argc, char *argv[]){
|
|||
LinphoneCore *lc;
|
||||
LinphoneVideoPolicy policy;
|
||||
int i;
|
||||
policy.automatically_accept=TRUE;
|
||||
LinphoneAddress *addr=NULL;
|
||||
LCSipTransports tp;
|
||||
char * tmp = NULL;
|
||||
|
||||
policy.automatically_accept=TRUE;
|
||||
signal(SIGINT,stop);
|
||||
for(i = 1; i < argc; ++i) {
|
||||
if (strcmp(argv[i], "--verbose") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue