]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-430
authorMathieu Rene <mrene@avgs.ca>
Mon, 7 Sep 2009 04:35:35 +0000 (04:35 +0000)
committerMathieu Rene <mrene@avgs.ca>
Mon, 7 Sep 2009 04:35:35 +0000 (04:35 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14778 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 3f311d5a2a06d1b35c25303abb319b35ad6be34d..48d83dcefba827726fb458d13d07cd5e0965015e 100644 (file)
@@ -1606,7 +1606,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                                int val = atoi(vvar);
                                                if (val > 0) {
                                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s Setting leg timeout to %d\n", 
-                                                                                         switch_channel_get_name(originate_status[0].peer_channel), val);
+                                                                                         switch_channel_get_name(originate_status[i].peer_channel), val);
                                                        originate_status[i].per_channel_timelimit_sec = (uint32_t) val;
                                                }
                                        }
@@ -1615,7 +1615,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                                int val = atoi(vvar);
                                                if (val > 0) {
                                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s Setting leg progress timeout to %d\n", 
-                                                                                         switch_channel_get_name(originate_status[0].peer_channel), val);
+                                                                                         switch_channel_get_name(originate_status[i].peer_channel), val);
                                                        originate_status[i].per_channel_progress_timelimit_sec = (uint32_t) val;
                                                }
                                        }
@@ -1624,7 +1624,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                                int val = atoi(vvar);
                                                if (val > 0) {
                                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s Setting leg delay start to %d\n", 
-                                                                                         switch_channel_get_name(originate_status[0].peer_channel), val);
+                                                                                         switch_channel_get_name(originate_status[i].peer_channel), val);
                                                        originate_status[i].per_channel_delay_start = (uint32_t) val;
                                                }
                                        }