You need to add this code to the agc/vicidial.php file:
1- Add this variable around line 4708
var source = null
<?php | |
namespace App\Extension\Paypal\Traits; | |
use Carbon\Carbon; | |
trait Filters | |
{ | |
/** | |
* @var array |
<?php | |
enum Grade: string | |
{ | |
case PASS = 'pass'; | |
case FAIL = 'fail'; | |
case A = 'A'; | |
case F = 'F'; | |
case INVALID = 'Invalid grade!\n'; |
class Queue { | |
constructor() { | |
this.list = [] | |
this.head = 0 | |
} | |
push(e) { this.list.push(e) } | |
pop() { return this.list[this.head++] } | |
empty() { return this.list.length == this.head } | |
} |
/** | |
* Once this scipt is executed it will connect to the local port you have assigned to | |
* Asterisk (default: 5038) and send an authentication request. If successfull, it will | |
* send a second request to originate your call. | |
* | |
* The internal SIP line $internalPhoneline will be dialed, and when picked up the | |
* $target phone will be dialed using your outbound calls context ($context). | |
* | |
* Of course, you can modify the commands sent to the asterisk manager interface to suit your needs. | |
* you can find more about the available options at: |
/****************************************************************************** | |
Online C++ Compiler. | |
Code, Compile, Run and Debug C++ program online. | |
Write your code in this editor and press "Run" button to compile and execute it. | |
*******************************************************************************/ | |
// Example program | |
#include <iostream> |
#include <stdio.h> | |
#include <conio.c> | |
/* | |
Elabore un algoritmo y un programa que permite la entrada de la cantidad de articulo | |
comprado y la descrpcion de dicho articulo, el sudtotal, itbis y monto a pagar tomando | |
encuenta que el precio sera 10.20 y el itbis sera 16%. | |
El Algoritmo: | |
P1: Inicio |
function formatCedulaNumber(str) { | |
if (str.length < 3 && str.length < 11) { | |
return str; | |
} | |
if (str.length === 3) { | |
return str + '-'; | |
} | |
if (str.length === 11) { |
<?php | |
function searchMultiDimensionalArray($array, $key, $value) { | |
if(!is_array($array)) { | |
return preg_match("/$value/i", $array); | |
} | |
return array_filter($array, function($item) use ($key, $value){ | |
return (isset($item[$key]) && !is_array($item[$key]) && preg_match("/$value/i", $item[$key])) |
<?php | |
$data = json_decode('[ | |
{ | |
"id": 1, | |
"value1": 5, | |
"value2": 10 | |
}, | |
{ | |
"id": 2, |