Use iax/iax2 regfunk names
[asterisk/asterisk.git] / channels / chan_iax.c
index fe58035..69ad182 100755 (executable)
@@ -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));