mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user