[Freeswitch-svn] [commit] r6813 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Sat Dec 15 14:33:37 EST 2007


Author: mikej
Date: Sat Dec 15 14:33:36 2007
New Revision: 6813

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c

Log:
to reduce ambiguity, don't mask var names in lower scope.

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	Sat Dec 15 14:33:36 2007
@@ -620,7 +620,7 @@
 		//const char *direction = switch_str_nil(switch_event_get_header(helper->event, "call-direction"));
 		const char *uuid = switch_str_nil(switch_event_get_header(helper->event, "unique-id"));
 		const char *state = switch_str_nil(switch_event_get_header(helper->event, "channel-state"));
-		const char *status = switch_str_nil(switch_event_get_header(helper->event, "status"));
+		const char *event_status = switch_str_nil(switch_event_get_header(helper->event, "status"));
 		const char *astate = switch_str_nil(switch_event_get_header(helper->event, "answer-state"));
 
 		SWITCH_STANDARD_STREAM(stream);
@@ -648,7 +648,7 @@
 
 		stream.write_function(&stream, "<state>%s</state>\n", astate);
 
-		if (!strcasecmp(status, "hold")) {
+		if (!strcasecmp(event_status, "hold")) {
 			stream.write_function(&stream, "<local>\n<target uri=\"%s\">\n"
 								  "<param pname=\"+sip.rendering\" pvalue=\"no\">\n"
 								  "</target>\n</local>\n", clean_id);



More information about the Freeswitch-svn mailing list