]> sjero.net Git - linphone/commitdiff
Increase incoming timeout to 30s.
authorGuillaume Beraudo <guillaume.beraudo@belledonne-communications.com>
Mon, 16 Jul 2012 09:17:43 +0000 (11:17 +0200)
committerGuillaume Beraudo <guillaume.beraudo@belledonne-communications.com>
Mon, 16 Jul 2012 09:17:43 +0000 (11:17 +0200)
coreapi/linphonecore.c

index 97296ea6e802941c54b04f41ceca61ce51ee7549..9c69fc88a1d7a1258d4288eb66d8d87be8fde4a8 100644 (file)
@@ -570,7 +570,7 @@ static void sip_config_read(LinphoneCore *lc)
        linphone_core_set_guess_hostname(lc,tmp);
 
 
-       tmp=lp_config_get_int(lc->config,"sip","inc_timeout",15);
+       tmp=lp_config_get_int(lc->config,"sip","inc_timeout",30);
        linphone_core_set_inc_timeout(lc,tmp);
 
        /* get proxies config */
@@ -1855,6 +1855,7 @@ void linphone_core_iterate(LinphoneCore *lc){
                        elapsed=curtime-call->start_time;
                        ms_message("incoming call ringing for %i seconds",elapsed);
                        if (elapsed>lc->sip_conf.inc_timeout){
+                               ms_message("incoming call timeout (%i)",lc->sip_conf.inc_timeout);
                                call->log->status=LinphoneCallMissed;
                                call->reason=LinphoneReasonNotAnswered;
                                linphone_core_terminate_call(lc,call);