Sha256: fc37c0e4c73849ed9c391bd53d2a6b1aa9fee9cb0752279bc1001b10162cedef

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

heading "Adhearsion Micromenus Home"

# A simple example of a helper used in a Micromenu.
item oscar_wilde_quote + ' - Oscar Wilde'

# Use dial plan logic here in the Micromenu!
call "Check your voicemail!" do
  check_voicemail
end

# If you have Adhearsion's Asterisk Manager Interface configured
# properly, you can use the guess_sip_user feature.
item "My User!" do
  guess = guess_sip_user
  item guess ? guess : "Sorry, you're behind a NAT or on a PC."
end

item "Employee Collaboration" do
  item "View SIP users" do
    sip_users = PBX.sip_users
    items sip_users.collect(&:ip)
  end
  
  item "Add someone to the conference" do
    # Originate a call into the user
  end
  item "Have Tweedledum call Tweedledee" do
    x = PBX.rami_client.originate 'Context' => 'internal', 'Exten' => '11', 'Priority' => '1', 'Channel' => 'SIP/tweedledum'
    item x.inspect
  end
end

item 'Adhearsion Server Statistics' do
  item 'View Registered SIP Users' do
    PBX.sip_users.each do |u|
      item %(SIP user "#{u.username}" on IP #{u.ip})
    end
  end
  item 'View System Uptime' do
     item `uptime`
  end
  item 'Network' do
    heading 'Network Interface Info'
    `ifconfig eth1`.each_line do |line|
      item line
    end
  end
end

item 'View Users' do
  item 'Select a user to call below.'
  User.find(:all).each { |user| call user.ivr_extension, user.name }
end

image 'tux'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adhearsion-0.7.0 new_projects/config/helpers/micromenus/collab.rb
adhearsion-0.7.1 new_projects/config/helpers/micromenus/collab.rb
adhearsion-0.7.2 new_projects/config/helpers/micromenus/collab.rb
adhearsion-0.7.3 new_projects/config/helpers/micromenus/collab.rb