]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
If we receive an AUTHREQ from the remote server and we are unable to reply (for examp...
authorJoshua Colp <jcolp@digium.com>
Wed, 9 Apr 2008 16:50:45 +0000 (16:50 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 9 Apr 2008 16:50:45 +0000 (16:50 +0000)
(closes issue #12385)
Reported by: viraptor

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@113784 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 2cd3a9ad23c30ffdc49559c661f6eee80e67fd52..a204c7f7ac0f71aafca0178d836cc5cf87cfded7 100644 (file)
@@ -7787,9 +7787,13 @@ retryowner2:
                                        break;
                                }
                                if (authenticate_reply(iaxs[fr->callno], &iaxs[fr->callno]->addr, &ies, iaxs[fr->callno]->secret, iaxs[fr->callno]->outkey)) {
+                                       struct ast_frame hangup_fr = { .frametype = AST_FRAME_CONTROL,
+                                                               .subclass = AST_CONTROL_HANGUP,
+                                       };
                                        ast_log(LOG_WARNING, 
                                                "I don't know how to authenticate %s to %s\n", 
                                                ies.username ? ies.username : "<unknown>", ast_inet_ntoa(iaxs[fr->callno]->addr.sin_addr));
+                                       iax2_queue_frame(fr->callno, &hangup_fr);
                                }
                                if (!iaxs[fr->callno]) {
                                        ast_mutex_unlock(&iaxsl[fr->callno]);