Changeset 9225
- Timestamp:
- 03/15/10 15:27:30 (3 years ago)
- Files:
-
- modules/branches/2.8/sipstation/install.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.8/sipstation/install.php
r8659 r9225 22 22 23 23 /* Delete all occurences of the specified trunk from all routes that may use it 24 * this only gets called if the extensions table is still present and this is needed 24 25 */ 25 26 if (!function_exists('core_routing_trunk_del')) { … … 32 33 } 33 34 34 /* A long standing bug resulted in routes with trunk nu bmers that had been deleted. Because trunk numbers are recyvled (something that35 /* A long standing bug resulted in routes with trunk numbers that had been deleted. Because trunk numbers are recycled (something that 35 36 should be removed in the future), this can result in a new trunk being created and then silently inserted as part of a route that is 36 37 not intended. This will find all phantom trunks and remove them from routes. 38 39 The following code should no longer be required with the new outbound routes stuff. However, it's remotely possible that this module 40 could get loaded on an upgrade scenario where core hasn't done a migration yet. Setting this module to depend on core makes for a 41 more painful upgrade process so we will simply leave this code in place since it checks for the extensions table and if not found 42 it does nothing. If found, it just manipulates that table which could still help in a subsequent migration to the new outbound routes. 37 43 */ 38 44 … … 44 50 if(DB::IsError($results)) { 45 51 $results = array(); 46 out(_(" an error occurred querying the extensions table for routes, skipping check"));52 out(_("ok")); 47 53 } else { 48 54 $trunks = array(); … … 83 89 } 84 90 } 85 86 91 ?>
