aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-24 15:16:07 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-24 15:16:07 +0000
commitaa748f90483028d08e05074b8a746bf1c4a448dd (patch)
tree385c2e2b7ed034d156b0ea0f641c2a85c1d5deca
parent9f6d8c839079d2ff08766c53dc2e01406a875a6f (diff)
Skip check for extension when subscribing for MWI.
Since the remote side is not actually subscribing to a specific extension when subscribing for MWI just skip the check to see if the extension exists. They can't use it to specify the mailbox either since we require configuration of that in sip.conf (closes issue #14531) Reported by: festr git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@178205 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b39f0ccc4..799355cb9 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -15504,7 +15504,7 @@ static int handle_request_message(struct sip_pvt *p, struct sip_request *req)
/*! \brief Handle incoming SUBSCRIBE request */
static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req, struct sockaddr_in *sin, int seqno, char *e)
{
- int gotdest;
+ int gotdest = 0;
int res = 0;
int firststate = AST_EXTENSION_REMOVED;
struct sip_peer *authpeer = NULL;
@@ -15612,8 +15612,10 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req,
return 0;
}
- /* Get destination right away */
- gotdest = get_destination(p, NULL);
+ if (strcmp(event, "message-summary")) {
+ /* Get destination right away */
+ gotdest = get_destination(p, NULL);
+ }
/* Get full contact header - this needs to be used as a request URI in NOTIFY's */
parse_ok_contact(p, req);