mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Clear dialog on loop (backport from 1.4 by mistake)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -10518,8 +10518,9 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
|
||||
/* This is a call to ourself. Send ourselves an error code and stop
|
||||
processing immediately, as SIP really has no good mechanism for
|
||||
being able to call yourself */
|
||||
transmit_response(p, "482 Loop Detected", req);
|
||||
/* We do NOT destroy p here, so that our response will be accepted */
|
||||
transmit_response_reliable(p, "482 Loop Detected", req, 1);
|
||||
if (!p->lastinvite)
|
||||
ast_set_flag(p, SIP_NEEDDESTROY);
|
||||
return 0;
|
||||
}
|
||||
if (!ignore) {
|
||||
|
Reference in New Issue
Block a user