Sha256: 4dc1db144a1d8cb289a311b5e2586960b7f06d7d1523b4a41d8b702071c04e18
Contents?: true
Size: 688 Bytes
Versions: 16
Compression:
Stored size: 688 Bytes
Contents
# encoding: utf-8 module Punchblock module Command class Hangup < CommandNode register :hangup, :core include HasHeaders ## # Create a Rayo hangup command # # @param [Hash] options # @option options [Array[Header], Hash, Optional] :headers SIP headers to attach to # the call. Can be either a hash of key-value pairs, or an array of # Header objects. # # @return [Command::Hangup] a formatted Rayo redirect command # def self.new(options = {}) super().tap do |new_node| new_node.headers = options[:headers] end end end # Hangup end # Command end # Punchblock
Version data entries
16 entries across 16 versions & 1 rubygems