Skip to content

Instantly share code, notes, and snippets.

View JustinAiken's full-sized avatar
💎
Rubyin'

Justin Aiken JustinAiken

💎
Rubyin'
View GitHub Profile
@JustinAiken
JustinAiken / api_class.php
Created August 7, 2012 21:34 — forked from libryder/api_class.php
LogMyCalls API PHP Sample
<?php
/* LogMyCalls public API
*
* PHP Sample
* Author: David Ryder
* dryder@contactpoint.com
* http://github.com/libryder
*
* The LmcApi is a JSON wrapper using CURL to send and receive data
def problem001
total = 0
for i in 1..9
if i%3 == 0
puts "#{i} is divisible by 3"
total = total + i
puts total
end
if i%5 == 0
puts "#{i} is divisible by 5"
@JustinAiken
JustinAiken / keybase.md
Created August 18, 2014 21:12
Keybase Proof

Keybase proof

I hereby claim:

  • I am justinaiken on github.
  • I am justinaiken (https://keybase.io/justinaiken) on keybase.
  • I have a public key whose fingerprint is D5DA 713A C9A7 5CB4 46AB B4AF 08D2 F343 6C6C BB16

To claim this, I am signing this object:

@JustinAiken
JustinAiken / lumenvox.pp
Created April 9, 2014 23:25
puppet error
define lumenvox::language_pack (
$language = undef,
$version = latest,
) {
package { "LumenVox-${language}SREModel":
ensure => $version,
provider => 'yum',
}
}
@JustinAiken
JustinAiken / adhearsion.log
Created February 18, 2014 19:12
Bits o' a log
[2014-02-16 12:04:21] DEBUG Roster: Selecting 363@10.1.2.87/browser for inside_sales_prospect
[2014-02-16 12:04:21] INFO Roster: Updating 363@10.1.2.87/browser to composing
[2014-02-16 12:04:21] DEBUG Adhearsion::OutboundCall: 6d0cd0bd-83bb-4a84-9eab-82f43aef9e7d@: Finished executing controller #<OutboundConnectingController call=6d0cd0bd-83bb-4a84-9eab-82f43aef9e7d, metadata={}>
[2014-02-16 12:04:21] INFO Adhearsion::OutboundCall: 6d0cd0bd-83bb-4a84-9eab-82f43aef9e7d@: Connecting customer inside_sales 25376541 to extension 363
[2014-02-16 12:04:21] INFO OutboundCustomersController: Call was hung up while executing a controller
[2014-02-16 12:04:21] DEBUG OutboundCustomersController: Finished executing controller #<OutboundCustomersController call=, metadata={}>
[2014-02-16 12:04:21] INFO Adhearsion::OutboundCall: 6d0cd0bd-83bb-4a84-9eab-82f43aef9e7d@: connecting inside_sales 25376541 to extension 363
[2014-02-16 12:04:21] DEBUG Adhearsion::OutboundCall: 232d2f70-566d-47ae-82d9-eb2a4d532e0a@: Executing co
diff --git a/app/classes/talkbox/phone_config_creator.rb b/app/classes/talkbox/phone_config_creator.rb
index 104f263..0a22236 100644
--- a/app/classes/talkbox/phone_config_creator.rb
+++ b/app/classes/talkbox/phone_config_creator.rb
@@ -29,18 +29,22 @@ class PhoneConfigCreator
end
def generate
- if user.office_ext.present? && APP_CONFIG['provision']['pbx_host']
- config_file << pbx_account