alluda urgente

axeellcevallos

Joined
Nov 14, 2008
Messages
78
Likes
0
Points
0
#1
hola amigos segui los pasos para poner musica en espera por extencion del libro de alfio muños y despues de ejecutar los comandos

/var/lib/asterisk/bin/retrieve_conf
asterisk -rx "reload"

aparce los iguiente

Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Checking for /etc/amportal.conf ..OK
Bootstrapping /etc/amportal.conf ..OK
Parsing /etc/amportal.conf ..OK
Parsing /etc/asterisk/asterisk.conf ..OK
Connecting to database..OK
Connecting to Asterisk manager interface..OK
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/admin/modules/findmefollow/functions.inc.php on line 31
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/admin/modules/donotdisturb/functions.inc.php on line 47
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = elastix456



si se fijan esta alerta de php dice que hay un argumento invalido

PHP Warning: Invalid argument supplied for foreach() in /var/www/html/admin/modules/findmefollow/functions.inc.php on line 31
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/admin/modules/donotdisturb/functions.inc.php on line 47




este es el archivo findmefollow hata la linea 35



<?php /* $Id: functions.inc.php 175 2006-10-03 19:12:39Z plindheimer $ */

/* Generates dialplan for findmefollow
We call this with retrieve_conf
*/
function findmefollow_get_config($engine) {
global $ext; // is this the best way to pass this?
global $amp_conf;
switch($engine) {
case "asterisk":
if ($amp_conf['USEDEVSTATE']) {
$ext->addGlobal('FMDEVSTATE','TRUE');
}

$fcc = new featurecode('findmefollow', 'fmf_toggle');
$fmf_code = $fcc->getCodeActive();
unset($fcc);

if ($fmf_code != '') {
findmefollow_fmf_toggle($fmf_code);
}

$ext->addInclude('from-internal-additional','ext-findmefollow');
$ext->addInclude('from-internal-additional','fmgrps');
$contextname = 'ext-findmefollow';

// Before creating all the contexts, let's make a list of hints if needed
//
if ($amp_conf['USEDEVSTATE'] && $fmf_code != '') {
$device_list = core_devices_list("all", false, true);
foreach ($device_list as $device) {
$ext->add($contextname, $fmf_code.$device['id'], '', new ext_goto("1",$fmf_code,"app-fmf-toggle"));
$ext->addHint($contextname, $fmf_code.$device['id'], "Custom:FOLLOWME".$device['id']);
}
}



lo que esta en la linea 31 es:

foreach ($device_list as $device) {




y este es el archivo /var/www/html/admin/modules/donotdisturb/functions.inc.php hasta la linea 51

<?php

function donotdisturb_get_config($engine) {
$modulename = 'donotdisturb';

// This generates the dialplan
global $ext;
global $amp_conf;

switch($engine) {
case "asterisk":

// If Using DND then set this so AGI scripts can determine
//
if ($amp_conf['USEDEVSTATE']) {
$ext->addGlobal('DNDDEVSTATE','TRUE');
}

if (is_array($featurelist = featurecodes_getModuleFeatures($modulename))) {
foreach($featurelist as $item) {
$featurename = $item['featurename'];
$fname = $modulename.'_'.$featurename;
if (function_exists($fname)) {
$fcc = new featurecode($modulename, $featurename);
$fc = $fcc->getCodeActive();
unset($fcc);

if ($fc != '')
$fname($fc);
} else {
$ext->add('from-internal-additional', 'debug', '', new ext_noop($modulename.": No func $fname"));
var_dump($item);
}
}
}

$fcc = new featurecode($modulename, 'dnd_toggle');
$dnd_code = $fcc->getCodeActive();
unset($fcc);

// Create hints context for DND codes so a device can subscribe to the DND state
//
if ($amp_conf['USEDEVSTATE'] && $dnd_code != '') {
$ext->addInclude('from-internal-additional','ext-dnd-hints');
$contextname = 'ext-dnd-hints';
$device_list = core_devices_list("all", false, true);
foreach ($device_list as $device) {
$ext->add($contextname, $dnd_code.$device['id'], '', new ext_goto("1",$dnd_code,"app-dnd-toggle"));
$ext->addHint($contextname, $dnd_code.$device['id'], "Custom:DEVDND".$device['id']);
}
}


lo que esta en la linea 47 es

foreach ($device_list as $device) {


alguien puede ayudarme no conosco de php y tengo el problema que cuando llamo a algunas extenciones me aparecen como no disponibles aunque esten en linea

de antemano gracias espero puedan ayudarme pues esta es una planta en produccion

muchas gracias
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top