From mike at infoanywhere.com Fri Jan 4 09:27:30 2008 From: mike at infoanywhere.com (Mike Clark) Date: Fri, 04 Jan 2008 09:27:30 -0500 Subject: [Telegraph-users] Can't start agi_serevr Message-ID: <477E4252.3010405@infoanywhere.com> I get the following error when I attempt to start the agi_server. Am I missing something in configuration? Thanks, Mike [root at dundi1 pointcall]# script/agi_server start ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). [2008-01-04 09:16:54] INFO Telegraph::CallServer: default-handler = port = 4574 [2008-01-04 09:16:54] INFO WEBrick 1.3.1 [2008-01-04 09:16:54] INFO ruby 1.8.5 (2006-12-04) [i686-linux] [2008-01-04 09:16:54] WARN TCPServer Error: Cannot assign requested address - bind(2) [2008-01-04 09:16:54] INFO There is an error here, but we got it [2008-01-04 09:16:54] ERROR Cannot assign requested address - bind(2) [2008-01-04 09:16:54] ERROR /usr/local/lib/ruby/1.8/webrick/utils.rb:73:in `initialize' /usr/local/lib/ruby/1.8/webrick/utils.rb:73:in `new' /usr/local/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners' /usr/local/lib/ruby/1.8/webrick/utils.rb:70:in `each' /usr/local/lib/ruby/1.8/webrick/utils.rb:70:in `create_listeners' /usr/local/lib/ruby/1.8/webrick/server.rb:75:in `listen' /usr/local/lib/ruby/1.8/webrick/server.rb:63:in `initialize' ./script/../config/../vendor/plugins/telegraph/lib/call_server.rb:96:in `new' ./script/../config/../vendor/plugins/telegraph/lib/call_server.rb:96:in `run' script/agi_server:74:in `start' script/agi_server:58:in `send' script/agi_server:58:in `initialize' script/agi_server:145:in `new' script/agi_server:145 From pbaker at adeptra.com Fri Jan 4 22:19:33 2008 From: pbaker at adeptra.com (Patrick Baker) Date: Fri, 4 Jan 2008 22:19:33 -0500 Subject: [Telegraph-users] Rails 2 Message-ID: <6B3727B1924AC94F915E95DC9063EFFA03F5D9CD@norwalk-ex1.ad.adeptra.com> This may have been discussed before, so apologies if I'm bringing up an old topic. Has anyone tested telegraph with the recently released Rails 2.0? From jpalley at gmail.com Sat Jan 5 02:59:40 2008 From: jpalley at gmail.com (Jonathan Palley) Date: Sat, 5 Jan 2008 15:59:40 +0800 Subject: [Telegraph-users] Can't start agi_serevr In-Reply-To: <477E4252.3010405@infoanywhere.com> References: <477E4252.3010405@infoanywhere.com> Message-ID: That generally means some other process is listening on port 4574. Use netstat -pat to see what processes are listening on what ports. JP On Jan 4, 2008, at 10:27 PM, Mike Clark wrote: > I get the following error when I attempt to start the agi_server. Am I > missing something in configuration? > > Thanks, > > Mike > > [root at dundi1 pointcall]# script/agi_server start > ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no > restart). > [2008-01-04 09:16:54] INFO Telegraph::CallServer: default-handler = > port = 4574 > [2008-01-04 09:16:54] INFO WEBrick 1.3.1 > [2008-01-04 09:16:54] INFO ruby 1.8.5 (2006-12-04) [i686-linux] > [2008-01-04 09:16:54] WARN TCPServer Error: Cannot assign requested > address - bind(2) > [2008-01-04 09:16:54] INFO There is an error here, but we got it > [2008-01-04 09:16:54] ERROR Cannot assign requested address - bind(2) > [2008-01-04 09:16:54] ERROR > /usr/local/lib/ruby/1.8/webrick/utils.rb:73:in `initialize' > /usr/local/lib/ruby/1.8/webrick/utils.rb:73:in `new' > /usr/local/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners' > /usr/local/lib/ruby/1.8/webrick/utils.rb:70:in `each' > /usr/local/lib/ruby/1.8/webrick/utils.rb:70:in `create_listeners' > /usr/local/lib/ruby/1.8/webrick/server.rb:75:in `listen' > /usr/local/lib/ruby/1.8/webrick/server.rb:63:in `initialize' > ./script/../config/../vendor/plugins/telegraph/lib/call_server.rb: > 96:in > `new' > ./script/../config/../vendor/plugins/telegraph/lib/call_server.rb: > 96:in > `run' > script/agi_server:74:in `start' > script/agi_server:58:in `send' > script/agi_server:58:in `initialize' > script/agi_server:145:in `new' > script/agi_server:145 > > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users From merul.patel at gmail.com Mon Jan 14 09:59:58 2008 From: merul.patel at gmail.com (Merul Patel) Date: Mon, 14 Jan 2008 14:59:58 +0000 Subject: [Telegraph-users] How to do use AGI to handle a dialplan Message-ID: Hi, Thanks for making Telegraph available. It looks great, and I've managed to use it to replace much of what I used to have to manually setup in extensions.conf. However, I'm a bit puzzled how to replace dialplans like these: [example] exten = s,1,NoOp(RINGGROUP) exten = s,n,Dial(SIP/100&SIP/101,20) exten = s,n,Dial(SIP/105,20) I tried defining an action in my controller of the form: def handle_incoming respond_to do |wants| wants.html {render} wants.voice { render_voice do |voice| voice.dial('SIP/100&SIP/101', 20) voice.dial('SIP/105', 20) voice.redirect_to :action => 'play_message' end } end end With the dialplan hardcoded in extensions.conf, incoming calls ring 100 and 101 for 20 seconds, and if not answered, then dial 105. If either extension 100 or 101 picks up the call, then no call is received on extension 105. With the example Rails method above, if the call is answered by extensions 100 or 101, and then terminated by that extension, then the call is sent on to extension 105. What am I missing? In some ways it'd be ideal to be able to return a complete dialplan in the response to the initial AGI request. Thanks, Merul