[asterisk-commits] branch oej/strictrouting r8995 - /team/oej/strictrouting/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jan 31 09:53:08 MST 2006


Author: oej
Date: Tue Jan 31 10:53:05 2006
New Revision: 8995

URL: http://svn.digium.com/view/asterisk?rev=8995&view=rev
Log:
Adding extra header to make debugging easier

Modified:
    team/oej/strictrouting/channels/chan_sip.c

Modified: team/oej/strictrouting/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/oej/strictrouting/channels/chan_sip.c?rev=8995&r1=8994&r2=8995&view=diff
==============================================================================
--- team/oej/strictrouting/channels/chan_sip.c (original)
+++ team/oej/strictrouting/channels/chan_sip.c Tue Jan 31 10:53:05 2006
@@ -4188,8 +4188,10 @@
 
 	/* Check for strict or loose router */
 	if (ast_test_flag(p, SIP_STRICTROUTING)) {
-		if (option_debug)
+		if (option_debug) {
 			ast_log(LOG_DEBUG, "Strict routing enforced for session %s\n", p->callid);
+			add_header(req, "X-Asterisk-routing", "Strict routing enforced on this session");
+		}
 		is_strict = TRUE;
 	}
 



More information about the asterisk-commits mailing list