From: Olle Johansson Date: Thu, 19 Apr 2007 07:56:21 +0000 (+0000) Subject: Send NOTIFY to Contact: in SUBSCRIBE X-Git-Tag: 1.2.18~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57185823d1843d1afcc807d01fbe8185a4aa2ab8;p=thirdparty%2Fasterisk.git 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.2@61685 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 155c0d73eb..8ae2be774f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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) {