FS-5843 Give this a try

This commit is contained in:
Marc Olivier Chouinard 2013-10-04 15:47:19 -04:00
parent 9104aab9de
commit a34095a4b7
1 changed files with 4 additions and 1 deletions

View File

@ -1453,9 +1453,12 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa
switch_channel_process_export(member_channel, NULL, ovars, "cc_export_vars");
t_agent_called = local_epoch_time_now(NULL);
dialstr = switch_channel_expand_variables(member_channel, h->originate_string);
status = switch_ivr_originate(NULL, &agent_session, &cause, dialstr, 60, NULL, cid_name ? cid_name : h->member_cid_name, h->member_cid_number, NULL, ovars, SOF_NONE, NULL);
switch_safe_free(dialstr);
if (dialstr != h->originate_string) {
switch_safe_free(dialstr);
}
switch_safe_free(cid_name);
switch_event_destroy(&ovars);