[asterisk-commits] mnicholson: branch 1.8 r326681 - /branches/1.8/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 7 10:25:53 CDT 2011
Author: mnicholson
Date: Thu Jul 7 10:25:49 2011
New Revision: 326681
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=326681
Log:
make the uri parameter used in reply digests more standards compliant in
certain cases by prepending "sip:" or "sips:" to it
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=326681&r1=326680&r2=326681
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Thu Jul 7 10:25:49 2011
@@ -18635,7 +18635,7 @@
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
More information about the asterisk-commits
mailing list