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
#!/usr/bin/env python3.5 | |
from scipy.special import binom | |
import sys, math | |
def to_be_dialed(p, k): | |
p = float(p) | |
k = int(k) | |
n = k |
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 TestOutCall < Adhearsion::CallController | |
def run | |
reject | |
Adhearsion::OutboundCall.originate "SIP/301", from: "30 <30>", timeout: 100, controller: Iamback | |
end | |
end | |
root@SERVER5:~/rbox# ahn - | |
Starting Adhearsion server at /root/rbox | |
[2012-10-24 08:30:49] TRACE Adhearsion::Initializer: OS: linux-gnu - RUBY: ruby 1.9.3 |
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
Starting Adhearsion server at /root/rbox | |
[2012-10-21 14:13:45] TRACE Adhearsion::Initializer: OS: linux-gnu - RUBY: ruby 1.9.3 | |
[2012-10-21 14:13:45] TRACE Adhearsion::Initializer: Environment: {"rvm_bin_path"=>"/usr/local/rvm/bin", "GEM_HOME"=>"/usr/local/rvm/gems/ruby-1.9.3-p286", "SHELL"=>"/bin/bash", "TERM"=>"xterm", "XDG_SESSION_COOKIE"=>"16e8c0ad735d1c8d9cb733834d57e3f8-1350809586.9319-1670370443", "IRBRC"=>"/usr/local/rvm/rubies/ruby-1.9.3-p286/.irbrc", "OLDPWD"=>"/root", "MY_RUBY_HOME"=>"/usr/local/rvm/rubies/ruby-1.9.3-p286", "USER"=>"root", "LS_COLORS"=>"rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.j |
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
Starting Adhearsion server at /root/rbox | |
[2012-10-12 08:02:16] TRACE Adhearsion::Initializer: OS: linux-gnu - RUBY: ruby 1.9.3 | |
[2012-10-12 08:02:16] TRACE Adhearsion::Initializer: Environment: {"rvm_bin_path"=>"/usr/local/rvm/bin", "GEM_HOME"=>"/usr/local/rvm/gems/ruby-1.9.3-p194", "TERM"=>"xterm", "SHELL"=>"/bin/bash", "IRBRC"=>"/usr/local/rvm/rubies/ruby-1.9.3-p194/.irbrc", "SSH_CLIENT"=>"192.168.2.44 43339 22", "OLDPWD"=>"/root", "MY_RUBY_HOME"=>"/usr/local/rvm/rubies/ruby-1.9.3-p194", "SSH_TTY"=>"/dev/pts/0", "USER"=>"root", "__array_start"=>"0", "rvm_path"=>"/usr/local/rvm", "escape_flag"=>"1", "rvm_prefix"=>"/usr/local", "MAIL"=>"/var/mail/root", "PATH"=>"/usr/local/rvm/gems/ruby-1.9.3-p194/bin:/usr/local/rvm/gems/ruby-1.9.3-p194@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p194/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "PWD"=>"/root/rbox", "LANG"=>"ru_UA.UTF-8", "_second"=>"1", "rvm_version"=>"1.16.6 (stable)", "SHLVL"=>"1", "HOME"=>"/root", "LANGU |