]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix case for call_completed_elsewhere var set
authorMichael Jerris <mike@jerris.com>
Mon, 15 Apr 2013 20:45:12 +0000 (16:45 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 15 Apr 2013 20:45:12 +0000 (16:45 -0400)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 5f70f4f9b6d9d96b97b66ad53c55212beae6ace4..811f13f868792c165ca157f8929053ff88025910 100644 (file)
@@ -542,7 +542,9 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session)
                                        switch_snprintf(reason, sizeof(reason), "SIP;cause=%d;text=\"%s\"", cause, switch_channel_cause2str(cause));
                                }
                        }
+               }
 
+               if (switch_channel_test_flag(channel, CF_INTERCEPT) || cause == SWITCH_CAUSE_PICKED_OFF || cause == SWITCH_CAUSE_LOSE_RACE) {
                        switch_channel_set_variable(channel, "call_completed_elsewhere", "true");
                }