Changeset 5508

Show
Ignore:
Timestamp:
12/16/07 01:07:33 (5 years ago)
Author:
p_lindheimer
Message:

#2557 create hints for Asterisk 1.4 and above

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.4/parking/functions.inc.php

    r5486 r5508  
    3131  global $asterisk_conf; 
    3232  global $parking_conf; 
     33  global $version; 
     34 
    3335  switch($engine) { 
    3436    case "asterisk": 
     
    9496      // 
    9597      $ext->add($contextname, "t", '', new ext_goto($goto)); 
     98 
     99      // Asterisk 1.4 requires hints to be generated for parking 
     100      // 
     101      if (version_compare($version, "1.4", "ge")) { 
     102        $parkhints = 'park-hints'; 
     103        $ext->addInclude('from-internal-additional', $parkhints); // Add the include from from-internal 
     104        for ($slot = $parkpos1; $slot <= $parkpos2; $slot++) { 
     105          $ext->addHint($parkhints, $slot, "park:$slot@$parkingcontext"); 
     106          $ext->add($parkhints, $slot, '', new ext_parkedcall($slot)); 
     107        } 
     108      } 
    96109    } 
    97110    break; 
  • modules/branches/2.4/parking/module.xml

    r5487 r5508  
    22  <rawname>parking</rawname> 
    33  <name>Parking Lot</name> 
    4   <version>2.4.0.1</version> 
     4  <version>2.4.0.2</version> 
    55  <type>setup</type> 
    66  <category>Internal Options &amp; Configuration</category> 
     
    1111  </menuitems> 
    1212  <changelog> 
     13    *2.4.0.2* create hints for Asterisk 1.4 and above 
    1314    *2.4.0.1* add parking_conf class, support PARKINGPATCH config 
    1415    *2.4.0* Destination registry, it translation