Provide more useful iax2 debugging (bug #2603)
authorMark Spencer <markster@digium.com>
Fri, 8 Oct 2004 05:37:19 +0000 (05:37 +0000)
committerMark Spencer <markster@digium.com>
Fri, 8 Oct 2004 05:37:19 +0000 (05:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3948 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index feab2c1..6d054b5 100755 (executable)
@@ -5338,7 +5338,7 @@ retryowner:
                                        /* They're not allowed on */
                                        auth_fail(fr.callno, IAX_COMMAND_REJECT);
                                        if (authdebug)
-                                               ast_log(LOG_NOTICE, "Rejected connect attempt from %s\n", ast_inet_ntoa(iabuf, sizeof(iabuf), sin.sin_addr));
+                                               ast_log(LOG_NOTICE, "Rejected connect attempt from %s, who was trying to reach '%s@%s'\n", ast_inet_ntoa(iabuf, sizeof(iabuf), sin.sin_addr), iaxs[fr.callno]->exten, iaxs[fr.callno]->context);
                                        break;
                                }
                                /* If we're in trunk mode, do it now, and update the trunk number in our frame before continuing */