]> sjero.net Git - linphone/commitdiff
Add missing BUILD_UPNP preprocessor condition
authorYann Diorcet <yann.diorcet@belledonne-communications.com>
Thu, 10 Jan 2013 11:47:57 +0000 (12:47 +0100)
committerYann Diorcet <yann.diorcet@belledonne-communications.com>
Thu, 10 Jan 2013 11:47:57 +0000 (12:47 +0100)
coreapi/callbacks.c

index 901f23f2465293e8fd7b5724288473f7a971a474..f166bc49fdd87e29db3831e98f27e55a41b90435 100644 (file)
@@ -261,12 +261,13 @@ static void call_received(SalOp *h){
                ms_message("Defer ringing to gather ICE candidates");
                return;
        }
-
+#ifdef BUILD_UPNP
        if ((linphone_core_get_firewall_policy(lc) == LinphonePolicyUseUpnp) && (call->upnp_session != NULL)) {
                /* Defer ringing until the end of the ICE candidates gathering process. */
                ms_message("Defer ringing to gather uPnP candidates");
                return;
        }
+#endif //BUILD_UPNP
 
        linphone_core_notify_incoming_call(lc,call);
 }