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: https://origsvn.digium.com/svn/asterisk/trunk@326684
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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());