]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixes merge issue for r196453.
authorDavid Vossel <dvossel@digium.com>
Wed, 27 May 2009 15:59:59 +0000 (15:59 +0000)
committerDavid Vossel <dvossel@digium.com>
Wed, 27 May 2009 15:59:59 +0000 (15:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@197087 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 203edd58b29b4c2c8c2cde2b4f473bd4fd273ff4..17e93eb6f1d9adb02b6bf7b295e6fe04e16e3f8c 100644 (file)
@@ -22068,9 +22068,9 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
                }
        }
 
-       if (!peer->socket.type) {
+       if (!peer->default_outbound_transport) {
                peer->transports  = SIP_TRANSPORT_UDP;
-               peer->socket.type = SIP_TRANSPORT_UDP;
+               peer->default_outbound_transport = SIP_TRANSPORT_UDP;
        }
 
        /* The default transport type set during build_peer should only replace the socket.type when...