]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
try alternate technique
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 10 Feb 2012 21:14:26 +0000 (15:14 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 10 Feb 2012 21:14:26 +0000 (15:14 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 7221d25f022c065af8ee5293f4bdce6171f36ea9..7d6987f7c415f5eafb4ba0c07b8d2da8f9b7a70d 100644 (file)
@@ -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) {