Only consider timeouts on realtimers (bug #5554)
authorMark Spencer <markster@digium.com>
Mon, 31 Oct 2005 23:38:40 +0000 (23:38 +0000)
committerMark Spencer <markster@digium.com>
Mon, 31 Oct 2005 23:38:40 +0000 (23:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6916 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index df40648..7985d06 100755 (executable)
@@ -12167,7 +12167,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int
                 */
                v=v->next;
        }
-       if (!ast_test_flag((&global_flags_page2), SIP_PAGE2_IGNOREREGEXPIRE) && ast_test_flag(peer, SIP_DYNAMIC)) {
+       if (!ast_test_flag((&global_flags_page2), SIP_PAGE2_IGNOREREGEXPIRE) && ast_test_flag(peer, SIP_DYNAMIC) && realtime) {
                time_t nowtime;
 
                time(&nowtime);