metasploit-framework/lib/rex/proto/iax2/codecs/alaw.rb

16 lines
182 B
Ruby
Raw Normal View History

module Rex
module Proto
module IAX2
module Codecs
class ALaw < G711
def self.decode(buff)
buff.unpack("C*").map{ |x| LOOKUP_ALAW2LIN16[x] }.pack('v*')
end
end
end
end
end
end