diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-19 07:56:21 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-19 07:56:21 +0000 |
commit | aece2082eb1cd0df1de2ace592e51185740746b3 (patch) | |
tree | e0d75e1f574f643e2b7a9a381ca72532839a3036 | |
parent | 1ce325d67c86bf63786232d01a272436f0a38cd2 (diff) |
Send NOTIFY to Contact: in SUBSCRIBE
- as reported by Intertex and Citel. Fixed during SIPit 20 in Antwerp.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@61685 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 155c0d73e..8ae2be774 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) { |