[Freeswitch-svn] [commit] r8116 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Tue Apr 15 14:43:13 EDT 2008


Author: anthm
Date: Tue Apr 15 14:43:12 2008
New Revision: 8116

Modified:
   freeswitch/trunk/src/switch_ivr_originate.c

Log:
update

Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c	(original)
+++ freeswitch/trunk/src/switch_ivr_originate.c	Tue Apr 15 14:43:12 2008
@@ -569,6 +569,8 @@
 					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 @@
 		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);



More information about the Freeswitch-svn mailing list