Changeset 5320

Show
Ignore:
Timestamp:
11/28/07 11:57:56 (1 year ago)
Author:
p_lindheimer
Message:

have hints dynamically generated with generate_hints.php when DYNAMICHINTS is set true

Files:

Legend:

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

    r5304 r5320  
    446446                        /* user extensions */ 
    447447                        $ext->addInclude('from-internal-additional','ext-local'); 
     448 
     449                        // If running in Dynamic mode, this will insert the hints through an Asterisk #exec call. 
     450                        // which require "execincludes=yes" to be set in the [options] section of asterisk.conf 
     451                        // 
     452                        if ($amp_conf['DYNAMICHINTS']) { 
     453                                $ext->addExec('ext-local',$amp_conf['AMPBIN'].'/generate_hints.php'); 
     454                        } 
    448455                        $userlist = core_users_list(); 
    449456                        if (is_array($userlist)) { 
     
    469476                                        } 
    470477                                                 
    471                                         $hint = core_hint_get($exten['extension']); 
    472                                         if (!empty($hint)) { 
    473                                                 $ext->addHint('ext-local', $exten['extension'], $hint); 
     478                                        // Create the hints if running in normal mode 
     479                                        // 
     480                                        if (!$amp_conf['DYNAMICHINTS']) { 
     481                                                $hint = core_hint_get($exten['extension']); 
     482                                                if (!empty($hint)) { 
     483                                                        $ext->addHint('ext-local', $exten['extension'], $hint); 
     484                                                } 
    474485                                        } 
    475486                                        if ($exten['sipname']) {