dect
/
asterisk
Archived
13
0
Fork 0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@953 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2003-05-03 03:30:55 +00:00
parent f02a06d64b
commit 893eaf8d5c
1 changed files with 1 additions and 1 deletions

View File

@ -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));