One more temp vs. dynamic
authorMark Spencer <markster@digium.com>
Tue, 12 Oct 2004 22:02:19 +0000 (22:02 +0000)
committerMark Spencer <markster@digium.com>
Tue, 12 Oct 2004 22:02:19 +0000 (22:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3986 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4f33369..461a8dd 100755 (executable)
@@ -7898,7 +7898,7 @@ static int sip_devicestate(void *data)
                        res = AST_DEVICE_UNKNOWN;
        }
 
-       if (p && p->dynamic) {
+       if (p && p->temponly) {
                destroy_peer(p);
        }
        return res;