Don't seed on temponly peers
authorMark Spencer <markster@digium.com>
Mon, 29 Nov 2004 03:19:55 +0000 (03:19 +0000)
committerMark Spencer <markster@digium.com>
Mon, 29 Nov 2004 03:19:55 +0000 (03:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4352 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index cc5f3c5..dedf7fe 100755 (executable)
@@ -6585,7 +6585,7 @@ static struct iax2_peer *build_peer(const char *name, struct ast_variable *v, in
                peer->delme = 0;
                /* Make sure these are IPv4 addresses */
                peer->addr.sin_family = AF_INET;
-               if (!found && peer->dynamic)
+               if (!found && peer->dynamic && !temponly)
                        reg_source_db(peer);
        }
        if (oldha)