From: Olle Johansson Date: Thu, 19 Apr 2007 08:37:08 +0000 (+0000) Subject: Merged revisions 61685 via svnmerge from X-Git-Tag: 1.4.7.1~423 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32be6621f6d1c142e7a7fbca3f9d5a095c887584;p=thirdparty%2Fasterisk.git Merged revisions 61685 via svnmerge from 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 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 22b8260c05..21d06b58d2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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);