From timuckun at gmail.com Sun Jul 1 23:58:13 2007 From: timuckun at gmail.com (Tim Uckun) Date: Mon, 2 Jul 2007 15:58:13 +1200 Subject: [Telegraph-users] What is wrong with this code? Message-ID: <855e4dcf0707012058i13b5c53o7980ae04b65a89f9@mail.gmail.com> I am attempting to build a small recording application with telegraph. I have the following code which should work but doesn't for some reason. First here is the code. def record @prompt = Prompt.find(params[:id]) @prompt_directory = "#{Telegraph::Config::Globals['sound_path']}/#{File.dirname(@prompt.file_name)}/" @prompt_file_name = File.basename(@prompt.file_name) srand @temp_file_name = "/tmp/#{rand(10000000000000000000000000000000000000)}" respond_to do |wants| wants.html { rami_dialout render } wants.voice { render_voice do |voice| voice.play @prompt_directory + 'recording-instructions' voice.record @temp_file_name, 120 voice.redirect_to :action=>'accept_menu' end #render Voice } end end The rami_dial application dials the number I want and passes it the correct AGI information. Somehow when the AGI picks up the call it can't find the prompt giving me the error message "Couldn't find prompt without an ID." For some reason the ID parameter is not being processed even though it's in the URL. Here is the asterisk trace. > Channel Local/101 at from-internal-e714,1 was answered. > Launching AGI(agi://hr.panztel.biz:4574/prompts/record/7?session_id=52aa454b59018d548279029d8ac21f43) on Local/101 at from-internal-e714,1 So what is happening here? From mike at vincent.ws Mon Jul 2 02:47:30 2007 From: mike at vincent.ws (Mike Vincent) Date: Mon, 2 Jul 2007 01:47:30 -0500 Subject: [Telegraph-users] What is wrong with this code? In-Reply-To: <2386bfa00707012142w1406e08av6f62af1e9e04ed71@mail.gmail.com> References: <855e4dcf0707012058i13b5c53o7980ae04b65a89f9@mail.gmail.com> <2386bfa00707012142w1406e08av6f62af1e9e04ed71@mail.gmail.com> Message-ID: <2386bfa00707012347h5b32b63fmb986e90a09311f4@mail.gmail.com> I posted a patch that should fix this on the rubyforge tracker http://rubyforge.org/tracker/index.php?func=detail&aid=11950&group_id=3417&atid=13132 Also cc'd the list as I didn't realize I responded to you directly. :) -Mike On 7/1/07, Mike Vincent wrote: > I've been doing a bit of work with Telegraph lately as well and have > been dealing with similar issues. I don't think the agi server is > fully parametizing the request, but haven't come up with a fix as of > yet. Spent a bit of time spelunking through rails' routing code today, > wow. > > I've also started to idle in #telegraph on irc.freenode.net if anyone > else wants to chat, collaborate, etc on irc. > > On 7/1/07, Tim Uckun wrote: > > I am attempting to build a small recording application with telegraph. > > I have the following code which should work but doesn't for some > > reason. First here is the code. > > > > def record > > @prompt = Prompt.find(params[:id]) > > @prompt_directory = > > "#{Telegraph::Config::Globals['sound_path']}/#{File.dirname(@prompt.file_name)}/" > > @prompt_file_name = File.basename(@prompt.file_name) > > > > srand > > @temp_file_name = "/tmp/#{rand(10000000000000000000000000000000000000)}" > > > > respond_to do |wants| > > wants.html { > > rami_dialout > > render > > } > > wants.voice { > > render_voice do |voice| > > voice.play @prompt_directory + 'recording-instructions' > > voice.record @temp_file_name, 120 > > voice.redirect_to :action=>'accept_menu' > > end #render Voice > > } > > end > > end > > > > > > The rami_dial application dials the number I want and passes it the > > correct AGI information. Somehow when the AGI picks up the call it > > can't find the prompt giving me the error message "Couldn't find > > prompt without an ID." > > > > For some reason the ID parameter is not being processed even though > > it's in the URL. Here is the asterisk trace. > > > > > Channel Local/101 at from-internal-e714,1 was answered. > > > Launching > > AGI(agi://hr.panztel.biz:4574/prompts/record/7?session_id=52aa454b59018d548279029d8ac21f43) > > on Local/101 at from-internal-e714,1 > > > > > > So what is happening here? > > _______________________________________________ > > Telegraph-users mailing list > > Telegraph-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/telegraph-users > > > From timuckun at gmail.com Tue Jul 3 00:54:16 2007 From: timuckun at gmail.com (Tim Uckun) Date: Tue, 3 Jul 2007 16:54:16 +1200 Subject: [Telegraph-users] Restarting the agi_server constantly. Message-ID: <855e4dcf0707022154x5cd2b59bi36351a0b9da396e5@mail.gmail.com> Every time I make a change to controller I have to restart the AGI server. Is there a way to set things up so that in development environment it reloads the controllers on every connection? From timuckun at gmail.com Wed Jul 11 23:05:25 2007 From: timuckun at gmail.com (Tim Uckun) Date: Thu, 12 Jul 2007 15:05:25 +1200 Subject: [Telegraph-users] record_file Message-ID: <855e4dcf0707112005r2c2096b3oed726af77f48f930@mail.gmail.com> I made a slight change to record_file so you can pass an optional format variable (right now it's hard coded to gsm). When I was testing it I ran into a problem because the directory I had created was not owned by asterisk. The function failed but since I wasn't checking the return value it took me a while to figure out what the deal was. What should be the overall strategy for dealing with these kinds of issues? Should we raise an exception? Should the function return a boolean value? Right now the function is not really looking at the result and trying to figure out if something went wrong. Should it? From timuckun at gmail.com Thu Jul 12 00:38:21 2007 From: timuckun at gmail.com (Tim Uckun) Date: Thu, 12 Jul 2007 16:38:21 +1200 Subject: [Telegraph-users] strange loop. Message-ID: <855e4dcf0707112138y514bf900kd43b14323cd883df@mail.gmail.com> I have the following code which enters into an infinite loop. Can anybody explain why? record.voice ------------ voice.play @prs_prompts[:recording_instructions] logger.info "recording " + @temp_file_name r = voice.record_file(@temp_file_name , 120, true, 100, 'gsm' ) logger.info "recorded " + r.to_yaml voice.redirect_to :action=>'accept_menu' ---------------------- accept_menu.voice voice.link_to_dtmf @prs_prompts[:approve_recording] do link 1, :action => 'approve_recording' link 2, :action => 'playback' link 3, :action => 're_record' #try again. end --------------------------- For some weird reason voice.redirect_to calls record again!. Why would that be? From gr8boy at gmail.com Sun Jul 15 15:10:26 2007 From: gr8boy at gmail.com (Christian Moeller) Date: Sun, 15 Jul 2007 21:10:26 +0200 Subject: [Telegraph-users] redirect_to enters infinite loop Message-ID: Hey, I'm basically trying to run an example as explained in the Telegraph wiki. I want to do a redirect like this: class MyControllerController < ApplicationController def index render_voice do |voice| voice.redirect_to :action => 'welcome' end end def welcome render_voice do |voice| voice.play "hello-world" end end end The result is an infinate loop that goes on even after I hang up the call. The agi_server gives the following (repetetive) output: Processing MyControllerController#index (for 0.0.0.0 at 2007-07-15 20:39:09) [POST] [2007-07-15 20:39:09] INFO Session ID: e5fb1b0cd29c80eb6b8fce3ef9e60ba0 [2007-07-15 20:39:09] INFO Parameters: {"agi_enhanced"=>"0.0", "agi_callington"=>"0", "agi_network"=>"yes", "agi_accountcode"=>nil, "agi_callingani2"=>"0", "agi_request"=>"agi://127.0.0.1/my_controller/index", "agi_callingpres"=>"0", "agi_calleridname"=>"John", "agi_callerid"=>"john", "agi_language"=>"en", "agi_network_script"=>"my_controller/index", "agi_extension"=>"123", "agi_priority"=>"1", "agi_type"=>"SIP", "action"=>"index", "agi_dnid"=>"123", "agi_callingtns"=>"0", "controller"=>"my_controller", "agi_channel"=>"SIP/john-08204748", "agi_context"=>"internal", "agi_uniqueid"=>" 1184524744.7", "agi_rdnis"=>"unknown"} [2007-07-15 20:39:09] INFO Completed in 0.00010 (10000 reqs/sec) | [ http://agi/] [2007-07-15 20:39:09] INFO I call the script from Asterisk like this in extensions.conf: exten => 123,1,AGI(agi://127.0.0.1/my_controller/index) I can of course not use the Rails redirect_to function since it will redirect to a content-type of HTML and not Voice :-) Any ideas? Best regards, Christian Moeller. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/telegraph-users/attachments/20070715/f9df902b/attachment.html From timuckun at gmail.com Sun Jul 15 21:26:08 2007 From: timuckun at gmail.com (Tim Uckun) Date: Mon, 16 Jul 2007 13:26:08 +1200 Subject: [Telegraph-users] redirect_to enters infinite loop In-Reply-To: References: Message-ID: <855e4dcf0707151826q2b370b00r3a7440ae01e903f8@mail.gmail.com> > > end > > The result is an infinate loop that goes on even after I hang up the call. > The agi_server gives the following (repetetive) output: I had the same problem. Clearly there is a bug but I haven't had time to look at it at all. From mmangino at elevatedrails.com Sun Jul 15 22:07:12 2007 From: mmangino at elevatedrails.com (Mike Mangino) Date: Sun, 15 Jul 2007 21:07:12 -0500 Subject: [Telegraph-users] redirect_to enters infinite loop In-Reply-To: <855e4dcf0707151826q2b370b00r3a7440ae01e903f8@mail.gmail.com> References: <855e4dcf0707151826q2b370b00r3a7440ae01e903f8@mail.gmail.com> Message-ID: <80E774A0-B761-4B41-B251-C60BDF7D8B46@elevatedrails.com> Hangup detection is basically non-existent right now. I have a patch that fixes that. Unfortunately, I haven't heard anything from Jonathan. Jonathan, if you don't have time to work on Telegraph, can you give one of us access? I have a bunch of small fixes that I would like to commit. I'm getting ready to deploy a telegraph app to production and either need access to fix the bugs or I need to fork the source. Mike On Jul 15, 2007, at 8:26 PM, Tim Uckun wrote: >> >> end >> >> The result is an infinate loop that goes on even after I hang up >> the call. >> The agi_server gives the following (repetetive) output: > > > I had the same problem. Clearly there is a bug but I haven't had time > to look at it at all. > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users -- Mike Mangino http://www.elevatedrails.com From timuckun at gmail.com Sun Jul 15 22:42:25 2007 From: timuckun at gmail.com (Tim Uckun) Date: Mon, 16 Jul 2007 14:42:25 +1200 Subject: [Telegraph-users] redirect_to enters infinite loop In-Reply-To: <80E774A0-B761-4B41-B251-C60BDF7D8B46@elevatedrails.com> References: <855e4dcf0707151826q2b370b00r3a7440ae01e903f8@mail.gmail.com> <80E774A0-B761-4B41-B251-C60BDF7D8B46@elevatedrails.com> Message-ID: <855e4dcf0707151942u79fd3989n7aede1d6586d16d8@mail.gmail.com> > > Jonathan, if you don't have time to work on Telegraph, can you give > one of us access? I have a bunch of small fixes that I would like to > commit. I'm getting ready to deploy a telegraph app to production and > either need access to fix the bugs or I need to fork the source. Both Mike Vincent and I have write access and we have both modified trunk. Perhaps this was a bad idea in that we may have broken existing code. I propose integrate your patches, do some testing and a minor bugfix release and then keep trunk stable from that point on. We should have pulled a branch from the get go. From jpalley at gmail.com Sun Jul 15 23:02:13 2007 From: jpalley at gmail.com (Jonathan Palley) Date: Sun, 15 Jul 2007 20:02:13 -0700 Subject: [Telegraph-users] redirect_to enters infinite loop In-Reply-To: <855e4dcf0707151942u79fd3989n7aede1d6586d16d8@mail.gmail.com> References: <855e4dcf0707151826q2b370b00r3a7440ae01e903f8@mail.gmail.com> <80E774A0-B761-4B41-B251-C60BDF7D8B46@elevatedrails.com> <855e4dcf0707151942u79fd3989n7aede1d6586d16d8@mail.gmail.com> Message-ID: <2d8777c00707152002o5c134544oa5522740c81d36e4@mail.gmail.com> I agree with this strategy - almost :). Let's get all the patches that everyone has in in the next week. I'm going to be updating the telegraph code in our main project in a few days so that will give a good bases for testing and then we'll branch that into a 0.1 release branch. I suggest we keep the release branch stable and use the trunk as a true working trunk branch. It would be very good if someone can take the lead on writing test code. The first step integrating and establishing a mock system. Is anyone interested in heading that? Thanks everyone for all the contributions! JP On 7/15/07, Tim Uckun wrote: > > > > > Jonathan, if you don't have time to work on Telegraph, can you give > > one of us access? I have a bunch of small fixes that I would like to > > commit. I'm getting ready to deploy a telegraph app to production and > > either need access to fix the bugs or I need to fork the source. > > Both Mike Vincent and I have write access and we have both modified > trunk. Perhaps this was a bad idea in that we may have broken existing > code. > > I propose integrate your patches, do some testing and a minor bugfix > release and then keep trunk stable from that point on. We should have > pulled a branch from the get go. > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users > -- Jonathan Palley | Idapted Inc. jpalley at idapted.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/telegraph-users/attachments/20070715/daab0d87/attachment-0001.html From mmangino at elevatedrails.com Mon Jul 16 16:22:59 2007 From: mmangino at elevatedrails.com (Mike Mangino) Date: Mon, 16 Jul 2007 15:22:59 -0500 Subject: [Telegraph-users] redirect_to enters infinite loop In-Reply-To: References: Message-ID: <580CE1B8-F757-48AF-928D-3C395F39148D@elevatedrails.com> I committed my changes for hangup detection as well as a fix for this bug. Can you update to the latest version and try it again? Mike On Jul 15, 2007, at 2:10 PM, Christian Moeller wrote: > Hey, > > I'm basically trying to run an example as explained in the > Telegraph wiki. I want to do a redirect like this: > > class MyControllerController < ApplicationController > > def index > render_voice do |voice| > voice.redirect_to :action => 'welcome' > end > end > > def welcome > render_voice do |voice| > voice.play "hello-world" > end > end > > end > > The result is an infinate loop that goes on even after I hang up > the call. The agi_server gives the following (repetetive) output: > > Processing MyControllerController#index (for 0.0.0.0 at 2007-07-15 > 20:39:09) [POST] > [2007-07-15 20:39:09] INFO Session ID: > e5fb1b0cd29c80eb6b8fce3ef9e60ba > 0 > [2007-07-15 20:39:09] INFO Parameters: {"agi_enhanced"=>"0.0", > "agi_callington"=>"0", "agi_network"=>"yes", > "agi_accountcode"=>nil, "agi_callingani2"=>"0", > "agi_request"=>"agi://127.0.0.1/my_controller/index", > "agi_callingpres"=>"0", "agi_calleridname"=>"John", > "agi_callerid"=>"john", "agi_language"=>"en", > "agi_network_script"=>"my_controller/index", > "agi_extension"=>"123", "agi_priority"=>"1", "agi_type"=>"SIP", > "action"=>"index", "agi_dnid"=>"123", "agi_callingtns"=>"0", > "controller"=>"my_controller", "agi_channel"=>"SIP/john-08204748", > "agi_context"=>"internal", "agi_uniqueid"=>" 1184524744.7", > "agi_rdnis"=>"unknown"} > [2007-07-15 20:39:09] INFO Completed in 0.00010 (10000 reqs/sec) > | [ http://agi/] > [2007-07-15 20:39:09] INFO > > I call the script from Asterisk like this in extensions.conf: > > exten => 123,1,AGI(agi://127.0.0.1/my_controller/index) > > I can of course not use the Rails redirect_to function since it > will redirect to a content-type of HTML and not Voice :-) > > Any ideas? > > > Best regards, > > Christian Moeller. > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users -- Mike Mangino http://www.elevatedrails.com From mmangino at elevatedrails.com Mon Jul 16 18:56:06 2007 From: mmangino at elevatedrails.com (Mike Mangino) Date: Mon, 16 Jul 2007 17:56:06 -0500 Subject: [Telegraph-users] redirect_to enters infinite loop In-Reply-To: <2d8777c00707152002o5c134544oa5522740c81d36e4@mail.gmail.com> References: <855e4dcf0707151826q2b370b00r3a7440ae01e903f8@mail.gmail.com> <80E774A0-B761-4B41-B251-C60BDF7D8B46@elevatedrails.com> <855e4dcf0707151942u79fd3989n7aede1d6586d16d8@mail.gmail.com> <2d8777c00707152002o5c134544oa5522740c81d36e4@mail.gmail.com> Message-ID: Does anyone object to using rspec for tests? We're using it with great success at ElevatedRails. If that's okay, expect some cleanup/reorganization patches to start coming in to make things easier to test. Mike On Jul 15, 2007, at 10:02 PM, Jonathan Palley wrote: > I agree with this strategy - almost :). > Let's get all the patches that everyone has in in the next week. > I'm going to be updating the telegraph code in our main project in > a few days so that will give a good bases for testing and then > we'll branch that into a 0.1 release branch. I suggest we keep the > release branch stable and use the trunk as a true working trunk > branch. > > It would be very good if someone can take the lead on writing > test code. The first step integrating and establishing a mock > system. Is anyone interested in heading that? > > Thanks everyone for all the contributions! > > JP > > On 7/15/07, Tim Uckun wrote: > > > Jonathan, if you don't have time to work on Telegraph, can you give > > one of us access? I have a bunch of small fixes that I would like to > > commit. I'm getting ready to deploy a telegraph app to production > and > > either need access to fix the bugs or I need to fork the source. > > Both Mike Vincent and I have write access and we have both modified > trunk. Perhaps this was a bad idea in that we may have broken existing > code. > > I propose integrate your patches, do some testing and a minor bugfix > release and then keep trunk stable from that point on. We should have > pulled a branch from the get go. > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users > > > > -- > Jonathan Palley | Idapted Inc. > jpalley at idapted.com -- Mike Mangino http://www.elevatedrails.com From timuckun at gmail.com Mon Jul 16 19:09:39 2007 From: timuckun at gmail.com (Tim Uckun) Date: Tue, 17 Jul 2007 11:09:39 +1200 Subject: [Telegraph-users] redirect_to enters infinite loop In-Reply-To: References: <855e4dcf0707151826q2b370b00r3a7440ae01e903f8@mail.gmail.com> <80E774A0-B761-4B41-B251-C60BDF7D8B46@elevatedrails.com> <855e4dcf0707151942u79fd3989n7aede1d6586d16d8@mail.gmail.com> <2d8777c00707152002o5c134544oa5522740c81d36e4@mail.gmail.com> Message-ID: <855e4dcf0707161609q5dc1626eu4835618327874237@mail.gmail.com> On 7/17/07, Mike Mangino wrote: > Does anyone object to using rspec for tests? We're using it with > great success at ElevatedRails. > > If that's okay, expect some cleanup/reorganization patches to start > coming in to make things easier to test. None at all. That would be great. From timuckun at gmail.com Mon Jul 16 20:07:54 2007 From: timuckun at gmail.com (Tim Uckun) Date: Tue, 17 Jul 2007 12:07:54 +1200 Subject: [Telegraph-users] redirect_to enters infinite loop In-Reply-To: <580CE1B8-F757-48AF-928D-3C395F39148D@elevatedrails.com> References: <580CE1B8-F757-48AF-928D-3C395F39148D@elevatedrails.com> Message-ID: <855e4dcf0707161707v266bccb4wfd26beca44add01b@mail.gmail.com> On 7/17/07, Mike Mangino wrote: > I committed my changes for hangup detection as well as a fix for this > bug. Can you update to the latest version and try it again? Good News: The infinite loop is fixed Bad News: 1) The code that Mike V wrote to properly pass parameters to controllers is gone. This means when the AGI call is made like agi://my.server.bcom/controller/action/8 the id is not set to eight. 2) once the link_to is called the application throws up a hang up error Telegraph::ChannelHungup (Telegraph::ChannelHungup): at least in my application. Here is the code. --------- prompts/record.voice ----------------------------- voice.play @prs_prompts[:recording_instructions] logger.info "recording " + @temp_file_name r = voice.record_file(@temp_file_name , 120, true, 100 ) logger.info "recorded " + r.to_yaml voice.redirect_to :action=>'accept_menu' --------------------- ---------------prompts/accept_menu.voice------------------ logger.info "linking to dtmf" voice.link_to_dtmf @prs_prompts[:approve_recording] do link 1, :action => 'approve_recording' link 2, :action => 'playback' link 3, :action => 're_record' #try again. end --------------------------- The logger logs the "linking to dtmf" and then immediately throws up the hungup error. Perhaps there is something wrong with link_to_dtmf. From mmangino at elevatedrails.com Mon Jul 16 23:29:50 2007 From: mmangino at elevatedrails.com (Mike Mangino) Date: Mon, 16 Jul 2007 22:29:50 -0500 Subject: [Telegraph-users] redirect_to enters infinite loop In-Reply-To: <855e4dcf0707161707v266bccb4wfd26beca44add01b@mail.gmail.com> References: <580CE1B8-F757-48AF-928D-3C395F39148D@elevatedrails.com> <855e4dcf0707161707v266bccb4wfd26beca44add01b@mail.gmail.com> Message-ID: <7180683D-580D-4BAE-890D-9F836ED35CF3@elevatedrails.com> On Jul 16, 2007, at 7:07 PM, Tim Uckun wrote: > On 7/17/07, Mike Mangino wrote: >> I committed my changes for hangup detection as well as a fix for this >> bug. Can you update to the latest version and try it again? > > > Good News: > > The infinite loop is fixed > > Bad News: > > 1) The code that Mike V wrote to properly pass parameters to > controllers is gone. This means when the AGI call is made like > agi://my.server.bcom/controller/action/8 the id is not set to eight. I'll start here with the tests. > > 2) once the link_to is called the application throws up a hang up > error Telegraph::ChannelHungup (Telegraph::ChannelHungup): at least in > my application. Here is the code. > Ugh, Let me look at this. We use link_to as well with no problem. The ChannelHungup is raised when an AGI call returns -1. That also happens when a sound file isn't found. It it possible this is the case for you? I will add a little debugging tomorrow. If I do that, can you send me traces to try to figure out what is going wrong? Mike > > --------- prompts/record.voice ----------------------------- > > voice.play @prs_prompts[:recording_instructions] > logger.info "recording " + @temp_file_name > r = voice.record_file(@temp_file_name , 120, true, 100 ) > logger.info "recorded " + r.to_yaml > > voice.redirect_to :action=>'accept_menu' > > --------------------- > > > ---------------prompts/accept_menu.voice------------------ > > logger.info "linking to dtmf" > voice.link_to_dtmf @prs_prompts[:approve_recording] do > link 1, :action => 'approve_recording' > link 2, :action => 'playback' > link 3, :action => 're_record' #try again. > end > --------------------------- > > > The logger logs the "linking to dtmf" and then immediately throws up > the hungup error. Perhaps there is something wrong with link_to_dtmf. -- Mike Mangino http://www.elevatedrails.com From timuckun at gmail.com Tue Jul 17 00:38:44 2007 From: timuckun at gmail.com (Tim Uckun) Date: Tue, 17 Jul 2007 16:38:44 +1200 Subject: [Telegraph-users] redirect_to enters infinite loop In-Reply-To: <7180683D-580D-4BAE-890D-9F836ED35CF3@elevatedrails.com> References: <580CE1B8-F757-48AF-928D-3C395F39148D@elevatedrails.com> <855e4dcf0707161707v266bccb4wfd26beca44add01b@mail.gmail.com> <7180683D-580D-4BAE-890D-9F836ED35CF3@elevatedrails.com> Message-ID: <855e4dcf0707162138x295ca11fkdba34dacc3910fa1@mail.gmail.com> > > Ugh, Let me look at this. We use link_to as well with no problem. The > ChannelHungup is raised when an AGI call returns -1. That also > happens when a sound file isn't found. It it possible this is the > case for you? I will add a little debugging tomorrow. If I do that, > can you send me traces to try to figure out what is going wrong? If a file is not found then it should return a zero. Here is an old snippet I have log_debug "playing #{prompt}" msg = "STREAM FILE #{prompt} #{digits} #{sample_offset}" send_to_asterisk(msg) results = get_multivalue_result log_debug results.to_yaml # Parse the return values. This is from the asterisk documentation: # # failure: 200 result=-1 endpos= # failure on open: 200 result=0 endpos=0 # success: 200 result=0 endpos= # digit pressed: 200 result= endpos= key_code = results["result"].to_i final_offset = results["endpos"].to_i if -1 == key_code log_debug "User Hung Up" raise UserHungUpError, "User hung up during streaming of file #{filename}" elsif 0 == key_code && 0 == final_offset log_debug "File not Found" raise SoundFileNotFoundError, "Unable to stream file #{filename} perhaps file does exist" elsif 0 == key_code log_debug "User didn't press a key #{key_code.chr} Final Offset #{final_offset}" else log_debug "User pressed Key #{key_code.chr} Final Offset #{final_offset}" key = key_code.chr #, final_offset end From timuckun at gmail.com Wed Jul 18 00:22:14 2007 From: timuckun at gmail.com (Tim Uckun) Date: Wed, 18 Jul 2007 16:22:14 +1200 Subject: [Telegraph-users] getting user data. Message-ID: <855e4dcf0707172122i2268e165jd9f957841cf85774@mail.gmail.com> I have decided that none of the built in asterisk functions are exactly what I want. Furthermore the form and the link_to_dtmf isn't exactly what I want either. I have written the following code which is *exactly* what I want. If you want I can merge this to the codebase as another option for users. It will require very minor tweaking to merge. Here is how you would call these functions. pin_number = get_data_ex ( :timeout_value => 10000, :valid_keys => "0123", :escape_keys => "#" , :max_length => 4, :max_tries => 3, :sound_files => ["lang/eng/welcome", "lang/eng/enter-pin-number" ], :invalid_key_prompts => ['lang/eng/invalid-key'], :no_key_pressed_prompts => ['lang/eng/no-key','lang/eng/try-again'], :error_prompts => ['lang/eng/contact-cust-service'] ) This will play all the sound_files and the user will be able to interrupt them at any time. It collect up to max_length number of digits (or less if the user presses any of the escape_keys). If the user doesn't type anything it will play the no_key_pressed_prompts, if the user presses a non acceptable key it will play the invalid_key_prompts. If the user runs out of retries then it will play the error_prompts and return an empty string. If the user hangs up at any time it will raise a UserHungupError If any of the sound files are missing it will raise a SoundFileNotFoundError What do you guys think? --------Code------------------ def get_data_ex(params) params[:timeout_value] ||= 10000 #set to zero for params[:valid_keys] ||= "0123456789*" params[:escape_keys] ||= "#" params[:max_length] ||= 10 # as good as any I guess. params[:max_tries] ||= 3 params[:sound_files] ||= Array.new() params[:invalid_key_prompts] ||= Array.new() params[:no_key_pressed_prompts] ||= Array.new() params[:error_prompts] ||= Array.new() key = '' input = '' retry_count = 0 #try to get a good key max_tries times key = play_prompts_get_digit params[:sound_files], params[:timeout_value] input = '' while retry_count < params[:max_tries] && input.size <= params[:max_length] do if '' == key log_debug "no entry" retry_count += 1 key = play_prompts_get_digit params[:no_key_pressed_prompts], params[:timeout_value] elsif params[:escape_keys].include? key #escape keys are valid so it has to be tested first log_debug "Escape key pressed" break elsif !(params[:valid_keys].include? key) log_debug "Bad key entry" retry_count += 1 key = play_prompts_get_digit params[:invalid_key_prompts], params[:timeout_value] else input << key #get next key if input.size <= params[:max_length] key = wait_for_digit params[:timeout_value] end end #if log_info "KEY: #{key}" log_info "INPUT: #{input}" end #while if retry_count == params[:max_tries] #we tried and tried but to no avail #zero timeout log_debug "max retries" play_prompts_get_digit params[:error_prompts], 0 input = '' end return input end #get_data_ex def play_prompts_get_digit (prompts, timeout, digits = '0123456789#*' ) #turn it into an array in case it's not... if not prompts.is_a?(Array) raise "Prompts is not an array" end #In this case we always want to terminate on any digit sample_offset = -99 key = '' for prompt in prompts do log_debug "playing #{prompt}" msg = "STREAM FILE #{prompt} #{digits} #{sample_offset}" send_to_asterisk(msg) results = get_multivalue_result # Parse the return values. This is from the asterisk documentation: # # failure: 200 result=-1 endpos= # failure on open: 200 result=0 endpos=0 # success: 200 result=0 endpos= # digit pressed: 200 result= endpos= key_code = results["result"].to_i final_offset = results["endpos"].to_i if -1 == key_code log_debug "User Hung Up" raise UserHungUpError, "User hung up during streaming of file #{prompt}" elsif 0 == key_code && 0 == final_offset log_debug "File not Found" raise SoundFileNotFoundError, "Unable to stream file #{prompt} perhaps file does exist" elsif 0 == key_code # user didn't press a key keep going else log_debug "User pressed Key #{key_code.chr} Final Offset #{final_offset}" key = key_code.chr #, final_offset end #if a key was pressed we jump out of the loop break if key.length > 0 end #for log_debug "outside with #{key}" key = wait_for_digit(timeout) unless key.length > 0 return key end #play_prompts_get_digit def wait_for_digit (timeout = 100000) #Default one second log_debug "wait for key" send_to_asterisk("WAIT FOR DIGIT #{timeout}") results = get_multivalue_result log_debug results.to_yaml key_code = results["result"].to_i #Returns: #failure: 200 result=-1 #timeout: 200 result=0 #success: 200 result= # is the ascii code for the digit received. if -1 == key_code log_debug "User Hung Up" raise UserHungUpError, "User hung up during streaming of file #{filename}" elsif 0 == key_code log_debug "Timeout waiting for key press" return '' else return key_code.chr end #if end #wait for key From timuckun at gmail.com Wed Jul 18 18:12:53 2007 From: timuckun at gmail.com (Tim Uckun) Date: Thu, 19 Jul 2007 10:12:53 +1200 Subject: [Telegraph-users] Need to commit. Message-ID: <855e4dcf0707181512q30a23b2bw1c91b62f45aca41c@mail.gmail.com> I want to commit some code into call_connection.rb and maybe agi.rb. Will this mess anybody up? From timuckun at gmail.com Wed Jul 18 23:11:40 2007 From: timuckun at gmail.com (Tim Uckun) Date: Thu, 19 Jul 2007 15:11:40 +1200 Subject: [Telegraph-users] Is this a bug? Message-ID: <855e4dcf0707182011l555c44uf16b862d21dd640b@mail.gmail.com> I have a controller called prompts. I have a method called record. It goes like this. @prompt = Prompt.find(8) @prompt_directory = "#{Telegraph::Config::Globals['sound_path']}/#{File.dirname(@prompt.file_name)}/" logger.info @prompt_directory @prompt_file_name = File.basename(@prompt.file_name) logger.info @prompt_file_name srand @temp_file_name = "/tmp/#{rand(10000000000000000000000000000000000000)}" if @temp_file_name.nil? logger.info @temp_file_name respond_to do |format| # wants.xml {} format.html do rami_dialout render end #html format.voice do render_voice end #format.voice end end record.voice looks like this. ----------- voice.play @prs_prompts[:recording_instructions] logger.info "recording " + @temp_file_name r = voice.record_file(@temp_file_name , 120, true, 100 ) logger.info "recorded " + r.to_yaml voice.redirect_to :action=>'accept_menu' --------------------- In accept_menu.voice @temp_file_name is not in scope. It's nil. That looks like a bug to me. Is it supposed to be this way? From jpalley at gmail.com Wed Jul 18 23:22:00 2007 From: jpalley at gmail.com (Jonathan Palley) Date: Wed, 18 Jul 2007 20:22:00 -0700 Subject: [Telegraph-users] Is this a bug? In-Reply-To: <855e4dcf0707182011l555c44uf16b862d21dd640b@mail.gmail.com> References: <855e4dcf0707182011l555c44uf16b862d21dd640b@mail.gmail.com> Message-ID: <0447C271-C304-4CA9-91EB-6A0FCFE84263@gmail.com> Tim - I don't think its a bug, from my understanding of what you are doing. When you do a redirect its like a new call to a new action. So @temp_file_name was defined by the record action/method. I encourage you to look at the Telegraph forms implementation. It was designed to basically deal with this sort of situation. If you record using a form it'll send the filename you recorded to to the next action that the "form" results are "posted" to. It basically keeps the MVC style and allows you to do exactly what I believe you are doing. Also, I'm curious why you are using the rami_dialout and not the Telegraph AMI implementation? Jonathan On Jul 18, 2007, at 8:11 PM, Tim Uckun wrote: > I have a controller called prompts. > > I have a method called record. It goes like this. > > @prompt = Prompt.find(8) > > @prompt_directory = > "#{Telegraph::Config::Globals['sound_path']}/#{File.dirname > (@prompt.file_name)}/" > logger.info @prompt_directory > > @prompt_file_name = File.basename(@prompt.file_name) > logger.info @prompt_file_name > > srand > > @temp_file_name = > "/tmp/#{rand(10000000000000000000000000000000000000)}" if > @temp_file_name.nil? > logger.info @temp_file_name > respond_to do |format| > # wants.xml {} > format.html do > rami_dialout > render > end #html > format.voice do > render_voice > end #format.voice > end > end > > > record.voice looks like this. > ----------- > voice.play @prs_prompts[:recording_instructions] > logger.info "recording " + @temp_file_name > r = voice.record_file(@temp_file_name , 120, true, 100 ) > logger.info "recorded " + r.to_yaml > > voice.redirect_to :action=>'accept_menu' > > --------------------- > > > In accept_menu.voice @temp_file_name is not in scope. It's nil. > > That looks like a bug to me. Is it supposed to be this way? > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users From jhosteny at gmail.com Fri Jul 20 11:13:58 2007 From: jhosteny at gmail.com (none) Date: Fri, 20 Jul 2007 11:13:58 -0400 Subject: [Telegraph-users] Telegraph vs. Adhearsion Message-ID: <2f0ee70f0707200813qd53d83bt537a4fcbfbd210d2@mail.gmail.com> Hi everyone, Has anyone here had experience with both Telegraph and Adhearsion? If so, can you give a comparison of the two, and what applications each might be better suited towards? Thanks, Joe From mike at vincent.ws Fri Jul 20 12:12:04 2007 From: mike at vincent.ws (Mike Vincent) Date: Fri, 20 Jul 2007 11:12:04 -0500 Subject: [Telegraph-users] Telegraph vs. Adhearsion In-Reply-To: <2f0ee70f0707200813qd53d83bt537a4fcbfbd210d2@mail.gmail.com> References: <2f0ee70f0707200813qd53d83bt537a4fcbfbd210d2@mail.gmail.com> Message-ID: <2386bfa00707200912s9c61aabm2d6fc71aab9c3481@mail.gmail.com> I've only limited experience with both, but have chosen to use Telegraph for a current project based on the fact that it is specifically for integrating asterisk and rails using rails conventions to provide a phone interface to rails applications. Adhearsion is a framework for creating applications for asterisk and probably other similar systems, as I see it. I believe Jay and others are working on making it easier to use Adhearsion with rails but I don't know the details and I doubt it will become the projects primary focus. Just my observations... -Mike On 7/20/07, none wrote: > Hi everyone, > > Has anyone here had experience with both Telegraph and Adhearsion? If > so, can you give a comparison of the two, and what applications each > might be better suited towards? > > Thanks, > Joe > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users > From timuckun at gmail.com Sat Jul 21 02:31:30 2007 From: timuckun at gmail.com (Tim Uckun) Date: Sat, 21 Jul 2007 18:31:30 +1200 Subject: [Telegraph-users] Telegraph vs. Adhearsion In-Reply-To: <2f0ee70f0707200813qd53d83bt537a4fcbfbd210d2@mail.gmail.com> References: <2f0ee70f0707200813qd53d83bt537a4fcbfbd210d2@mail.gmail.com> Message-ID: <855e4dcf0707202331j7908c380o926bd016cffed14f@mail.gmail.com> > > Has anyone here had experience with both Telegraph and Adhearsion? If > so, can you give a comparison of the two, and what applications each > might be better suited towards? I looked into adhearsion but didn't use it because the documentation was so scant. It's an interesting project and one that seems like it's in pretty active development. If I was to write tag lines for the major projects it would go like this. RAGI: Brining agi to rails. Telegraph: Bringing MVC to AGI. Adhearsion: Bringing ruby to extensions.conf. I think that pretty much sums it up. From alisonrowland at fastmail.fm Sun Jul 22 20:30:55 2007 From: alisonrowland at fastmail.fm (Alison Rowland) Date: Sun, 22 Jul 2007 17:30:55 -0700 Subject: [Telegraph-users] AMI Server Can't Connect to Asterisk Message-ID: Hi, I'm having trouble getting the AMI Server to connect to Asterisk. I have configured a user and password in manager.conf, and I can telnet in on that port manually (though I can't login manually, but I think that's just my inability to get the commands/actions formatted right). At least, it tells me I've connected to the Asterisk Call Manager/1.0. I have configured the proper host, username and secret in my environment.rb. Anytime I try to run the AMI server, this is what I get: [user at comp ~/Sites/mysite/trunk]$ script/ami_server Connecting to Asterisk... Error: Connection refused - connect(2) ./script/../vendor/plugins/telegraph/lib/ami_server.rb:430:in `initialize' ./script/../vendor/plugins/telegraph/lib/ami_server.rb:430:in `new' ./script/../vendor/plugins/telegraph/lib/ami_server.rb:430:in `connect' script/ami_server:82:in `start' script/ami_server:64:in `send' script/ami_server:64:in `initialize' script/ami_server:169:in `new' script/ami_server:169 Loaded AMI Server # DRb Started Information on how to debug this sort of thing seems very slim, and I have double- and triple-checked my environment.rb settings. I'm at a loss. Can anyone help? Thanks. --Alison From timuckun at gmail.com Sun Jul 22 21:10:07 2007 From: timuckun at gmail.com (Tim Uckun) Date: Mon, 23 Jul 2007 13:10:07 +1200 Subject: [Telegraph-users] AMI Server Can't Connect to Asterisk In-Reply-To: References: Message-ID: <855e4dcf0707221810p7bd93e9ah3511d5bbfd797b3f@mail.gmail.com> Have you made sure your manager.conf is set up with the proper IP or subnet of your rails machine? From alisonrowland at fastmail.fm Sun Jul 22 22:35:55 2007 From: alisonrowland at fastmail.fm (Alison Rowland) Date: Sun, 22 Jul 2007 19:35:55 -0700 Subject: [Telegraph-users] AMI Server Can't Connect to Asterisk In-Reply-To: <855e4dcf0707221810p7bd93e9ah3511d5bbfd797b3f@mail.gmail.com> References: <855e4dcf0707221810p7bd93e9ah3511d5bbfd797b3f@mail.gmail.com> Message-ID: <48F44FCB-2500-492B-99DD-73856F42C7BD@fastmail.fm> Yes. Here are the relevant lines in my manager.conf deny=0.0.0.0/255.255.255.0 permit=192.168.1.4/255.255.255.0 And the relevant line from running ifconfig on my Rails box... [user at comp ~/Sites/mysite/trunk]$ ifconfig [...] inet 192.168.1.4 netmask 0xffffff00 broadcast 192.168.1.255 Is there any way to log in by hand so I can check the setup manually? It seems like the Manager doesn't recognize my linebreaks properly or something. Thanks. --Alison On Jul 22, 2007, at 6:10 PM, Tim Uckun wrote: > Have you made sure your manager.conf is set up with the proper IP or > subnet of your rails machine? From jpalley at gmail.com Sun Jul 22 22:49:46 2007 From: jpalley at gmail.com (Jonathan Palley) Date: Sun, 22 Jul 2007 19:49:46 -0700 Subject: [Telegraph-users] AMI Server Can't Connect to Asterisk In-Reply-To: <48F44FCB-2500-492B-99DD-73856F42C7BD@fastmail.fm> References: <855e4dcf0707221810p7bd93e9ah3511d5bbfd797b3f@mail.gmail.com> <48F44FCB-2500-492B-99DD-73856F42C7BD@fastmail.fm> Message-ID: <7D0C4227-2FF2-45C6-B6A7-3EDB58EEDF18@gmail.com> Hi Alison - This is a bit of a hack, but will help us debug. In the ami_server.rb file look for the write_line and read_line methods. Insert a "puts" in each of these methods to see what is being read/ written across the socket. This will output all of the AMI communications to your console. Hopefully that will help. My other guess based on that error is that something is already listening or bound to the port you are trying to bind to on your rails machine? JP On Jul 22, 2007, at 7:35 PM, Alison Rowland wrote: > Yes. Here are the relevant lines in my manager.conf > > deny=0.0.0.0/255.255.255.0 > permit=192.168.1.4/255.255.255.0 > > And the relevant line from running ifconfig on my Rails box... > > [user at comp ~/Sites/mysite/trunk]$ ifconfig > [...] inet 192.168.1.4 netmask 0xffffff00 broadcast 192.168.1.255 > > Is there any way to log in by hand so I can check the setup manually? > It seems like the Manager doesn't recognize my linebreaks properly or > something. > > Thanks. > > --Alison > > > On Jul 22, 2007, at 6:10 PM, Tim Uckun wrote: > >> Have you made sure your manager.conf is set up with the proper IP or >> subnet of your rails machine? > > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users From alisonrowland at fastmail.fm Mon Jul 23 00:05:48 2007 From: alisonrowland at fastmail.fm (Alison Rowland) Date: Sun, 22 Jul 2007 21:05:48 -0700 Subject: [Telegraph-users] AMI Server Can't Connect to Asterisk In-Reply-To: <7D0C4227-2FF2-45C6-B6A7-3EDB58EEDF18@gmail.com> References: <855e4dcf0707221810p7bd93e9ah3511d5bbfd797b3f@mail.gmail.com> <48F44FCB-2500-492B-99DD-73856F42C7BD@fastmail.fm> <7D0C4227-2FF2-45C6-B6A7-3EDB58EEDF18@gmail.com> Message-ID: Unfortunately, that doesn't produce any results, because it's not getting to anything that calls write_line or read_line... I added a puts before and after line 430 in ami_server.rb, where it creates the TCPSocket, and it never gets to the one after it: def connect puts 'Connecting to Asterisk...' begin puts 'Got to creation of TCPSocket' @socket = TCPSocket.new(@host, @port) puts 'After creation of TCPSocket' ... end [use r at comp ~/Sites/mysite/trunk]$ script/ami_server Connecting to Asterisk... Got to creation of TCPSocket Error: Connection refused - connect(2) ./script/../vendor/plugins/telegraph/lib/ami_server.rb:431:in `initialize' ./script/../vendor/plugins/telegraph/lib/ami_server.rb:431:in `new' ./script/../vendor/plugins/telegraph/lib/ami_server.rb:431:in `connect' script/ami_server:82:in `start' script/ami_server:64:in `send' script/ami_server:64:in `initialize' script/ami_server:169:in `new' script/ami_server:169 Loaded AMI Server # DRb Started As for your other question, if something was already bound to that port, wouldn't it refuse when I tried to connect manually, as well? Doing the following produces no error... telnet -l username host port Is there any good way to tell what's bound to what port? --Alison On Jul 22, 2007, at 7:49 PM, Jonathan Palley wrote: > Hi Alison - > This is a bit of a hack, but will help us debug. In the > ami_server.rb file look for the write_line and read_line methods. > Insert a "puts" in each of these methods to see what is being read/ > written across the socket. This will output all of the AMI > communications to your console. Hopefully that will help. > > My other guess based on that error is that something is already > listening or bound to the port you are trying to bind to on your > rails machine? > > > > JP > On Jul 22, 2007, at 7:35 PM, Alison Rowland wrote: > >> Yes. Here are the relevant lines in my manager.conf >> >> deny=0.0.0.0/255.255.255.0 >> permit=192.168.1.4/255.255.255.0 >> >> And the relevant line from running ifconfig on my Rails box... >> >> [user at comp ~/Sites/mysite/trunk]$ ifconfig >> [...] inet 192.168.1.4 netmask 0xffffff00 broadcast 192.168.1.255 >> >> Is there any way to log in by hand so I can check the setup manually? >> It seems like the Manager doesn't recognize my linebreaks properly or >> something. >> >> Thanks. >> >> --Alison >> >> >> On Jul 22, 2007, at 6:10 PM, Tim Uckun wrote: >> >>> Have you made sure your manager.conf is set up with the proper IP or >>> subnet of your rails machine? >> >> _______________________________________________ >> Telegraph-users mailing list >> Telegraph-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/telegraph-users > From alisonrowland at fastmail.fm Mon Jul 23 02:31:34 2007 From: alisonrowland at fastmail.fm (Alison Rowland) Date: Sun, 22 Jul 2007 23:31:34 -0700 Subject: [Telegraph-users] AMI Server Can't Connect to Asterisk In-Reply-To: References: <855e4dcf0707221810p7bd93e9ah3511d5bbfd797b3f@mail.gmail.com> <48F44FCB-2500-492B-99DD-73856F42C7BD@fastmail.fm> <7D0C4227-2FF2-45C6-B6A7-3EDB58EEDF18@gmail.com> Message-ID: Yup, I get 'Asterisk Call Manager/1.0' On Jul 22, 2007, at 10:08 PM, Jonathan Palley wrote: > I get this same error when I try to connect and asterisk isn't > running. However, telnet doesn't work then either. When you > telnet in, do you get a message: "Asterisk Call Manager" on the > telnet console? > > JP > > On Jul 22, 2007, at 9:05 PM, Alison Rowland wrote: > >> Unfortunately, that doesn't produce any results, because it's not >> getting to anything that calls write_line or read_line... I added >> a puts before and after line 430 in ami_server.rb, where it >> creates the TCPSocket, and it never gets to the one after it: >> >> def connect >> puts 'Connecting to Asterisk...' >> begin >> puts 'Got to creation of TCPSocket' >> @socket = TCPSocket.new(@host, @port) >> puts 'After creation of TCPSocket' >> ... >> end >> >> [use r at comp ~/Sites/mysite/trunk]$ script/ami_server >> Connecting to Asterisk... >> Got to creation of TCPSocket >> Error: >> Connection refused - connect(2) >> ./script/../vendor/plugins/telegraph/lib/ami_server.rb:431:in >> `initialize' >> ./script/../vendor/plugins/telegraph/lib/ami_server.rb:431:in `new' >> ./script/../vendor/plugins/telegraph/lib/ami_server.rb:431:in >> `connect' >> script/ami_server:82:in `start' >> script/ami_server:64:in `send' >> script/ami_server:64:in `initialize' >> script/ami_server:169:in `new' >> script/ami_server:169 >> Loaded AMI Server >> # >> DRb Started >> >> As for your other question, if something was already bound to that >> port, wouldn't it refuse when I tried to connect manually, as >> well? Doing the following produces no error... >> telnet -l username host port >> >> Is there any good way to tell what's bound to what port? >> >> --Alison >> >> On Jul 22, 2007, at 7:49 PM, Jonathan Palley wrote: >> >>> Hi Alison - >>> This is a bit of a hack, but will help us debug. In the >>> ami_server.rb file look for the write_line and read_line >>> methods. Insert a "puts" in each of these methods to see what is >>> being read/written across the socket. This will output all of >>> the AMI communications to your console. Hopefully that will help. >>> >>> My other guess based on that error is that something is already >>> listening or bound to the port you are trying to bind to on your >>> rails machine? >>> >>> >>> >>> JP >>> On Jul 22, 2007, at 7:35 PM, Alison Rowland wrote: >>> >>>> Yes. Here are the relevant lines in my manager.conf >>>> >>>> deny=0.0.0.0/255.255.255.0 >>>> permit=192.168.1.4/255.255.255.0 >>>> >>>> And the relevant line from running ifconfig on my Rails box... >>>> >>>> [user at comp ~/Sites/mysite/trunk]$ ifconfig >>>> [...] inet 192.168.1.4 netmask 0xffffff00 broadcast 192.168.1.255 >>>> >>>> Is there any way to log in by hand so I can check the setup >>>> manually? >>>> It seems like the Manager doesn't recognize my linebreaks >>>> properly or >>>> something. >>>> >>>> Thanks. >>>> >>>> --Alison >>>> >>>> >>>> On Jul 22, 2007, at 6:10 PM, Tim Uckun wrote: >>>> >>>>> Have you made sure your manager.conf is set up with the proper >>>>> IP or >>>>> subnet of your rails machine? >>>> >>>> _______________________________________________ >>>> Telegraph-users mailing list >>>> Telegraph-users at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/telegraph-users >>> >> > From pbaker at adeptra.com Mon Jul 23 14:25:53 2007 From: pbaker at adeptra.com (Patrick Baker) Date: Mon, 23 Jul 2007 14:25:53 -0400 Subject: [Telegraph-users] Asterisk 1.4 Message-ID: <6B3727B1924AC94F915E95DC9063EFFA08FCF3E2@norwalk-ex1.ad.adeptra.com> Hello all, I'm quite new to telegraph and was wondering if asterisk 1.4 is supported? Thanks, Patrick From jpalley at gmail.com Mon Jul 23 21:34:42 2007 From: jpalley at gmail.com (Jonathan Palley) Date: Mon, 23 Jul 2007 18:34:42 -0700 Subject: [Telegraph-users] Asterisk 1.4 In-Reply-To: <6B3727B1924AC94F915E95DC9063EFFA08FCF3E2@norwalk-ex1.ad.adeptra.com> References: <6B3727B1924AC94F915E95DC9063EFFA08FCF3E2@norwalk-ex1.ad.adeptra.com> Message-ID: Yes. Its not quiet as well tested, but some people have used 1.4 with it (and I'll be migrating to 1.4 soon as well). Email the list with any problems you get. Jonathan On Jul 23, 2007, at 11:25 AM, Patrick Baker wrote: > Hello all, > > I'm quite new to telegraph and was wondering if asterisk 1.4 is > supported? > > Thanks, > > Patrick > > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users From pbaker at adeptra.com Tue Jul 24 02:36:54 2007 From: pbaker at adeptra.com (Patrick Baker) Date: Tue, 24 Jul 2007 02:36:54 -0400 Subject: [Telegraph-users] Asterisk 1.4 Message-ID: <6B3727B1924AC94F915E95DC9063EFFA08FCF3E7@norwalk-ex1.ad.adeptra.com> Great thanks. ----- Original Message ----- From: Jonathan Palley To: Patrick Baker Cc: telegraph-users at rubyforge.org Sent: Mon Jul 23 21:34:42 2007 Subject: Re: [Telegraph-users] Asterisk 1.4 Yes. Its not quiet as well tested, but some people have used 1.4 with it (and I'll be migrating to 1.4 soon as well). Email the list with any problems you get. Jonathan On Jul 23, 2007, at 11:25 AM, Patrick Baker wrote: > Hello all, > > I'm quite new to telegraph and was wondering if asterisk 1.4 is > supported? > > Thanks, > > Patrick > > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users