Skip to content

Instantly share code, notes, and snippets.

View cachrisman's full-sized avatar

Charlie Chrisman cachrisman

View GitHub Profile
<Response>
<Speak language="es-ES" voice="WOMAN">Ust&eacute;d ser&aacute; a&ntilde;adido a una llamada de conferencia creada por EMNS pro</Speak>
</Response>
<?xml version="1.0" encoding="utf-8" ?>
<Response>
<Play>
https://media-24x8-com.s3.amazonaws.com/system/vmgreet.mp3?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=0NQC1NGH8V112NSN0B02%2F20160523%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20160523T220617Z&amp;X-Amz-Expires=432000&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=65d0597a01b29f75dcfd97790ed8a375a5089a63e9df6e70eb02e5a4f295f530
</Play>
</Response>
@cachrisman
cachrisman / pretty-exception.rb
Created May 12, 2016 21:21 — forked from mikepfirrmann/pretty-exception.rb
Print a prettier stack trace for Ruby exceptions
def colorize(text, color_code)
"\e[#{color_code}m#{text}\e[0m"
end
begin
# Here be dangerous things.
rescue => e
print "\r" << (' ' * 50) << "\n"
stacktrace = e.backtrace.map do |call|
if parts = call.match(/^(?<file>.+):(?<line>\d+):in `(?<code>.*)'$/)
Placing Outbound Call
Thu May 05 2016 15:38:02 GMT-0700 (PDT)
-----------------
{ answer_method: 'GET',
answer_url: 'http://example.com/forward/?param1=SOMETHING&param2=SOMETHINGELSE',
from: '16288881600',
hangup_url: 'http://example.com/hangup-a/?param1=SOMETHING&param2=SOMETHINGELSE',
to: '14159938809' }
API Response:
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
On 8th:
=======
Phone: 19375949377
1st call attempt: 2016-04-08 09:35:36 (PDT) doesn't reach our server (phone.plivo.com)
Re-try after 14 seconds
2nd call: 2016-04-08 09:36:50 (PDT) reaches our server after 1 second
@ Apr 8 16:36:51 (Time mark in UTC) - npricochet160408133256@phone.plivo.com from IP: 72.69.27.74:58035 TO 19375949377@phone.plivo.com
<?xml version="1.0" encoding="utf-8" ?>
<Response>
<Speak language='en-US' voice='MAN'>
Testing ampersand: Charlie &amp;#38; Kate . That was an ampersand symbol.
</Speak>
<Wait length="2" />
<Speak language='en-US' voice='MAN'>
Testing ampersand: Pleevo &amp;#38; Twilio . That was also an ampersand symbol.
</Speak>
</Response>
<Response><Speak>SpeedToContact Test</Speak><Wait length="5" /><Speak>Done</Speak></Response>
<Response>
<Dial>
<Sip>
sip:16752153949188067@app.plivo.com
</Sip>
</Dial>
</Response>
<?xml version="1.0" encoding="UTF-8" ?>
<Response>
<Play>http://www.whatsapp.com/voices/62745/code.wav</Play>
<Play>http://www.whatsapp.com/voices/short.wav</Play>
<Play>http://www.whatsapp.com/voices/medium.wav</Play>
<Play>http://www.whatsapp.com/voices/62745/9.wav</Play>
<Play>http://www.whatsapp.com/voices/medium.wav</Play>
<Play>http://www.whatsapp.com/voices/62745/1.wav</Play>
<Play>http://www.whatsapp.com/voices/medium.wav</Play>
<Play>http://www.whatsapp.com/voices/62745/9.wav</Play>