]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add var to assume ring_ready
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Sep 2008 19:01:22 +0000 (19:01 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Sep 2008 19:01:22 +0000 (19:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9625 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 43320e8860fd7e6ca39693ad238efcb6d3c0050c..a8b1a918acc115f6f8bf402e83cd5e10c0350e1b 100644 (file)
@@ -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) {