From af439fa5745d6295e92366bbf943345468cabde2 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 10 Feb 2012 15:14:26 -0600 Subject: [PATCH] try alternate technique --- src/mod/endpoints/mod_sofia/sofia_presence.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 7221d25f02..7d6987f7c4 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -2507,7 +2507,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * if (sofia_test_pflag(profile, PFLAG_PRESENCE_DISABLE_EARLY)) { if (!strcasecmp(astate, "ringing") || !strcasecmp(astate, "early")) { - astate = "confirmed"; + goto end; } } @@ -2751,6 +2751,9 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * send_presence_notify(profile, full_to, full_from, contact, expires, call_id, event, ip, port, ct, pl, NULL); + + end: + switch_safe_free(free_me); if (ext_profile) {