]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 61685 via svnmerge from
authorOlle Johansson <oej@edvina.net>
Thu, 19 Apr 2007 08:37:08 +0000 (08:37 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 19 Apr 2007 08:37:08 +0000 (08:37 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61685 | oej | 2007-04-19 09:56:21 +0200 (Thu, 19 Apr 2007) | 3 lines

Send NOTIFY to Contact: in SUBSCRIBE
- as reported by Intertex and Citel. Fixed during SIPit 20 in Antwerp.

........

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

channels/chan_sip.c

index 22b8260c05a8be03b08f258f1e152736359562cb..21d06b58d2ebc87a69412f9317bf7e553e792bbc 100644 (file)
@@ -14391,6 +14391,9 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req,
        else if (ast_strlen_zero(p->context))
                ast_string_field_set(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);
+
        build_contact(p);
        if (gotdest) {
                transmit_response(p, "404 Not Found", req);