Fix typo
authorMark Spencer <markster@digium.com>
Sat, 3 May 2003 03:30:55 +0000 (03:30 +0000)
committerMark Spencer <markster@digium.com>
Sat, 3 May 2003 03:30:55 +0000 (03:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@953 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 10f2075..e47a4ff 100755 (executable)
@@ -4743,7 +4743,7 @@ static int sip_poke_peer(struct sip_peer *peer)
        if (strlen(p->tohost))
                strncpy(p->tohost, peer->tohost, sizeof(p->tohost) - 1);
        else
-               snprintf(p->tohost, sizeof(p->tohost), "%s", inet_ntoa(p->addr.sin_addr));
+               snprintf(p->tohost, sizeof(p->tohost), "%s", inet_ntoa(peer->addr.sin_addr));
 
        /* Recalculate our side, and recalculate Call ID */
        memcpy(&p->ourip, myaddrfor(&p->sa.sin_addr), sizeof(p->ourip));