I think its con.fileno in this case?  Not sure.

/b

On May 3, 2009, at 4:00 PM, Diego Viola wrote:

Yep, it works Guido.

require 'socket'

server = TCPServer.new(8084)
loop do
       con = server.accept
       con.puts "connect\n\n"
       con.puts "sendmsg\ncall-command: execute\nexecute-app-name: answer\n\n"
       con.puts "sendmsg\ncall-command: execute\nexecute-app-name:
playback\nexecute-app-arg: tone_stream://%(10000,0,350,440)\n\n"
end

Thanks for the tip =D

-- Meet us at ClueCon!  http://www.cluecon.com