]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Send NOTIFY to Contact: in SUBSCRIBE
authorOlle Johansson <oej@edvina.net>
Thu, 19 Apr 2007 07:56:21 +0000 (07:56 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 19 Apr 2007 07:56:21 +0000 (07:56 +0000)
- as reported by Intertex and Citel. Fixed during SIPit 20 in Antwerp.

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

channels/chan_sip.c

index 155c0d73ebbb070287f046bd2ba4d82a600838af..8ae2be774fdb5737d6b0c21e4f7eb5914138ff59 100644 (file)
@@ -11068,6 +11068,10 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req,
                        ast_copy_string(p->context, p->subscribecontext, sizeof(p->context));
                else if (ast_strlen_zero(p->context))
                        strcpy(p->context, default_context);
+
+               /* Get full contact header - this needs to be used as a request URI in NOTIFY's */
+               parse_ok_contact(p, req);
+
                /* Get destination right away */
                build_contact(p);
                if (gotdest) {