From: Simon Morlat Date: Mon, 21 May 2012 10:25:01 +0000 (+0200) Subject: fix missing handling of paused-by-remote when done twice X-Git-Url: http://sjero.net/git/?p=linphone;a=commitdiff_plain;h=cc640524b498981ee523ebf4e951adfc81c25835 fix missing handling of paused-by-remote when done twice --- diff --git a/coreapi/callbacks.c b/coreapi/callbacks.c index 142a7a56..d7bc861b 100644 --- a/coreapi/callbacks.c +++ b/coreapi/callbacks.c @@ -463,7 +463,7 @@ static void call_updating(SalOp *op){ case LinphoneCallPausedByRemote: if (sal_media_description_has_dir(rmd,SalStreamSendRecv) || sal_media_description_has_dir(rmd,SalStreamRecvOnly)){ call_resumed(lc,call); - } + }else call_paused_by_remote(lc,call); break; case LinphoneCallStreamsRunning: case LinphoneCallConnected: diff --git a/coreapi/linphone_tunnel.h b/coreapi/linphone_tunnel.h index 53966890..ea49ac8b 100644 --- a/coreapi/linphone_tunnel.h +++ b/coreapi/linphone_tunnel.h @@ -52,7 +52,7 @@ extern "C" * Add a tunnel server. At least one should be provided to be able to connect. * When several addresses are provided, the tunnel client may try each of them until it gets connected. * @param tunnel object - * @param ip server ip address + * @param host server ip address * @param port tunnel server tls port, recommended value is 443 */ void linphone_tunnel_add_server(LinphoneTunnel *tunnel, const char *host, int port); @@ -60,7 +60,7 @@ void linphone_tunnel_add_server(LinphoneTunnel *tunnel, const char *host, int po *Add tunnel server with auto detection capabilities * * @param tunnel object - * @param ip tunnel server ip address + * @param host tunnel server ip address * @param port tunnel server tls port, recommended value is 443 * @param remote_udp_mirror remote port on the tunnel server side used to test udp reachability * @param delay udp packet round trip delay in ms considered as acceptable. recommended value is 1000 ms. @@ -79,7 +79,7 @@ void linphone_tunnel_clean_servers(LinphoneTunnel *tunnel); /** * Sets whether tunneling of SIP and RTP is required. * @param tunnel object - * @param isEnabled If true enter in tunneled mode, if false exits from tunneled mode. + * @param enabled If true enter in tunneled mode, if false exits from tunneled mode. * The TunnelManager takes care of refreshing SIP registration when switching on or off the tunneled mode. * **/ @@ -109,6 +109,10 @@ void linphone_tunnel_set_http_proxy_auth_info(LinphoneTunnel*tunnel, const char* void linphone_tunnel_enable_logs(LinphoneTunnel *tunnel, bool_t enabled); +/** + * @} +**/ + #ifdef __cplusplus } #endif diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 802afe72..0ca5b7b4 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -2367,7 +2367,7 @@ int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const Linpho * Then, when the user responds to dialog prompt, it becomes possible to call linphone_core_accept_call_update() to answer * the reINVITE, with eventually video enabled in the LinphoneCallParams argument. * - * @Returns 0 if successful, -1 if the linphone_core_defer_call_update() was done outside a #LinphoneCallUpdatedByRemote notification, which is illegal. + * @return 0 if successful, -1 if the linphone_core_defer_call_update() was done outside a #LinphoneCallUpdatedByRemote notification, which is illegal. **/ int linphone_core_defer_call_update(LinphoneCore *lc, LinphoneCall *call){ if (call->state==LinphoneCallUpdatedByRemote){ @@ -2395,7 +2395,7 @@ int linphone_core_defer_call_update(LinphoneCore *lc, LinphoneCall *call){ * @param lc the linphone core object. * @param call the LinphoneCall object * @param params a LinphoneCallParams object describing the call parameters to accept. - * @Returns 0 if sucessful, -1 otherwise (actually when this function call is performed outside ot #LinphoneCallUpdatedByRemote state). + * @return 0 if sucessful, -1 otherwise (actually when this function call is performed outside ot #LinphoneCallUpdatedByRemote state). **/ int linphone_core_accept_call_update(LinphoneCore *lc, LinphoneCall *call, const LinphoneCallParams *params){ SalMediaDescription *md; diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index bd10556a..0eaec1e8 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -227,6 +227,9 @@ typedef struct _LinphoneVideoPolicy LinphoneVideoPolicy; * The LinphoneCall object represents a call issued or received by the LinphoneCore **/ struct _LinphoneCall; +/** + * The LinphoneCall object represents a call issued or received by the LinphoneCore +**/ typedef struct _LinphoneCall LinphoneCall; /** Callback prototype */ diff --git a/coreapi/proxy.c b/coreapi/proxy.c index cf767580..1676e091 100644 --- a/coreapi/proxy.c +++ b/coreapi/proxy.c @@ -477,7 +477,7 @@ const char *linphone_proxy_config_get_route(const LinphoneProxyConfig *obj){ /** * Returns the SIP identity that belongs to this proxy configuration. * - * The SIP identity is a SIP address (Display Name ) + * The SIP identity is a SIP address (Display Name ) **/ const char *linphone_proxy_config_get_identity(const LinphoneProxyConfig *obj){ return obj->reg_identity;