From 840c75ee64636caa8389130f71b4392582e93158 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 15 Dec 2007 19:33:36 +0000 Subject: [PATCH] to reduce ambiguity, don't mask var names in lower scope. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6813 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_presence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index b82306c489..4471e904ac 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -620,7 +620,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * //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 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * stream.write_function(&stream, "%s\n", astate); - if (!strcasecmp(status, "hold")) { + if (!strcasecmp(event_status, "hold")) { stream.write_function(&stream, "\n\n" "\n" "\n\n", clean_id);