mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 11:48:48 +00:00
windows build tweaks.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9922 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a6a2d37c07
commit
cb970d8fba
src
@ -2335,7 +2335,7 @@ SWITCH_STANDARD_API(uuid_session_heartbeat_function)
|
|||||||
|
|
||||||
argc = switch_separate_string(mycmd, ' ', argv, (sizeof(argv) / sizeof(argv[0])));
|
argc = switch_separate_string(mycmd, ' ', argv, (sizeof(argv) / sizeof(argv[0])));
|
||||||
|
|
||||||
if (argc != 2) {
|
if (argc != 2 || !argv[0]) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1280,7 +1280,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||||||
ok = 1;
|
ok = 1;
|
||||||
for (i = 0; i < and_argc; i++) {
|
for (i = 0; i < and_argc; i++) {
|
||||||
switch_channel_t *pchannel;
|
switch_channel_t *pchannel;
|
||||||
switch_call_cause_t cause;
|
|
||||||
const char *cause_str;
|
const char *cause_str;
|
||||||
|
|
||||||
if (!peer_sessions[i]) {
|
if (!peer_sessions[i]) {
|
||||||
@ -1289,8 +1288,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||||||
pchannel = switch_core_session_get_channel(peer_sessions[i]);
|
pchannel = switch_core_session_get_channel(peer_sessions[i]);
|
||||||
|
|
||||||
if (switch_channel_get_state(pchannel) >= CS_HANGUP) {
|
if (switch_channel_get_state(pchannel) >= CS_HANGUP) {
|
||||||
cause = switch_channel_get_cause(pchannel);
|
cause_str = switch_channel_cause2str(switch_channel_get_cause(pchannel));
|
||||||
cause_str = switch_channel_cause2str(cause);
|
|
||||||
if (switch_stristr(cause_str, fail_on_single_reject_var)) {
|
if (switch_stristr(cause_str, fail_on_single_reject_var)) {
|
||||||
ok = 0;
|
ok = 0;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user