Fix a typo that prevented configuration of non-dynamic peers.
authorRussell Bryant <russell@russellbryant.com>
Tue, 1 Apr 2008 22:25:45 +0000 (22:25 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 1 Apr 2008 22:25:45 +0000 (22:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@112351 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index ce89db7..2e82944 100644 (file)
@@ -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);