#include "linphonecore.h"
#include "sal.h"
-typedef enum {
- LinphoneUpnpStateIdle,
- LinphoneUpnpStatePending,
- LinphoneUpnpStateAdding, // Only used by port binding
- LinphoneUpnpStateRemoving, // Only used by port binding
- LinphoneUpnpStateNotAvailable, // Only used by uPnP context
- LinphoneUpnpStateOk,
- LinphoneUpnpStateKo,
-} UpnpState;
-
typedef struct _UpnpSession UpnpSession;
typedef struct _UpnpContext UpnpContext;
int linphone_core_update_upnp_from_remote_media_description(LinphoneCall *call, const SalMediaDescription *md);
int linphone_core_update_upnp(LinphoneCore *lc, LinphoneCall *call);
-int upnp_call_process(LinphoneCall *call);
-UpnpSession* upnp_session_new(LinphoneCall *call);
-void upnp_session_destroy(UpnpSession* session);
-UpnpState upnp_session_get_state(UpnpSession *session);
-
-UpnpContext *upnp_context_new(LinphoneCore *lc);
-void upnp_context_destroy(UpnpContext *ctx);
-UpnpState upnp_context_get_state(UpnpContext *ctx);
-const char *upnp_context_get_external_ipaddress(UpnpContext *ctx);
+int linphone_upnp_call_process(LinphoneCall *call);
+UpnpSession* linphone_upnp_session_new(LinphoneCall *call);
+void linphone_upnp_session_destroy(UpnpSession* session);
+LinphoneUpnpState linphone_upnp_session_get_state(UpnpSession *session);
+
+UpnpContext *linphone_upnp_context_new(LinphoneCore *lc);
+void linphone_upnp_context_destroy(UpnpContext *ctx);
+void linphone_upnp_refresh(UpnpContext *ctx);
+LinphoneUpnpState linphone_upnp_context_get_state(UpnpContext *ctx);
+const char *linphone_upnp_context_get_external_ipaddress(UpnpContext *ctx);
+int linphone_upnp_context_get_external_port(UpnpContext *ctx);
+bool_t linphone_upnp_context_is_ready_for_register(UpnpContext *ctx);
+void linphone_core_update_upnp_state_in_call_stats(LinphoneCall *call);
#endif //LINPHONE_UPNP_H