Commit c2121736 authored by Yann Diorcet's avatar Yann Diorcet

Upnp: add blacklisted state

parent 480c6434
......@@ -306,6 +306,7 @@ enum _LinphoneUpnpState{
LinphoneUpnpStateNotAvailable, /**< uPnP is not available */
LinphoneUpnpStateOk, /**< uPnP is enabled */
LinphoneUpnpStateKo, /**< uPnP processing has failed */
LinphoneUpnpStateBlacklisted, /**< IGD router is blacklisted */
};
/**
......
......@@ -229,7 +229,7 @@ void linphone_upnp_igd_callback(void *cookie, upnp_igd_event event, void *arg) {
lupnp->state = LinphoneUpnpStateNotAvailable;
} else if(blacklisted) {
ms_message("uPnP IGD: Router is blacklisted");
lupnp->state = LinphoneUpnpStateNotAvailable;
lupnp->state = LinphoneUpnpStateBlacklisted;
} else {
ms_message("uPnP IGD: Connected");
lupnp->state = LinphoneUpnpStateOk;
......
......@@ -327,6 +327,11 @@ public interface LinphoneCore {
* Ko
*/
static public UpnpState Ko = new UpnpState(6, "Ko");
/**
* Blacklisted
*/
static public UpnpState Blacklisted = new UpnpState(6, "Blacklisted");
protected final int mValue;
private final String mStringValue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment