p->has_video=linphone_core_video_enabled(lc);
return p;
}
+
+const char *linphone_error_to_string(LinphoneError err){
+ switch(err){
+ case LinphoneErrorNone:
+ return "No error";
+ case LinphoneErrorNoResponse:
+ return "No response";
+ case LinphoneErrorBadCredentials:
+ return "Bad credentials";
+ }
+ return "unknown error";
+}
void linphone_call_params_enable_video(LinphoneCallParams *cp, bool_t enabled);
void linphone_call_params_destroy(LinphoneCallParams *cp);
+/**
+ * Enum describing failure reasons.
+**/
+enum _LinphoneError{
+ LinphoneErrorNone,
+ LinphoneErrorNoResponse, /**<No response received from remote*/
+ LinphoneErrorBadCredentials /**<Authentication failed due to bad or missing credentials*/
+};
+
+typedef enum _LinphoneError LinphoneError;
+
+const char *linphone_error_to_string(LinphoneError err);
+
/**
* The LinphoneCall object represents a call issued or received by the LinphoneCore
**/
bool_t linphone_call_has_transfer_pending(const LinphoneCall *call);
int linphone_call_get_duration(const LinphoneCall *call);
const LinphoneCallParams linphone_call_get_current_params(const LinphoneCall *call);
+void linphone_call_enable_camera(LinphoneCall *lc, bool_t enabled);
+bool_t linphone_call_camera_enabled(const LinphoneCall *lc);
+LinphoneError linphone_call_get_error(const LinphoneCall *call);
void *linphone_call_get_user_pointer(LinphoneCall *call);
void linphone_call_set_user_pointer(LinphoneCall *call, void *user_pointer);
bool_t linphone_proxy_config_get_dial_escape_plus(const LinphoneProxyConfig *cfg);
const char * linphone_proxy_config_get_dial_prefix(const LinphoneProxyConfig *cfg);
+LinphoneError linphone_proxy_config_get_error(const LinphoneProxyConfig *cfg);
+
/* destruction is called automatically when removing the proxy config */
void linphone_proxy_config_destroy(LinphoneProxyConfig *cfg);
void linphone_proxy_config_set_sip_setup(LinphoneProxyConfig *cfg, const char *type);