# encoding: utf-8 module Punchblock module Command class Reject < CommandNode register :reject, :core include HasHeaders VALID_REASONS = [:busy, :decline, :error].freeze ## # Create an Rayo reject message # # @param [Hash] options # @option options [Symbol] :reason for rejecting the call. Can be any one of VALID_REASONS. Defaults to :decline # @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::Reject] a formatted Rayo reject command # # @example # Reject.new(:reason => :busy).to_xml # # returns: #