Improve logging information for misconfigured contexts
authorPaul Belanger <paul.belanger@polybeacon.com>
Tue, 11 May 2010 19:26:17 +0000 (19:26 +0000)
committerPaul Belanger <paul.belanger@polybeacon.com>
Tue, 11 May 2010 19:26:17 +0000 (19:26 +0000)
(closes issue #17238)
Reported by: pprindeville
Patches:
      chan_sip-bug17238.patch uploaded by pprindeville (license 347)
Tested by: pprindeville

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@262414 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 3f83425..e604e07 100644 (file)
@@ -20573,8 +20573,8 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
                                transmit_response_reliable(p, "404 Not Found", req);
                                ast_uri_decode(decoded_exten);
                                ast_log(LOG_NOTICE, "Call from '%s' to extension"
-                                       " '%s' rejected because extension not found.\n",
-                                       S_OR(p->username, p->peername), decoded_exten);
+                                       " '%s' rejected because extension not found in context '%s'.\n",
+                                       S_OR(p->username, p->peername), decoded_exten, p->context);
                        }
                        p->invitestate = INV_COMPLETED;
                        update_call_counter(p, DEC_CALL_LIMIT);