Use iax/iax2 regfunk names

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-04-27 21:36:20 +00:00
parent f6764f4722
commit 59488458b0
2 changed files with 8 additions and 8 deletions

View File

@@ -3207,8 +3207,8 @@ static int expire_registry(void *data)
p->expire = -1;
/* Reset expirey value */
p->expirey = expirey;
if (regfunk)
regfunk(p->name, 0);
if (iax_regfunk)
iax_regfunk(p->name, 0);
return 0;
}
@@ -3224,8 +3224,8 @@ static int update_registry(char *name, struct sockaddr_in *sin, int callno)
for (p = peerl.peers;p;p = p->next) {
if (!strcasecmp(name, p->name)) {
if (memcmp(&p->addr, sin, sizeof(p->addr))) {
if (regfunk)
regfunk(p->name, 1);
if (iax_regfunk)
iax_regfunk(p->name, 1);
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), htons(sin->sin_port));