Skip to content

Instantly share code, notes, and snippets.

View lgleasain's full-sized avatar

Lance Gleason lgleasain

View GitHub Profile
@lgleasain
lgleasain / gist:1357935
Created November 11, 2011 12:54
failing nokogiri test
require 'rubygems'
require 'test/unit'
require 'nokogiri'
class TestAdd < Test::Unit::TestCase
MyNode = Class.new Nokogiri::XML::Node
def setup
@node = MyNode.new 'foo', Nokogiri::XML::Document.new
assert @node.name == 'foo'
@lgleasain
lgleasain / RubyConf Uruguay
Created November 11, 2011 20:33
RubyConf Uruguay Demo
South Africa: 27 213009785
Voice & Messaging: (404) 857-4641
International Voice: +54 1152525423
International Voice: +54 1152525431
@lgleasain
lgleasain / gist:2038762
Created March 14, 2012 19:12
tropo error
01960 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641] : ====> Raw string: EXEC Dial "tel:14049662820","","" <====
01961 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641] : ====> command {:action=>"exec", :command=>"dial", :args=>["tel:14049662820", "", ""]} <====
01962 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641] : ====> Headers to map: #<TropoAGItate::MagicChannelVariables:0x135f5da1 @variables={:callerid=>{}}> <====
01963 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641] : ====> Destination: ["tel:14049662820"], Options: {:timeout=>0, :headers=>{"x-tropo-callerid"=>"{}"}} <====
01964 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641] : _parseTime(0) returning 0
01965 c3ba 7:10:51 PM SimpleIncomingCall[4044754845/+14044754845->4048574641/+14048574641]->transfer([tel:14049662820
@lgleasain
lgleasain / gist:2038808
Created March 14, 2012 19:19
with the +
03996 5ebb 7:15:55 PM Voice "kate" has been substituted with "kate-englishgb"
03997 5ebb 7:15:55 PM VxTTSPortLoquendo7::SynthesizeSSML - <<?xml version="1.0" encoding="UTF-8" ?><speak>and agent will call you shortly</speak>>
03998 5ebb 7:15:55 PM Successfully initiated TTS using voice Kate-EnglishGb
03999 5ebb 7:15:55 PM Using TTS plugin subsystem for voice kate-englishgb
04000 5ebb 7:15:55 PM LoquendoCallback - TTSEVT_TEXT = <?xml version="1.0" encoding="UTF-8" ?><speak>and agent will call you shortly</speak>
04001 5ebb 7:15:57 PM TTSSTAT: resource= engine=vxttsloq7 voice=Kate-EnglishGb activePorts=1 peakPorts=7 textBytes=85 audioTimeMS=1659 renderingTimeMS=1501 realtimeRatio=1.105
04002 5ebb 7:15:57 PM VxTTSPortLoquendo7::~VxTTSPortLoquendo7
04003 f396 7:15:57 PM Listener com.voxeo.tropo.util.MrcpTtsListener@16bcf9fe received result: com.voxeo.sipmethod.mrcp.client.MrcpTtsResult@6b79f262
04004 f396 7:15:57 PM listener is com.vo
@lgleasain
lgleasain / gist:2117678
Created March 19, 2012 16:14
db blok fix
def db(&block)
result = ActiveRecord::Base.connection_pool.with_connection(&block)
ActiveRecord::Base.connection_pool.release_connection
result
end
@lgleasain
lgleasain / gist:2173383
Created March 23, 2012 18:11
latest failure
01265 5da8 6:10:13 PM SimpleOutgoingCall[+14044754845/null->14049662820!sip.tropo.com/null]<-hangup(), _state=DISCONNECTED
01266 5da8 6:10:13 PM Call from +14044754845 to 14049662820!sip.tropo.com failed. com.voxeo.tropo.ErrorException: Outbound call has timed out. at com.voxeo.tropo.core.SimpleOutgoingCall.ring(SimpleOutgoingCall.java:145) at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.voxeo.tropo.sandbox.SandboxInvocationHandler.invoke(SandboxInvocationHandler.java:42) at $Proxy51.ring(Unknown Source) at com.voxeo.tropo.core.MultiCallCoordinator$MakeCall.run(MultiCallCoordinator.java:146)
01267 5da8 6:10:13 PM Unregistering call +14044754845 -> 14049662820!sip.tropo.com
01268 5da8 6:10:13 PM Stopping listener thread Tropo-Thread-0d89bcc862d5eab8655a13bc722eff80-MrcpHotWordListener@2910c073
01269 5da8 6:
@lgleasain
lgleasain / gist:3305573
Created August 9, 2012 16:15
tropo_agi.yml
# Configuration for connecting to your AGI Server
tropo:
# The default voice to use for Speech Synthesis/TTS
# Refer to: https://www.tropo.com/docs/scripting/say.htm (voice option) for a list of supported voices
voice: kate
# The default recognizer to use for Speech Recogintion/ASR
# Refer to: https://www.tropo.com/docs/scripting/ask.htm (recognizer option) for a list of supported recognizers
recognizer: en-us
# The SIP address to send the session/call to if AGItate may not connect to your AGI server
@lgleasain
lgleasain / gist:3307066
Created August 9, 2012 18:50
tropo callout
Net::HTTP.post_form(URI.parse('http://api.tropo.com/1.0/sessions'), "token" => token, "destination" => "14044754845", "tropo_tag" => 666, "caller_id" => '4048675309', "caller_id_name" => 'beavis')
@lgleasain
lgleasain / gist:3307518
Created August 9, 2012 19:51
manager.conf
[myuser]
secret = mypassword
read = all
write = all
eventfilter = !Event: RTCP*
@lgleasain
lgleasain / gist:3307526
Created August 9, 2012 19:53
extensions.con
[lsrc_context]
exten => _.,1,AGI(agi:async)
;exten => _.,1,AGI(agi://localhost/adhearsion)
[adhearsion-redirect]