[asterisk-commits] mjordan: trunk r394278 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Jul 13 17:14:07 CDT 2013
Author: mjordan
Date: Sat Jul 13 17:14:04 2013
New Revision: 394278
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394278
Log:
Pretty up a debug message if the referred-by-uri isn't available
Instead of formatting a NULL pointer into a "%s" format string (which is
usually not a good thing to do), we instead print "Unknown".
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=394278&r1=394277&r2=394278
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sat Jul 13 17:14:04 2013
@@ -18141,7 +18141,7 @@
/* Either an existing extension or the parking extension */
if (refer->attendedtransfer || ast_exists_extension(NULL, transfer_context, refer_to, 1, NULL)) {
if (sip_debug_test_pvt(transferer)) {
- ast_verbose("SIP transfer to extension %s@%s by %s\n", refer_to, transfer_context, referred_by_uri);
+ ast_verbose("SIP transfer to extension %s@%s by %s\n", refer_to, transfer_context, S_OR(referred_by_uri, "Unknown"));
}
/* We are ready to transfer to the extension */
return 0;
More information about the asterisk-commits
mailing list