From c3c031569312fe85fb8e7f3c61c5140aadc2904a Mon Sep 17 00:00:00 2001 From: Matthew Jordan Date: Sat, 13 Jul 2013 22:14:04 +0000 Subject: 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". git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394278 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3c1f97b05..83c521d49 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18141,7 +18141,7 @@ static int get_refer_info(struct sip_pvt *transferer, struct sip_request *outgoi /* 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; -- cgit v1.2.3