Reverse revision 16804 that disables authentication
and a lot of other issues... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
225d8d5270
commit
2240245389
1 changed files with 81 additions and 89 deletions
|
@ -6534,10 +6534,6 @@ static int cb_extensionstate(char *context, char* exten, int state, void *data)
|
|||
{
|
||||
struct sip_pvt *p = data;
|
||||
|
||||
if (p == (struct sip_pvt *) NULL) {
|
||||
ast_log(LOG_ERROR, "We're sent state change for channel we don't know... Major issue!!!!! Notify management!!!\n");
|
||||
return 0;
|
||||
}
|
||||
switch(state) {
|
||||
case AST_EXTENSION_DEACTIVATED: /* Retry after a while */
|
||||
case AST_EXTENSION_REMOVED: /* Extension is gone */
|
||||
|
@ -11028,9 +11024,6 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req,
|
|||
} else if (debug && ignore)
|
||||
ast_verbose("Ignoring this SUBSCRIBE request\n");
|
||||
|
||||
/* Don't treat this SUBSCRIBE request as new if it isn't */
|
||||
if (!p->lastinvite) {
|
||||
|
||||
/* Find parameters to Event: header value and remove them for now */
|
||||
if ((eventparam = strchr(event, ';')))
|
||||
*eventparam++ = '\0';
|
||||
|
@ -11119,7 +11112,6 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req,
|
|||
if (p->subscribed != MWI_NOTIFICATION)
|
||||
p->stateid = ast_extension_state_add(p->context, p->exten, cb_extensionstate, p);
|
||||
}
|
||||
}
|
||||
|
||||
if (!ignore && p)
|
||||
p->lastinvite = seqno;
|
||||
|
|
Loading…
Reference in a new issue