diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 05:42:24 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 05:42:24 +0000 |
commit | ece88387b99ab40d8471d042c86580e856ad4992 (patch) | |
tree | 198112a043665599311f376bf89fb5e757da2331 /channels | |
parent | 1f0da4719a65d2f1c51c7861b4024b9903512d44 (diff) |
Fix reversed logic of if statement.
Found based on message from Philip Prindeville on the
Asterisk Developers mailing list.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@276909 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
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: |