Use iax/iax2 regfunk names
authorMark Spencer <markster@digium.com>
Sun, 27 Apr 2003 21:36:20 +0000 (21:36 +0000)
committerMark Spencer <markster@digium.com>
Sun, 27 Apr 2003 21:36:20 +0000 (21:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@920 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax.c
channels/chan_iax2.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));
index 2446c9a..259d2a8 100755 (executable)
@@ -3168,8 +3168,8 @@ static int expire_registry(void *data)
        p->expire = -1;
        /* Reset expirey value */
        p->expirey = expirey;
-       if (regfunk)
-               regfunk(p->name, 0);
+       if (iax2_regfunk)
+               iax2_regfunk(p->name, 0);
        return 0;
 }
 
@@ -3187,8 +3187,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 (inaddrcmp(&p->addr, sin)) {
-                               if (regfunk)
-                                       regfunk(p->name, 1);
+                               if (iax2_regfunk)
+                                       iax2_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));