Skip to content

Instantly share code, notes, and snippets.

Kevin Triplett KevinTriplett

Block or report user

Report or block KevinTriplett

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c231af30176bd716fdf8
freeswitch@default> sofia status profile internal reg
Call-ID: dc5db680-ee9eee79@
Contact: "COMPANY" <sip:SPA1@>
Agent: Linksys/SPA2102-3.3.6
Status: Registered(UDP)(unknown) EXP(2015-03-17 13:33:49) EXPSECS(154)
Ping-Status: Reachable
View gist:c3e67659780731347c38
remote: git://
revision: b5462446710dc95fb855b62b54ad1b56676dfb98
branch: develop
sequella (1.1.0)
adhearsion (~> 2.1)
sequel (>= 3.40.0)
View gist:073a8ceafd2d1571542f
/u/apps/cpbx/shared/bundle/ruby/1.9.1/gems/punchblock-2.6.0/lib/punchblock/client.rb:13:in `new_call_uri'
/u/apps/cpbx/shared/bundle/ruby/1.9.1/gems/adhearsion-2.6.0/lib/adhearsion/outbound_call.rb:84:in `dial'
/u/apps/cpbx/shared/bundle/ruby/1.9.1/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `public_send'
/u/apps/cpbx/shared/bundle/ruby/1.9.1/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `dispatch'
/u/apps/cpbx/shared/bundle/ruby/1.9.1/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in `dispatch'
/u/apps/cpbx/shared/bundle/ruby/1.9.1/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in `block in handle_message'
/u/apps/cpbx/shared/bundle/ruby/1.9.1/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task'
/u/apps/cpbx/shared/bundle/ruby/1.9.1/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize'
/u/apps/cpbx/shared/bundle/ruby/1.9.1/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create'
(celluloid):0:in `remote procedure call'
KevinTriplett / FREESwitch-Sofia-1
Created Aug 24, 2014
FREESwitch Sofia trace #1
View FREESwitch-Sofia-1
sres_cache.c:272 sres_cache_get() sres_cache_get(0xb64331a0, SRV, "") called
sres_cache.c:318 sres_cache_get() sres_cache_get(0xb64331a0, SRV, "") returned 2 entries
nta.c:10484 outgoing_query_srv() nta: for "" query "" SRV (cached)
nta.c:10580 outgoing_answer_srv() nta: IN SRV 50 10 5060 (udp)
nta.c:10580 outgoing_answer_srv() nta: IN SRV 50 10 5060 (udp)
sres_cache.c:272 sres_cache_get() sres_cache_get(0xb64331a0, A, "") called
sres_cache.c:318 sres_cache_get() sres_cache_get(0xb64331a0, A, "") returned 1 entries
nta.c:10689 outgoing_query_a() nta: for "" query "" A (cached)
nta.c:10742 outgoing_answer_a() nta: IN A
tport.c:3262 tport_tsend() tport_tsend(0xb6c17d98) tpn = udp/
KevinTriplett / gist:7595209
Created Nov 22, 2013
For SO Devise Warden undefined method `sign_out' for main:Object, the Warden file
View gist:7595209
# Each time a record is set we check whether its session has already timed out
# or not, based on last request time. If so, the record is logged out and
# redirected to the sign in page. Also, each time the request comes and the
# record is set, we set the last request time inside its scoped session to
# verify timeout in the following request.
Warden::Manager.after_set_user do |record, warden, options|
scope = options[:scope]
env = warden.request.env
KevinTriplett / gist:7595193
Created Nov 22, 2013
For SO Devise Warden undefined method `sign_out' for main:Object
View gist:7595193
class SuperUser < ActiveRecord::Base
# Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :confirmable, :omniauthable, :registerable, :rememberable
devise :database_authenticatable, :lockable, :timeoutable,
:recoverable, :trackable, :validatable
KevinTriplett / gist:7595185
Created Nov 22, 2013
Devise config for "Devise Warden undefined method `sign_out' for main:Object"
View gist:7595185
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
config.mailer_sender = [sssh, secret]
# Configure the class responsible to send e-mails.
# config.mailer = "Devise::Mailer"
KevinTriplett / gist:7595138
Created Nov 22, 2013
Devise Warden undefined method `sign_out' for main:Object when upgrading Rails 3->4 and Devise 3.1.1->3.2.1
View gist:7595138
NoMethodError (undefined method `sign_out' for main:Object):
devise (3.2.1) lib/devise/hooks/timeoutable.rb:16:in `block in <top (required)>'
warden (1.2.3) lib/warden/hooks.rb:15:in `call'
warden (1.2.3) lib/warden/hooks.rb:15:in `block in _run_callbacks'
warden (1.2.3) lib/warden/hooks.rb:9:in `each'
warden (1.2.3) lib/warden/hooks.rb:9:in `_run_callbacks'
warden (1.2.3) lib/warden/manager.rb:54:in `_run_callbacks'
warden (1.2.3) lib/warden/proxy.rb:180:in `set_user'
warden (1.2.3) lib/warden/proxy.rb:219:in `user'
warden (1.2.3) lib/warden/proxy.rb:144:in `authenticated?'
KevinTriplett / capybara_wait_until.rb
Last active Dec 14, 2015
Adding back the #wait_until to Capybara v2+ gem. Can probably be adapted for cucumber tests.
View capybara_wait_until.rb
# add this file capybara_wait_until.rb to your /test directory
module Capybara
class Session
# Retry executing the block until a truthy result is returned or the timeout time is exceeded
# @param [Integer] timeout The amount of seconds to retry executing the given block
KevinTriplett / chat with egable
Created Feb 14, 2013
Chatting with egable on #freeswitch regarding how to catch scanner
View chat with egable
hi — I need help dealing with sipvicious attacks
I want to modify Kyle King's freeswitch-mod_fail2ban to catch it
You can’t perform that action at this time.