add var to assume ring_ready
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9625 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
72699aac81
commit
c01e6fe6ee
|
@ -620,6 +620,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||
ok = 1;
|
||||
} else if (!strcasecmp((char *) hi->name, "return_ring_ready")) {
|
||||
ok = 1;
|
||||
} else if (!strcasecmp((char *) hi->name, "ring_ready")) {
|
||||
ok = 1;
|
||||
} else if (!strcasecmp((char *) hi->name, "originate_retries")) {
|
||||
ok = 1;
|
||||
} else if (!strcasecmp((char *) hi->name, "originate_timeout")) {
|
||||
|
@ -709,6 +711,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||
return_ring_ready = 1;
|
||||
}
|
||||
|
||||
if ((var_val = switch_event_get_header(var_event, "ring_ready")) && switch_true(var_val)) {
|
||||
ring_ready = 1;
|
||||
}
|
||||
|
||||
if ((var_val = switch_event_get_header(var_event, "originate_timeout"))) {
|
||||
int tmp = atoi(var_val);
|
||||
if (tmp > 0) {
|
||||
|
|
Loading…
Reference in New Issue