Sha256: 7e10680f724eb41398d3ce1f0ee146170c5da1153b2ea52a5423080c2e723892
Contents?: true
Size: 666 Bytes
Versions: 6
Compression:
Stored size: 666 Bytes
Contents
#!/usr/bin/env ruby require File.join(File.dirname(__FILE__), "..", 'lib', 'fsr') $stdout.flush require "fsr/listener/outbound" class OesDemo < FSR::Listener::Outbound def session_initiated number = @session.headers[:caller_caller_id_number] # Grab the inbound caller id FSR::Log.info "*** Answering incoming call from #{number}" answer # Answer the call log("1", "Pong from the FSR event socket!") set("hangup_after_bridge", "true") # Set a variable speak 'Hello, This is your phone switch. Have a great day' # use mod_flite to speak hangup # Hangup the call end end FSR.start_oes!(OesDemo, :port => 1888, :host => "localhost")
Version data entries
6 entries across 6 versions & 2 rubygems