http://wiki.freeswitch.org/wiki/Event_Socket_Library#Ruby_Example
Added. On Sun, May 3, 2009 at 5:33 PM, Diego Viola <diego.vi...@gmail.com> wrote: > Will post some examples on the wiki now :) > > Diego > > On Sun, May 3, 2009 at 5:32 PM, Diego Viola <diego.vi...@gmail.com> wrote: >> NICE! It works, it works =D >> >> require 'socket' >> require 'ESL' >> >> server = TCPServer.new(8084) >> loop do >> con = server.accept >> fd = con.to_i >> esl = ESL::ESLconnection.new(fd) >> esl.execute('answer') >> esl.execute('playback', 'tone_stream://%(10000,0,350,440)') >> end >> >> Thanks everyone :D >> >> Diego >> >> On Sun, May 3, 2009 at 5:29 PM, Brian West <br...@freeswitch.org> wrote: >>> 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 >>> >>> Brian West >>> br...@freeswitch.org >>> -- Meet us at ClueCon! http://www.cluecon.com >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Freeswitch-users mailing list >>> Freeswitch-users@lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >>> >> > _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org