[asterisk-commits] mnicholson: branch 1.8 r326683 - /branches/1.8/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 7 10:28:30 CDT 2011


Author: mnicholson
Date: Thu Jul  7 10:28:25 2011
New Revision: 326683

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=326683
Log:
use sips: or sip: depending on the transport in use when building reply digest
URIs

Modified:
    branches/1.8/channels/chan_sip.c

Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=326683&r1=326682&r2=326683
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Thu Jul  7 10:28:25 2011
@@ -18639,7 +18639,7 @@
 	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());
 




More information about the asterisk-commits mailing list