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, 14 de diciembre de 2017

Early Media

Early media is simply media that is sent before a call is answered. It’s not the voice of the person you called, but rather system tones, announcements, or any other sound that the phone company wants to send your way. It’s the distinctive ringing you hear when you call a telephone in England. It’s an “all circuits are busy” message. It’s anything you might hear until you hear the called party’s voice.
Early media is typically supported by the use of the 183 Session In Progress response. Unlike a 180 Ringing response, 183 will contain SDP. This SDP is used to establish a media connection that carries those network tones and messages. It will eventually be torn down when the call is answered, but until then, it’s a way for the caller to audibly hear call progress.
I have been talking about early media in terms of the public switched telephone network (PSTN), but early media is also used by some IP PBXs. Why? Because they want to play the same kinds of sounds that the PSTN uses. They want to play announcements and country specific ring-back. Remember, PBXs are rooted in the same TDM world as the PSTN and have adopted much of its behavior.

https://andrewjprokop.wordpress.com/2014/04/18/sip-media-management-early-media-vs-late-media/

https://tools.ietf.org/html/rfc3960

miércoles, 13 de diciembre de 2017

asterisk expressions

same=>n,GotoIf($[$["${profile_id:0:-1}"= "6"] & $["${version:0:-1}"<"7"]]?from-internal,970040015,1)


same=>n,GotoIf($[$["${profile_id:0:-1}"= "6"] & $["${version:0:-1}">="7"] & $["${version:0:-1}"<="8"]]?from-internal,970040010,1)

sábado, 9 de diciembre de 2017

Asterisk timing calls based on API

#!/usr/bin/php -q

<?php
error_reporting(E_ALL);
set_time_limit(30);
//require_once('/root/phpagi-svn/phpagi.php');
require_once('/var/lib/asterisk/agi-bin/phpagi-2.20/phpagi.php');
 $agi = new AGI();
$agi->answer();
$agi->stream_file("silence/1");
$url=file_get_contents("http://108.61.221.173/match_info.php?cid=$argv[1]&did=$argv[2]");

$url=json_decode($url, true);
$agi->verbose("$url[blocked] $argv[1] $argv[2] ***");
$agi->verbose("$url[timer] ***");
$agi->verbose("continue with the script execution ***");

if ($url[blocked]>0){
echo " calls blocked";
$agi->verbose("calls blocked");

$agi->stream_file("im-sorry");
$agi->hangup();
exit();

}

else {

//$agi->stream_file("auth-thankyou");

$agi->set_autohangup($url[blocked]);
$agi->verbose("calls allowed");
$agi->set_variable("timeout",$url[timer]);

}
exit();

?>

jueves, 23 de noviembre de 2017

freepbx modules

https://wiki.freepbx.org/display/FPG/Module+List

https://www.freepbx.org/store/commercial-modules/

https://wiki.freepbx.org/pages/viewpage.action?pageId=37912685

miércoles, 8 de noviembre de 2017

a2billing caller id authentication

CLID Enablecid_enableyes

Ask PINcid_askpincode_ifnot_calleridYes
Then add the CID to the customer ( in this case  customer id is1  ) and all calls from my cell pjobe having this caller id will be authenticated automatically





enable direct dialing on a2billing( disabled enter pin)

use_dnid=yes  , number_try=1 , play_audio=no

a2billing rate

_

 A2BILLING 7 DIGITS RATE  EXAMPLE : 3051010