]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
4569 tweaks
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 27 Jul 2012 02:07:10 +0000 (21:07 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 27 Jul 2012 02:07:10 +0000 (21:07 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 4c9670f422346f257f5d1b0c953e69375234b630..efcda5e6152a72794e631ce88ec01343fbd26940 100644 (file)
@@ -1222,10 +1222,10 @@ static void our_sofia_event_callback(nua_event_t event,
 
                                refer_to = sip_header_as_string(nua_handle_home(nh), (void *) sip->sip_refer_to);
                                if ((params = strchr(refer_to, ';'))) {
-                                       if (*refer_to == '<') {
-                                               *params++ = '\0';
-                                       } else {
+                                       if (strchr(refer_to, '<')) {
                                                *params++ = '>';
+                                       } else {
+                                               *params++ = '\0';
                                        }
 
                                        if (!(method = switch_find_parameter(params, "method", NULL))) {