diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index 1fafac383..54391842c 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -436,6 +436,7 @@ enum _LinphoneUpnpState{ LinphoneUpnpStateNotAvailable, /**< uPnP is not available */ LinphoneUpnpStateOk, /**< uPnP is enabled */ LinphoneUpnpStateKo, /**< uPnP processing has failed */ + LinphoneUpnpStateBlacklisted, /**< IGD router is blacklisted */ }; /** diff --git a/coreapi/upnp.c b/coreapi/upnp.c index e74c189a5..7b1307435 100644 --- a/coreapi/upnp.c +++ b/coreapi/upnp.c @@ -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; diff --git a/java/common/org/linphone/core/LinphoneCore.java b/java/common/org/linphone/core/LinphoneCore.java index 76ced4133..15c2ba0bc 100644 --- a/java/common/org/linphone/core/LinphoneCore.java +++ b/java/common/org/linphone/core/LinphoneCore.java @@ -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;