Don't attempt to qualify before we have a socket (bug #2331)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-09-07 14:40:34 +00:00
parent 3454b5927f
commit b3333ebc2e
1 changed files with 1 additions and 1 deletions

View File

@ -8314,7 +8314,7 @@ static struct sip_peer *build_peer(char *name, struct ast_variable *v)
*/
v=v->next;
}
if (!found && peer->dynamic)
if (!found && peer->dynamic && (sipsock > -1))
reg_source_db(peer);
peer->delme = 0;
}