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:
parent
3454b5927f
commit
b3333ebc2e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue