Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

jueves, 29 de octubre de 2020

block calls

same=>n,ExecIf($["${CALLERID(NUM)}"= "18092373831"]?Playback(im-sorry))

same=>n,ExecIf($["${CALLERID(NUM)}"= "18092373831"]?hangup())


viernes, 16 de octubre de 2020

get dtmf on AGI

 #!/usr/bin/php -q

<?php

error_reporting(E_ALL);

set_time_limit(30);

require_once('/root/phpagi-svn/phpagi.php');

$agi = new AGI();

$agi->answer();

$result = $agi->get_data('welcome',8000 ,3);


$keys = $result['result'];

$agi->verbose(" Testing $keys",1);

$agi->say_digits($keys);


exit();

?>


sábado, 3 de octubre de 2020

asterisk dial IVR

 

[ivr-dial]
exten=>100,1,Answer()
same=>n,Set(path=/var/www/html/p1/audio/)
same=>n,Read(rec,/var/www/html/p1/audio/rec-option,1)
same=>n,Noop( ...${rec}...)
same => n,GotoIf(${ISNULL(${rec})}=1]?1)
same => n,GotoIf($[${rec}=1]?dest)
same => n,GotoIf($[${rec}=2]?dest)
same=>n,Playback(invalid)
same=>n,Goto(1)
same=>n(dest),Read(dest,/var/www/html/p1/audio/dest,10)
same => n,GotoIf(${ISNULL(${dest})}=1]?dest)
same=>n,Noop( ...${rec}...)
same => n,GotoIf($[${rec}=1]?rec)
same => n,GotoIf($[${rec}=2]?norec)
same=>n,Playback(invalid)
same=>n,Goto(1)
same=>n(rec),Mixmonitor(${path}${STRFTIME(${EPOCH},,%Y-%m-%d_%H-%M-%S)}-${dest}_${type}_${src}.wav)
same=>n,Dial(SIP/callcentric/1${dest})
same=>n,hangup()
same=>n(norec),Noop()
same=>n,Dial(SIP/callcentric/1${dest})
same=>n,hangup()

viernes, 2 de octubre de 2020

postgre db check

 [inventory]

exten=>_x.,1,Answer()

same=>n,Read(q,/var/www/html/inventory/audio/inst)

same => n,GotoIf(${ISNULL(${q})} =1]?1)


same=>n,Saydigits(${q})

same=>n,Agi(/var/www/html/inventory/query.php,${q})

same=>n,Playback(${stock})

same=>n,read(c,/var/www/html/inventory/audio/goback,1)

same => n,GotoIf($[${c}=1]?1)


same=>n,Playback(goodbye)

same=>n,hangup()


Configuring chan_sip for Presence Subscriptions

 https://wiki.asterisk.org/wiki/display/AST/Configuring+chan_sip+for+Presence+Subscriptions