]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9932: [freeswitch-core] Error with group confirm feature combined with enterprise...
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 10 Jan 2017 22:06:33 +0000 (16:06 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 10 Jan 2017 22:06:33 +0000 (16:06 -0600)
src/switch_ivr_originate.c

index 25ed32093d3179be149fbdd8ec534e21567099e3..b8f7cd9f31c246ae77d4718cfeef2f981b20c5cf 100644 (file)
@@ -1689,7 +1689,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_enterprise_originate(switch_core_sess
                        continue;
                }
 
-               if (channel && handles[i].cause && handles[i].cause != SWITCH_CAUSE_SUCCESS) {
+               if (getcause && channel && handles[i].cause && handles[i].cause != SWITCH_CAUSE_SUCCESS) {
                        switch_channel_handle_cause(channel, handles[i].cause);
                }