don't reject REGREL requests (issue #5152)
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 7 Sep 2005 23:18:39 +0000 (23:18 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 7 Sep 2005 23:18:39 +0000 (23:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6544 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 8c2c5b8..0ea0196 100755 (executable)
@@ -6326,8 +6326,9 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
                } else {
                        f.subclass = uncompress_subclass(fh->csub);
                }
-               if ((f.frametype == AST_FRAME_IAX) && ((f.subclass == IAX_COMMAND_NEW) || (f.subclass == IAX_COMMAND_REGREQ)
-                               || (f.subclass == IAX_COMMAND_POKE) || (f.subclass == IAX_COMMAND_FWDOWNL)))
+               if ((f.frametype == AST_FRAME_IAX) && ((f.subclass == IAX_COMMAND_NEW) || (f.subclass == IAX_COMMAND_REGREQ) ||
+                                                      (f.subclass == IAX_COMMAND_POKE) || (f.subclass == IAX_COMMAND_FWDOWNL) ||
+                                                      (f.subclass == IAX_COMMAND_REGREL)))
                        new = NEW_ALLOW;
        } else {
                /* Don't know anything about it yet */