Changeset 7880

Show
Ignore:
Timestamp:
06/29/09 22:00:46 (3 years ago)
Author:
p_lindheimer
Message:

Merged revisions 7878 via svnmerge from
http://svn.freepbx.org/modules/branches/2.5

........

r7878 | p_lindheimer | 2009-06-29 19:36:32 -0700 (Mon, 29 Jun 2009) | 1 line


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.6

    • Property svnmerge-integrated changed from
      /modules/branches/2.5:1-7809,7812,7854,7858-7865
      to /modules/branches/2.5:1-7809,7812,7854,7858-7865,7878
  • modules/branches/2.6/core/functions.inc.php

    r7871 r7880  
    46134613} 
    46144614 
     4615/* Delete all occurences of the specified trunk from all routes that may use it 
     4616 */ 
     4617function core_routing_trunk_del($trunknum) { 
     4618  global $db; 
     4619 
     4620  $sql = "DELETE FROM `extensions` WHERE `application` = 'Macro' AND `context` LIKE 'outrt-%' AND `args` LIKE 'dialout-%,$trunknum,%'"; 
     4621  $result = $db->query($sql); 
     4622} 
     4623 
    46154624function core_routing_rename($oldname, $newname) { 
    46164625  global $db; 
  • modules/branches/2.6/core/page.trunks.php

    r7682 r7880  
    100100   
    101101    core_trunks_del($trunknum); 
     102    core_routing_trunk_del($trunknum); 
    102103     
    103104    /* //DIALRULES