diff --git a/console/commands.c b/console/commands.c index 4fdd4e715..21067c641 100644 --- a/console/commands.c +++ b/console/commands.c @@ -94,6 +94,7 @@ static int lpc_cmd_camera(LinphoneCore *lc, char *args); static int lpc_cmd_video_window(LinphoneCore *lc, char *args); static int lpc_cmd_preview_window(LinphoneCore *lc, char *args); static int lpc_cmd_snapshot(LinphoneCore *lc, char *args); +static int lpc_cmd_vfureq(LinphoneCore *lc, char *arg); #endif static int lpc_cmd_states(LinphoneCore *lc, char *args); static int lpc_cmd_identify(LinphoneCore *lc, char *args); @@ -2440,7 +2441,7 @@ static int lpc_cmd_snapshot(LinphoneCore *lc, char *args){ return 1; } -static int lpc_cmd_vfureq(LinphoneCore *lc){ +static int lpc_cmd_vfureq(LinphoneCore *lc, char *arg){ LinphoneCall *call; call=linphone_core_get_current_call(lc); if (call!=NULL){ diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 393305f54..db5c45096 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -973,11 +973,12 @@ void linphone_call_stop_media_streams(LinphoneCall *call){ } } +#ifdef VIDEO_ENABLED /** * Request remote side to send us VFU. **/ void linphone_call_send_vfu_request(LinphoneCall *call) { - LinphoneCall *call=linphone_core_get_current_call(lc); - sal_call_send_vfu_request(call->op); + sal_call_send_vfu_request(call->op); } +#endif diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index 872616737..8cea2d5eb 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -929,6 +929,6 @@ LinphoneGlobalState linphone_core_get_global_state(const LinphoneCore *lc); } #endif - +void linphone_call_send_vfu_request(LinphoneCall *call); #endif diff --git a/coreapi/sal_eXosip2.c b/coreapi/sal_eXosip2.c index 733f8df27..356b7dca2 100644 --- a/coreapi/sal_eXosip2.c +++ b/coreapi/sal_eXosip2.c @@ -1238,7 +1238,7 @@ static bool_t call_failure(Sal *sal, eXosip_event_t *ev){ } /* Request remote side to send us VFU */ -static void sal_call_send_vfu_request(SalOp *h){ +void sal_call_send_vfu_request(SalOp *h){ osip_message_t *msg=NULL; char info_body[] = "\n" @@ -1262,7 +1262,6 @@ static void sal_call_send_vfu_request(SalOp *h){ eXosip_call_send_request(h->did,msg); } eXosip_unlock(); - return 0; } static void process_media_control_xml(Sal *sal, eXosip_event_t *ev){