mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Fix a typo that prevented configuration of non-dynamic peers.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@112351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -10095,7 +10095,7 @@ static struct iax2_peer *build_peer(const char *name, struct ast_variable *v, st
|
||||
/* Non-dynamic. Make sure we become that way if we're not */
|
||||
AST_SCHED_DEL(sched, peer->expire);
|
||||
ast_clear_flag(peer, IAX_DYNAMIC);
|
||||
if (ast_dnsmgr_lookup(v->value, &peer->addr, &peer->dnsmgr, srvlookup ? "_iax._udp" : NULL));
|
||||
if (ast_dnsmgr_lookup(v->value, &peer->addr, &peer->dnsmgr, srvlookup ? "_iax._udp" : NULL))
|
||||
return peer_unref(peer);
|
||||
if (!peer->addr.sin_port)
|
||||
peer->addr.sin_port = htons(IAX_DEFAULT_PORTNO);
|
||||
|
||||
Reference in New Issue
Block a user