diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-07-07 15:28:47 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-07-07 15:28:47 +0000 |
commit | f5c8c790feacc50d817970fef24491469a008710 (patch) | |
tree | e27c823dbd1935ca9e9e1d5f9d13e3dd896f545b | |
parent | bdc36711b2373e8fc696a53922c7a4deb790f103 (diff) |
Merged revisions 326683 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r326683 | mnicholson | 2011-07-07 10:28:25 -0500 (Thu, 07 Jul 2011) | 3 lines
use sips: or sip: depending on the transport in use when building reply digest
URIs
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@326684 f38db490-d61c-443f-a65b-d21fe96a405b
-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 ab7600f7b..9e2ddf7ed 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -19141,7 +19141,7 @@ static int build_reply_digest(struct sip_pvt *p, int method, char* digest, int d else if (!ast_strlen_zero(p->uri)) ast_copy_string(uri, p->uri, sizeof(uri)); else - snprintf(uri, sizeof(uri), "sip:%s@%s", p->username, ast_sockaddr_stringify_host_remote(&p->sa)); + snprintf(uri, sizeof(uri), "%s:%s@%s", p->socket.type == SIP_TRANSPORT_TLS ? "sips" : "sip", p->username, ast_sockaddr_stringify_host_remote(&p->sa)); snprintf(cnonce, sizeof(cnonce), "%08lx", ast_random()); |