Issue #6759, generate warning when refusing connection requiring unsupported SIP extensions

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Olle Johansson 2006-03-22 08:00:32 +00:00
parent 7cfb9b3515
commit 9e1e47450a
1 changed files with 1 additions and 0 deletions

View File

@ -10418,6 +10418,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
if (required_profile) { /* They require something */
/* At this point we support no extensions, so fail */
transmit_response_with_unsupported(p, "420 Bad extension", req, required);
ast_log(LOG_WARNING,"Received SIP INVITE with unsupported required extension: %s\n", required);
if (!p->lastinvite)
ast_set_flag(p, SIP_NEEDDESTROY);
return -1;