Changeset 12284
- Timestamp:
- 06/29/11 05:46:32 (2 years ago)
- Files:
-
- modules/branches/2.10/ivr/install.php (modified) (3 diffs)
- modules/branches/2.10/ivr/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.10/ivr/install.php
r12281 r12284 340 340 if ($i['invalid_loops'] < 0) { 341 341 $ivr[$my]['invalid_loops'] = 'disabled'; 342 $ivr[$my]['invalid_retry_recording'] = ''; 343 $ivr[$my]['invalid_recording'] = ''; 344 $ivr[$my]['invalid_destination'] = ''; 342 345 343 346 //if there are zero disabled loops, we dont need a retry recording 344 347 } elseif ($i['invalid_loops'] === 0) { 345 348 $ivr[$my]['invalid_retry_recording'] = ''; 349 $ivr[$my]['invalid_recording'] = 'default'; 346 350 347 351 //otherwise, set invalid retry to the save as invalid_recording 348 352 } elseif ($i['invalid_loops'] > 0) { 349 353 $ivr[$my]['invalid_retry_recording'] = $i['invalid_recording']; 354 $ivr[$my]['invalid_recording'] = 'default'; 350 355 } 351 356 … … 361 366 //if we have an invalid destination in entires, move it here 362 367 if (isset($e[$i['id']]['t']) && $e[$i['id']]['t']) { 363 $ivr[$my]['timeout_destination'] = $e[$i['id']][' i']['dest'];368 $ivr[$my]['timeout_destination'] = $e[$i['id']]['t']['dest']; 364 369 365 370 //if there are no timeout loops, set to disabled 366 371 if ($i['timeout_loops'] < 0) { 367 372 $ivr[$my]['timeout_loops'] = 'disabled'; 373 $ivr[$my]['timeout_retry_recording'] = ''; 374 $ivr[$my]['timeout_recording'] = ''; 375 $ivr[$my]['timeout_destination'] = ''; 368 376 369 377 //if there are zero disabled loops, we dont need a retry recording 370 378 } elseif ($i['timeout_loops'] === 0) { 371 379 $ivr[$my]['timeout_retry_recording'] = ''; 372 380 $ivr[$my]['timeout_recording'] = 'default'; 381 373 382 //otherwise, set timeout retry to the save as invalid_recording 374 383 } elseif ($i['timeout_loops'] > 0) { 375 384 $ivr[$my]['timeout_retry_recording'] = $i['timeout_recording']; 385 $ivr[$my]['timeout_recording'] = 'default'; 376 386 } 377 387 … … 398 408 } 399 409 410 //remove all legacy t or i dests 411 sql('DELETE FROM ivr_entries WHERE selection IN("t", "i")'); 412 400 413 out('Migration 2.10 done!'); 401 414 } modules/branches/2.10/ivr/uninstall.php
r12274 r12284 1 1 <?php 2 2 sql('DROP TABLE IF EXISTS ivr_details'); 3 sql('DROP TABLE IF EXISTS ivr_ent ires');3 sql('DROP TABLE IF EXISTS ivr_entries'); 4 4 5 5 if (function_exists('queues_ivr_delete_event')) {
