diff options
author | Mark Spencer <markster@digium.com> | 2003-12-15 15:14:23 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-12-15 15:14:23 +0000 |
commit | 8b557dfd30bb7fea4333d257d06c988c1f071377 (patch) | |
tree | 42c5deba926dfeb728ea84030255be5f63157bce /channels/chan_iax2.c | |
parent | 843ae2cc2c0af89f0866e0128a70d77efcfcae13 (diff) |
Minor cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_iax2.c')
-rwxr-xr-x | channels/chan_iax2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 84f716a17..dfb481d8d 100755 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -3577,11 +3577,11 @@ static int update_registry(char *name, struct sockaddr_in *sin, int callno) if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "Registered '%s' (%s) at %s:%d\n", p->name, iaxs[callno]->state & IAX_STATE_AUTHENTICATED ? "AUTHENTICATED" : "UNAUTHENTICATED", inet_ntoa(sin->sin_addr), ntohs(sin->sin_port)); + /* Update the host */ + memcpy(&p->addr, sin, sizeof(p->addr)); + /* Verify that the host is really there */ + iax2_poke_peer(p); } - /* Update the host */ - memcpy(&p->addr, sin, sizeof(p->addr)); - /* Verify that the host is really there */ - iax2_poke_peer(p); /* Setup the expirey */ if (p->expire > -1) ast_sched_del(sched, p->expire); |