Changeset 7878

Show
Ignore:
Timestamp:
06/29/09 19:36:32 (9 months ago)
Author:
p_lindheimer
Message:

fixes #3741 added new function core_routing_trunk_del(trunknum) which deletes the specified trunk from all routes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/core/functions.inc.php

    r7794 r7878  
    44704470} 
    44714471 
     4472/* Delete all occurences of the specified trunk from all routes that may use it 
     4473 */ 
     4474function core_routing_trunk_del($trunknum) { 
     4475        global $db; 
     4476 
     4477  $sql = "DELETE FROM `extensions` WHERE `application` = 'Macro' AND `context` LIKE 'outrt-%' AND `args` LIKE 'dialout-%,$trunknum,%'"; 
     4478        $result = $db->query($sql); 
     4479} 
     4480 
    44724481function core_routing_rename($oldname, $newname) { 
    44734482        global $db; 
  • modules/branches/2.5/core/page.trunks.php

    r7409 r7878  
    9595         
    9696                core_trunks_del($trunknum); 
     97    core_routing_trunk_del($trunknum); 
    9798                 
    9899                /* //DIALRULES