diff options
author | Matthew Nicholson <mnicholson@digium.com> | 2011-07-07 15:26:42 +0000 |
---|---|---|
committer | Matthew Nicholson <mnicholson@digium.com> | 2011-07-07 15:26:42 +0000 |
commit | 14553512eed1d185ca4af57cfac475a5f51440f8 (patch) | |
tree | 434c1fb36b4e262c11d4bab9e1ea7c01e8644bcb | |
parent | 225178dbef58da6e2158871c2a9929a7a7571d90 (diff) |
Merged revisions 326681 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r326681 | mnicholson | 2011-07-07 10:25:49 -0500 (Thu, 07 Jul 2011) | 3 lines
make the uri parameter used in reply digests more standards compliant in
certain cases by prepending "sip:" or "sips:" to it
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@326682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1f2c72379..ab7600f7b 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -19137,7 +19137,7 @@ static int build_reply_digest(struct sip_pvt *p, int method, char* digest, int d struct sip_auth_container *credentials; if (!ast_strlen_zero(p->domain)) - ast_copy_string(uri, p->domain, sizeof(uri)); + snprintf(uri, sizeof(uri), "%s:%s", p->socket.type == SIP_TRANSPORT_TLS ? "sips" : "sip", p->domain); else if (!ast_strlen_zero(p->uri)) ast_copy_string(uri, p->uri, sizeof(uri)); else |