aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 7d87e24db..95999519f 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3111,7 +3111,7 @@ static void ast_sip_ouraddrfor(const struct ast_sockaddr *them, struct ast_socka
}
externexpire = time(NULL) + externrefresh;
}
- if (ast_sockaddr_isnull(&externip)) {
+ if (!ast_sockaddr_isnull(&externip)) {
ast_sockaddr_copy(us, &externip);
switch (p->socket.type) {
case SIP_TRANSPORT_TCP: