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
Index: konference/conference.c | |
=================================================================== | |
--- konference/conference.c (revision 52) | |
+++ konference/conference.c (working copy) | |
@@ -1213,7 +1213,7 @@ | |
#endif | |
ast_rwlock_unlock( &conf->lock ); | |
- DEBUG("removed member from conference, name => %s, remaining => %d\n", member->conf_name, membercount) ; | |
+ DEBUG("removed member from conference, name => %s, remaining => %d\n", conf->name, membercount) ; |
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
class Foo | |
attr_accessor :x | |
end | |
Foo.send(:attr_accessor, :y) | |
myfoo = Foo.new | |
# Using the attr_accessor defined initially works fine | |
myfoo.x = 1 | |
# Using the attr_accessor defined at runtime gies NoMethodError |
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
bash < <( curl https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) | |
source /etc/profile.d/rvm.sh | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel | |
rvm install 1.9.3 | |
rvm use --default 1.9.3 | |
gem install --no-rdoc --no-ri adhearsion |
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
methods_for :rpc do | |
def transfer(channel, exten) | |
Adhearsion::VoIP::Asterisk::manager_interface.send_action(...) | |
end | |
end |
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
Failures: | |
1) play command multiple strings can be passed to play, causing multiple playback commands to be issued | |
Failure/Error: output_stream_matches(/playback "#{audio_file}"/) | |
RegexpError: | |
empty range in char class: /playback "["cents-per-minute", "o-hai"]"/ | |
# ./spec/voip/asterisk/commands_spec.rb:137:in `block in pbx_was_asked_to_play' | |
# ./spec/voip/asterisk/commands_spec.rb:136:in `each' | |
# ./spec/voip/asterisk/commands_spec.rb:136:in `pbx_was_asked_to_play' | |
# ./spec/voip/asterisk/commands_spec.rb:315:in `block (2 levels) in <top (required)>' |
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
trigger_context { | |
ami = Adhearsion::VoIP::Asterisk.manager_interface | |
ami.originate :Channel => 'Local/s@local-meetme', :Application => 'AGI', :Data => 'agi://localhost/play_announce' | |
} | |
play_announce { | |
play 'my-super-cool-announcement', 'thanks-and-goodbye' | |
} |
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
require 'rubygems' | |
require 'pry' | |
#require 'rbtrace' | |
puts $$ | |
threads = [] | |
threads << Thread.new do | |
loop do | |
puts "Thread 1" | |
sleep 1 |
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
menu 'my_menu_prompt', :timeout => 5.seconds, :tries => 2 do |link| | |
options.each do |digit, context| | |
link.send context.to_sym, digit | |
end | |
end |
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
robocall { | |
answer | |
# Join conference room based on dialed extension, in this case 8621 | |
dial("WOOMERA/conf:#{variables[:exten]}") | |
hangup | |
} | |
noisemaker { | |
answer | |
play 'tt-monkeys' |
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
[adhearsion] | |
exten => _.,1,AGI(agi://localhost/adhearsion) |
OlderNewer