Sha256: 821d0b7204b9cfdecbb5389c0b4bb08ed2edbe415071e4aa8369f9458fbe09ee
Contents?: true
Size: 624 Bytes
Versions: 3
Compression:
Stored size: 624 Bytes
Contents
# encoding: utf-8 require 'adhearsion/translator/asterisk/agi_app' require 'active_support/core_ext/string/filters' module Adhearsion module Translator class Asterisk class UniMRCPApp def initialize(app, *args, options) args.map! { |o| "\"#{o.to_s.squish.gsub('"', '\"')}\"" } args << prepare_options(options) @agi_app = AGIApp.new(app, *args) end def execute(call) @agi_app.execute call end private def prepare_options(options) options.map { |o| o.join '=' }.join '&' end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems