This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@upsilon ~]# cat /etc/yum.repos.d/remi.repo | |
[remi] | |
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch | |
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/ | |
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror | |
enabled=0 | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi | |
failovermethod=priority |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
twiml.php changes | |
33a34,35 | |
> $ring_timeout = AppletInstance::getValue('ring_timeout', 20); | |
> | |
126c128 | |
< $dial = $response->addDial(array('action' => current_url(), 'timeout' => 5)); | |
--- | |
> $dial = $response->addDial(array('action' => current_url(), 'timeout' => $ring_timeout)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Response> | |
<Dial action="recording_hook.php"> | |
<Conference startConferenceOnEnter="true" endConferenceOnExit="true" record="true">DrPepper</Conference> | |
</Dial> | |
</Response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Replace this code: | |
/* Create an Array of people to be called */ | |
$people = array( | |
0 => "415-555-1234", | |
1 => "415-555-2345", | |
2 => "415-555-3456" | |
); | |
With this: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_reporting(E_ALL ^ E_NOTICE); | |
ini_set('log_errors', true); | |
if (version_compare(PHP_VERSION, '5.2.4') >= 0) { | |
// running 5.2.4 or newer | |
ini_set('display_errors', 'stderr'); | |
} else { | |
ini_set('display_errors', false); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sn = $argv[1]; | |
$asid = $argv[2]; | |
$sid = "ACxxxxx"; | |
$token = "xxxxx"; | |
$url = "https://api.twilio.com/2010-04-01/Accounts/${asid}/IncomingPhoneNumbers/${sn}"; | |
printf("%s\n",$url); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sn = $argv[1]; | |
$asid = $argv[2]; | |
$vurl = $argv[3]; | |
$sid = "ACxxxxxxxxxxxxxxxxxxxx"; | |
$token = "xxxxxxxxxxxxxxx"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Response> | |
<Say>I am a man. This is how I talk. 1 2 3 4. Skippy Dippy Waffle Sauce.</Say> | |
<Pause length="1" /> | |
<Say voice="woman">I am a woman. I have a much nicer voice than that man.</Say> | |
<Pause length="1" /> | |
<Say language="es">Por favor, manténgase alejado de las puertas</Say> | |
</Response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-type: text/xml"); | |
if ($_POST['Digits'] == "12345") { | |
$response = ' | |
<Say>That is Correct</Say> | |
<Gather action="send.php" numDigits="10"> | |
<Say>Type the number of the person to message</Say> | |
</Gather> | |
'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Where I define my credentials in AccountSid and AuthToken | |
include("../config.inc"); | |
// Twilio Helper Library | |
include("twilio.php"); | |
$what = $_POST['Body']; |
OlderNewer