]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't test our own address against the localnet settings. At least one person has...
authorJoshua Colp <jcolp@digium.com>
Tue, 20 Feb 2007 23:08:45 +0000 (23:08 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 20 Feb 2007 23:08:45 +0000 (23:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@55688 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 0eb2c270c5d57fc4b5269ef3242480bfcc674547..08a33d887631c3d23de73d27eef9d3057111d1ff 100644 (file)
@@ -1771,16 +1771,14 @@ static void build_via(struct sip_pvt *p)
  */
 static enum sip_result ast_sip_ouraddrfor(struct in_addr *them, struct in_addr *us)
 {
-       struct sockaddr_in theirs, ours;
+       struct sockaddr_in theirs;
 
        /* Get our local information */
        ast_ouraddrfor(them, us);
        theirs.sin_addr = *them;
-       ours.sin_addr = *us;
 
        if (localaddr && externip.sin_addr.s_addr &&
-           ast_apply_ha(localaddr, &theirs) &&
-           !ast_apply_ha(localaddr, &ours)) {
+           ast_apply_ha(localaddr, &theirs)) {
                if (externexpire && time(NULL) >= externexpire) {
                        struct ast_hostent ahp;
                        struct hostent *hp;