]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 15 Apr 2008 18:43:12 +0000 (18:43 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 15 Apr 2008 18:43:12 +0000 (18:43 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8116 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 12cebbbf9b977130a2b29713ba4d244c3a29bb5e..6d0a3c71d3a32c994869f94ee75b09632e85b450 100644 (file)
@@ -569,6 +569,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                        ok = 1;
                                } else if (!strcasecmp((char *)hi->name, "originate_retries")) {
                                        ok = 1;
+                               } else if (!strcasecmp((char *)hi->name, "originate_timeout")) {
+                                       ok = 1;
                                } else if (!strcasecmp((char *)hi->name, "originate_retry_sleep_ms")) {
                                        ok = 1;
                                } else if (!strcasecmp((char *)hi->name, "origination_caller_id_name")) {
@@ -652,6 +654,13 @@ 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, "originate_timeout")) && switch_true(var_val)) {
+               int tmp = atoi(var_val);
+               if (tmp > 0) {
+                       timelimit_sec = (uint32_t) tmp;
+               }
+       }
+
        if ((var_val = switch_event_get_header(var_event, "originate_retries")) && switch_true(var_val)) {
                int32_t tmp;
                tmp = atoi(var_val);