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

FreeSWITCH SVN mikej at freeswitch.org
Mon Nov 24 06:59:31 PST 2008


Author: mikej
Date: Mon Nov 24 09:59:30 2008
New Revision: 10524

Log:
var name masking

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

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Mon Nov 24 09:59:30 2008
@@ -151,16 +151,16 @@
 		if (session && channel && tech_pvt) {
 			if (sip->sip_payload && sip->sip_payload->pl_data) {
 				char *p;
-				int status = 0;
+				int status_val = 0;
 				if ((p = strchr(sip->sip_payload->pl_data, ' '))) {
 					p++;
 					if (p) {
-						status = atoi(p);
+						status_val = atoi(p);
 					}
 				}
-				if (!status || status >= 200) {
+				if (!status_val || status_val >= 200) {
 					switch_channel_set_variable(channel, "sip_refer_reply", sip->sip_payload->pl_data);
-					if (status == 200) {
+					if (status_val == 200) {
 						switch_channel_hangup(channel, SWITCH_CAUSE_BLIND_TRANSFER);
 					}
 					if (tech_pvt->want_event == 9999) {



More information about the Freeswitch-svn mailing list