lundi 1 octobre 2018

Can not Connected to Asterisk AMI from Laravel Controller

I have code like this

$asm = new AGI_AsteriskManager;
if(!($asm->connect('192.168.1.14','admin','123'))){
    echo "can not connect to AMI";
     exit;
}else {
    echo 'AMI connected';
}

When I use this code on native PHP, It's show me AMI connected but when I use this code in laravel method,It show me can not connect to AMI
My laravel method:

public function call(){
   $asm = new AGI_AsteriskManager;
    if(!($asm->connect('192.168.1.14','admin','123'))){
        echo "can not connect to AMI";
         exit;
    }else {
        echo 'AMI connected';
    }
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire