Re: [Freeswitch-users] any way ring fifo members one by one?

2009-05-03 Thread seven
Actually, for the "call back" agents, because the fifo use originate to start a new session, the new session won't hang up unless one agent answered or timeout. Agents will hear nothing and wait(member_wait=wait) on the queue or hanup(nowait) if caller hang up before an agent answer the pho

Re: [Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Diego Viola
http://wiki.freeswitch.org/wiki/Event_Socket_Library#Ruby_Example Added. On Sun, May 3, 2009 at 5:33 PM, Diego Viola wrote: > Will post some examples on the wiki now :) > > Diego > > On Sun, May 3, 2009 at 5:32 PM, Diego Viola wrote: >> NICE! It works, it works =D >> >> require 'socket' >> requ

Re: [Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Diego Viola
Will post some examples on the wiki now :) Diego On Sun, May 3, 2009 at 5:32 PM, Diego Viola 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

Re: [Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Diego Viola
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://%(1,0,350,440)') end Thanks everyone :D Diego On Sun, May 3, 2009

Re: [Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Brian West
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-n

Re: [Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Brian West
What ever the equiv. function in ruby is. /b On May 3, 2009, at 4:26 PM, Diego Viola wrote: Do I need to do something with the file descriptor or fileno first? Sorry, I don't know perl. Diego Brian West br...@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com ___

Re: [Freeswitch-users] FS & Outbound proxy

2009-05-03 Thread kokoska rokoska
Brian West napsal(a): > Setting the proxy vs register-proxy in the gateway should do what you > want can you verify that? > Thank you very much, Brian, for you interest! Using proxy and regiter-proxy solves only 1 half of my problem => I can successfuly register with provider (register-proxy

Re: [Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Diego Viola
Ok, I'll try that. Thanks. Diego On Sun, May 3, 2009 at 5:25 PM, Brian West wrote: > You have to pass it the file descriptor I suspect like we do in perl, python > and lua. > /b > On May 3, 2009, at 4:17 PM, Diego Viola wrote: > > esl = ESL::ESLconnection.new(con) > > Brian West > br...@freeswit

Re: [Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Brian West
You have to pass it the file descriptor I suspect like we do in perl, python and lua. /b On May 3, 2009, at 4:17 PM, Diego Viola wrote: esl = ESL::ESLconnection.new(con) Brian West br...@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com ___

Re: [Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Diego Viola
Do I need to do something with the file descriptor or fileno first? Sorry, I don't know perl. Diego On Sun, May 3, 2009 at 5:17 PM, Diego Viola wrote: > I tried to use ESL::ESLconnection in ruby but I get this. > > [di...@localhost ruby]$ ruby test.rb > test.rb:7:in `initialize': Wrong arguments

Re: [Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Diego Viola
I tried to use ESL::ESLconnection in ruby but I get this. [di...@localhost ruby]$ ruby test.rb test.rb:7:in `initialize': Wrong arguments for overloaded method 'ESLconnection.new'. (ArgumentError) Possible C/C++ prototypes are: ESLconnection.new(char const *host, char const *port, char const *

Re: [Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Brian West
This is how we do it in perl with ESL... it should be very similar in Ruby. You shouldn't have to manually use sendmsg if you tie the fd from the socket to ESL like we do in perl. /b require ESL; use IO::Socket::INET; my $ip = "127.0.0.1"; my $sock = new IO::Socket::INET ( LocalHost => $ip

Re: [Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Diego Viola
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\nexecu

Re: [Freeswitch-users] FS & Outbound proxy

2009-05-03 Thread Brian West
Setting the proxy vs register-proxy in the gateway should do what you want can you verify that? /b On May 3, 2009, at 3:33 PM, kokoska rokoska wrote: Hi all, while I read some threads about Outbound Proxy, I'm still not sure how to use it :-) Well, what's going on: I want to send and rece

[Freeswitch-users] FS & Outbound proxy

2009-05-03 Thread kokoska rokoska
Hi all, while I read some threads about Outbound Proxy, I'm still not sure how to use it :-) Well, what's going on: I want to send and receive calls from/to my TSP which uses outbound proxy. For that, I have to register with providers registrar (R1), receive calls from outbound proxy (O1) and se

Re: [Freeswitch-users] Segfaults with core dump, how to handle

2009-05-03 Thread Brian West
Many bug fixes since 1.0.3 and SVN Trunk is what I would be using! On May 3, 2009, at 12:51 PM, paul.degt wrote: We experience sporadic seg faults in our production FS, version 1.0.3, load is very low, 10-15 users, runs under Centos 5.2 2.6.18-92.1.22.el5 SMP 64-bit. This is what I get in sy

[Freeswitch-users] Segfaults with core dump, how to handle

2009-05-03 Thread paul.degt
We experience sporadic seg faults in our production FS, version 1.0.3, load is very low, 10-15 users, runs under Centos 5.2 2.6.18-92.1.22.el5 SMP 64-bit. This is what I get in system log: May 3 10:39:01 hostname kernel: freeswitch[7578]: segfault at rip 2aaab098e236 rsp 0

[Freeswitch-users] Re-2: Ruby and ESL help

2009-05-03 Thread Guido Kuth
Hello Diego, I don't know ruby but I was playing around with outbound socket as well. You have to start your TCPServer and then listen for connections on port 8084 (if you want it like it is standard). If the TCPServer gets a connect request from FS you have to Accept the connection. In .NET th