From jpalley at gmail.com Sun Aug 12 07:29:09 2007 From: jpalley at gmail.com (Jonathan Palley) Date: Sun, 12 Aug 2007 04:29:09 -0700 Subject: [Telegraph-users] Telegraph Update Message-ID: Folks - Just wanted to give you a quick update on a few things a) If you are using AMI functions, please download the latest ami_server.rb file. There was a small bug with threading if you had a lot of rails processes hitting the DRb proxy at once that occasionally caused it to choke. With this fix we've been handling a fair amount of traffic (can't release exact numbers) and its been singing along nicely. b) We've been seriously evaluating FreeSWITCH within my company. As you are all aware, Asterisk has multiple, uh, frustration points, and you've got to love the way FreeSWITCH is architected. Furthermore, if you consider the kind of voice/web apps Telegraph is designed for (and we make) FreeSWITCH is really the better choice than a PBX such as Asterisk. The good news is that I believe we can implement FreeSWITCH support into Telegraph with complete compatibility on both the AMI/AMI Events and AGI fronts as long as you were using the Telegraph DSL. This will certainly be my goal as we don't want to change both our Rails code and our backend server at the same time. Any thoughts on this/FreeSWITCH? Anyone checked it out? I would highly recommend you take a look. I'm currently thinking we want to get the FreeSWITCH support in, cleanup some of the requested features (i.e. helper support) and then try to get an "official" release out. Any thoughts would be appreciated - Jonathan From edgargonzalez at gmail.com Mon Aug 13 16:40:27 2007 From: edgargonzalez at gmail.com (Edgar Gonzalez) Date: Mon, 13 Aug 2007 16:40:27 -0400 Subject: [Telegraph-users] how to know if an extension is doing a ChanSpy? Message-ID: Hi, I already do a ChanSpy via ami_manager using Telegraph. But I can't figure a way how to know if an extension is doing a ChanSpy. Via "asterisk -r" I can do a: show channel and see some like this: asterisk1*CLI> show channels Channel Location State Application(Data) SIP/0131-09aece00 s at default:1 Up ChanSpy(sip/0133|q) SIP/0133-09adc9b0 (None) Up Bridged Call(Zap/1-1) Zap/1-1 s at macro-dial:10 Up Dial(SIP/0133||tr) 3 active channels 1 active call> How can I do this from ami_manager? Thanks -- Edgar Gonz?lez Gonz?lez E-mail: edgargonzalez at gmail.com http://www.hasmanydevelopers.com http://www.rubycorner.com http://www.to2blogs.com http://www.lacaraoscura.com -- From evan at protest.net Mon Aug 13 16:55:22 2007 From: evan at protest.net (evan) Date: Mon, 13 Aug 2007 13:55:22 -0700 Subject: [Telegraph-users] Telegraph Update In-Reply-To: References: Message-ID: <86ec40c10708131355x159f242btf3f998cebfc85025@mail.gmail.com> I've been playing with freeswitch for a while and i have to say i really like it too. I've thought about how to integrate it with telegraph, but i haven't come up with anything really good. It does have res_ruby embedded ruby support, but it's fallen out of date and is in need of a maintainer. -rabble On 8/12/07, Jonathan Palley wrote: > Folks - > Just wanted to give you a quick update on a few things > > a) If you are using AMI functions, please download the latest > ami_server.rb file. There was a small bug with threading if you had > a lot of rails processes hitting the DRb proxy at once that > occasionally caused it to choke. With this fix we've been handling > a fair amount of traffic (can't release exact numbers) and its been > singing along nicely. > > b) We've been seriously evaluating FreeSWITCH within my company. As > you are all aware, Asterisk has multiple, uh, frustration points, and > you've got to love the way FreeSWITCH is architected. Furthermore, > if you consider the kind of voice/web apps Telegraph is designed for > (and we make) FreeSWITCH is really the better choice than a PBX such > as Asterisk. The good news is that I believe we can implement > FreeSWITCH support into Telegraph with complete compatibility on both > the AMI/AMI Events and AGI fronts as long as you were using the > Telegraph DSL. This will certainly be my goal as we don't want to > change both our Rails code and our backend server at the same time. > > Any thoughts on this/FreeSWITCH? Anyone checked it out? I would > highly recommend you take a look. > > > I'm currently thinking we want to get the FreeSWITCH support in, > cleanup some of the requested features (i.e. helper support) and then > try to get an "official" release out. > > Any thoughts would be appreciated - > > Jonathan > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users > From jpalley at gmail.com Mon Aug 13 21:46:19 2007 From: jpalley at gmail.com (Jonathan Palley) Date: Mon, 13 Aug 2007 18:46:19 -0700 Subject: [Telegraph-users] Telegraph Update In-Reply-To: <86ec40c10708131355x159f242btf3f998cebfc85025@mail.gmail.com> References: <86ec40c10708131355x159f242btf3f998cebfc85025@mail.gmail.com> Message-ID: <59C5734D-0B1F-4867-8AD4-A959B58781BF@gmail.com> Hi Rapple - In my brief playing around with it, here's where I'm currently at: - Asterisk's "AGI" is basically equivalent to event_socket outbound (http://wiki.freeswitch.org/wiki/Event_socket_outbound) - AMI is again basically equivalent to the XML-RPC - AMI Events is like event_socket inbound For integrating it into Telegraph I've begun experimenting with - Namespacing the AGI/AMI specific code into an Asterisk namespace - Writing a CallConnection class for event_socket outbound. So far, I believe we can expose the same functions the Telegraph DSL depends upon in a FreeSWITCH CallConnection class. Then of course you have the Asterisk/FreeSWITCH specific functions, but those are just passed straight through to the view code so it shouldn't be a problem. - Doing something similar with the AMI stuff. The AMI->XML-RPC shouldn't be too painful as its completely wrapped in Telegraph with the CRUD interface. Although I'm afraid the Telegraph implementation of that wrapper may be a bit too Asterisk influenced. We'll see. I'm not sure of the DRb stuff is necessary with FreeSWITCH or not. I imagine not. The AMI Events is very similar in FreeSWITCH, so again, I think that will work out. I've made a bit of progress on 1 & 2. I'll make a branch and try to check some stuff in in a few days. Rabble, anyone else using FreeSWITCH in any projects that you can use to play around with this stuff? Jonathan On Aug 13, 2007, at 1:55 PM, evan wrote: > I've been playing with freeswitch for a while and i have to say i > really like it too. I've thought about how to integrate it with > telegraph, but i haven't come up with anything really good. It does > have res_ruby embedded ruby support, but it's fallen out of date and > is in need of a maintainer. > > -rabble > > On 8/12/07, Jonathan Palley wrote: >> Folks - >> Just wanted to give you a quick update on a few things >> >> a) If you are using AMI functions, please download the latest >> ami_server.rb file. There was a small bug with threading if you had >> a lot of rails processes hitting the DRb proxy at once that >> occasionally caused it to choke. With this fix we've been handling >> a fair amount of traffic (can't release exact numbers) and its been >> singing along nicely. >> >> b) We've been seriously evaluating FreeSWITCH within my company. As >> you are all aware, Asterisk has multiple, uh, frustration points, and >> you've got to love the way FreeSWITCH is architected. Furthermore, >> if you consider the kind of voice/web apps Telegraph is designed for >> (and we make) FreeSWITCH is really the better choice than a PBX such >> as Asterisk. The good news is that I believe we can implement >> FreeSWITCH support into Telegraph with complete compatibility on both >> the AMI/AMI Events and AGI fronts as long as you were using the >> Telegraph DSL. This will certainly be my goal as we don't want to >> change both our Rails code and our backend server at the same time. >> >> Any thoughts on this/FreeSWITCH? Anyone checked it out? I would >> highly recommend you take a look. >> >> >> I'm currently thinking we want to get the FreeSWITCH support in, >> cleanup some of the requested features (i.e. helper support) and then >> try to get an "official" release out. >> >> Any thoughts would be appreciated - >> >> Jonathan >> _______________________________________________ >> Telegraph-users mailing list >> Telegraph-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/telegraph-users >> From jpalley at gmail.com Mon Aug 13 21:55:59 2007 From: jpalley at gmail.com (Jonathan Palley) Date: Mon, 13 Aug 2007 18:55:59 -0700 Subject: [Telegraph-users] how to know if an extension is doing a ChanSpy? In-Reply-To: References: Message-ID: <918EE584-10BA-48E8-B907-8BF2FF1BED90@gmail.com> Haven't played around with ChanSpy myself but if you do: AMIObject.find(:status, :channel=>"") Where AMIObject is your class that inherits from Telegraph::AsteriskManager (it'll be in your model directory) you will get basically the same data as below in a nice hash/array format. Its then just a manner of parsing that. Jonathan On Aug 13, 2007, at 1:40 PM, Edgar Gonzalez wrote: > Hi, > > I already do a ChanSpy via ami_manager using Telegraph. > But I can't figure a way how to know if an extension is doing a > ChanSpy. > > Via "asterisk -r" I can do a: > show channel > > and see some like this: > > asterisk1*CLI> show channels > Channel Location State Application(Data) > SIP/0131-09aece00 s at default:1 Up ChanSpy(sip/0133|q) > SIP/0133-09adc9b0 (None) Up Bridged Call(Zap/ > 1-1) > Zap/1-1 s at macro-dial:10 Up Dial(SIP/0133||tr) > 3 active channels > 1 active call> > > How can I do this from ami_manager? > > Thanks > > -- > Edgar Gonz?lez Gonz?lez > E-mail: edgargonzalez at gmail.com > http://www.hasmanydevelopers.com > http://www.rubycorner.com > http://www.to2blogs.com > http://www.lacaraoscura.com > -- > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users From carlosve.ucv at gmail.com Tue Aug 14 10:59:18 2007 From: carlosve.ucv at gmail.com (Carlos Garcia Mujica) Date: Tue, 14 Aug 2007 10:59:18 -0400 Subject: [Telegraph-users] Problem With CLI COMMAND Message-ID: <860c15960708140759l133958e7k5f2dc39263d34590@mail.gmail.com> Hello, I have a problem using telegraph, it?s just that I want to execute a Cli Command, throw the "Command" function of AMI, and I don?t get the answers in any field of the hash. Does anyone know how to get the information? Best Regards, Carlos Garcia carlosve.ucv at gmail.com -- ------------------------------------------------------------------------------------- Universidad Central de Venezuela Facultad de Ciencias Escuela de Computaci?n Carlos Garcia MSN Messenger Service: curdomanaqui at hotmail.com ------------------------------------------------------------------------------------- "Everything should be made as simple as possible, but not simpler." Albert Einstein -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/telegraph-users/attachments/20070814/b21aa0e6/attachment.html From jpalley at gmail.com Tue Aug 14 22:34:28 2007 From: jpalley at gmail.com (Jonathan Palley) Date: Tue, 14 Aug 2007 19:34:28 -0700 Subject: [Telegraph-users] Problem With CLI COMMAND In-Reply-To: <860c15960708140759l133958e7k5f2dc39263d34590@mail.gmail.com> References: <860c15960708140759l133958e7k5f2dc39263d34590@mail.gmail.com> Message-ID: Carlos - Are you doing: result = AsteriskManager.cli_command("command here") If you can paste in your code we can probably help. JP On Aug 14, 2007, at 7:59 AM, Carlos Garcia Mujica wrote: > Hello, > I have a problem using telegraph, it?s just that I want to execute > a Cli Command, throw the "Command" function of AMI, and I don?t get > the answers in any field of the hash. > > Does anyone know how to get the information? > > > Best Regards, > Carlos Garcia > > carlosve.ucv at gmail.com > -- > ---------------------------------------------------------------------- > --------------- > Universidad Central de Venezuela > Facultad de Ciencias > Escuela de Computaci?n > Carlos Garcia > MSN Messenger Service: curdomanaqui at hotmail.com > ---------------------------------------------------------------------- > --------------- > "Everything should be made as simple as possible, but not simpler." > Albert Einstein > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/telegraph-users/attachments/20070814/9aee8f48/attachment.html From dwkirsch at gmail.com Mon Aug 20 11:08:29 2007 From: dwkirsch at gmail.com (David W. Kirsch) Date: Mon, 20 Aug 2007 11:08:29 -0400 Subject: [Telegraph-users] incoming caller id Message-ID: <545acc480708200808q7f1eaa62s59bf3a58749d5a4f@mail.gmail.com> Hello, very new Telegraph user here. How do I detect an incoming caller's phone number? I tried looking in @params but it has "agi_callerid" => "unknown". I also looked for caller id functionality in call_connection.rb, but it only has a method for setting the outgoing caller id, not detecting the incoming. Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/telegraph-users/attachments/20070820/8c75e8d7/attachment.html From pbaker at adeptra.com Mon Aug 20 11:13:45 2007 From: pbaker at adeptra.com (Patrick Baker) Date: Mon, 20 Aug 2007 11:13:45 -0400 Subject: [Telegraph-users] incoming caller id In-Reply-To: <545acc480708200808q7f1eaa62s59bf3a58749d5a4f@mail.gmail.com> References: <545acc480708200808q7f1eaa62s59bf3a58749d5a4f@mail.gmail.com> Message-ID: <6B3727B1924AC94F915E95DC9063EFFA0983E2B4@norwalk-ex1.ad.adeptra.com> Does it work outside of AGI? CallerID is usually passed to AGI via asterisk. ________________________________ From: telegraph-users-bounces at rubyforge.org [mailto:telegraph-users-bounces at rubyforge.org] On Behalf Of David W. Kirsch Sent: Monday, August 20, 2007 11:08 AM To: telegraph-users at rubyforge.org Subject: [Telegraph-users] incoming caller id Hello, very new Telegraph user here. How do I detect an incoming caller's phone number? I tried looking in @params but it has "agi_callerid" => "unknown". I also looked for caller id functionality in call_connection.rb, but it only has a method for setting the outgoing caller id, not detecting the incoming. Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/telegraph-users/attachments/20070820/53b46b97/attachment.html From dwkirsch at gmail.com Mon Aug 20 11:42:23 2007 From: dwkirsch at gmail.com (David W. Kirsch) Date: Mon, 20 Aug 2007 11:42:23 -0400 Subject: [Telegraph-users] incoming caller id In-Reply-To: <6B3727B1924AC94F915E95DC9063EFFA0983E2B4@norwalk-ex1.ad.adeptra.com> References: <545acc480708200808q7f1eaa62s59bf3a58749d5a4f@mail.gmail.com> <6B3727B1924AC94F915E95DC9063EFFA0983E2B4@norwalk-ex1.ad.adeptra.com> Message-ID: <545acc480708200842r296cb264x3a6a5c6c901724b6@mail.gmail.com> How would I check this? The asterisk console shows the incoming call as "-- Accepting UNAUTHENTICATED call from 81.201.82.27:" -- an ip, not a phone number. In agi debug mode, the asterisk console shows "AGI Tx >> agi_callerid: unknown". Thanks, David On 8/20/07, Patrick Baker wrote: > > Does it work outside of AGI? CallerID is usually passed to AGI via > asterisk. > > > ------------------------------ > > *From:* telegraph-users-bounces at rubyforge.org [mailto: > telegraph-users-bounces at rubyforge.org] *On Behalf Of *David W. Kirsch > *Sent:* Monday, August 20, 2007 11:08 AM > *To:* telegraph-users at rubyforge.org > *Subject:* [Telegraph-users] incoming caller id > > > > Hello, very new Telegraph user here. > > How do I detect an incoming caller's phone number? I tried looking in > @params but it has "agi_callerid" => "unknown". I also looked for caller id > functionality in call_connection.rb, but it only has a method for setting > the outgoing caller id, not detecting the incoming. > > Thanks, > David > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/telegraph-users/attachments/20070820/666e67b3/attachment.html From jhosteny at gmail.com Mon Aug 20 11:49:04 2007 From: jhosteny at gmail.com (Joe Hosteny) Date: Mon, 20 Aug 2007 11:49:04 -0400 Subject: [Telegraph-users] incoming caller id In-Reply-To: <545acc480708200842r296cb264x3a6a5c6c901724b6@mail.gmail.com> References: <545acc480708200808q7f1eaa62s59bf3a58749d5a4f@mail.gmail.com> <6B3727B1924AC94F915E95DC9063EFFA0983E2B4@norwalk-ex1.ad.adeptra.com> <545acc480708200842r296cb264x3a6a5c6c901724b6@mail.gmail.com> Message-ID: <2f0ee70f0708200849l5b0c391et9b2986cb4f55cba@mail.gmail.com> David, Are you using a DID or soft phone? If you have a DID, you may need to turn this on for SIP from your proxy. For example, Teliax has a checkbox for dnis that you need to enable to get the caller ID. Joe On 8/20/07, David W. Kirsch wrote: > How would I check this? > > The asterisk console shows the incoming call as "-- Accepting > UNAUTHENTICATED call from 81.201.82.27:" -- an ip, not a phone number. > > In agi debug mode, the asterisk console shows "AGI Tx >> agi_callerid: > unknown". > > Thanks, > David > > > > > On 8/20/07, Patrick Baker wrote: > > > > > > > > > > Does it work outside of AGI? CallerID is usually passed to AGI via > asterisk. > > > > > > > > ________________________________ > > > > > From: telegraph-users-bounces at rubyforge.org > [mailto:telegraph-users-bounces at rubyforge.org] On Behalf Of > David W. Kirsch > > Sent: Monday, August 20, 2007 11:08 AM > > To: telegraph-users at rubyforge.org > > Subject: [Telegraph-users] incoming caller id > > > > > > > > > > Hello, very new Telegraph user here. > > > > How do I detect an incoming caller's phone number? I tried looking in > @params but it has "agi_callerid" => "unknown". I also looked for caller id > functionality in call_connection.rb, but it only has a method for setting > the outgoing caller id, not detecting the incoming. > > > > Thanks, > > David > > > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users > > From pbaker at adeptra.com Mon Aug 20 15:20:46 2007 From: pbaker at adeptra.com (Patrick Baker) Date: Mon, 20 Aug 2007 15:20:46 -0400 Subject: [Telegraph-users] AMI Events Doc Message-ID: <6B3727B1924AC94F915E95DC9063EFFA0983E382@norwalk-ex1.ad.adeptra.com> Can someone update the website for AMI event examples? Or post an example to this thread? I'm just interested to an overview of functionality at a high level. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/telegraph-users/attachments/20070820/8d3cb161/attachment-0001.html From jpalley at gmail.com Mon Aug 20 22:06:14 2007 From: jpalley at gmail.com (Jonathan Palley) Date: Mon, 20 Aug 2007 19:06:14 -0700 Subject: [Telegraph-users] AMI Events Doc In-Reply-To: <6B3727B1924AC94F915E95DC9063EFFA0983E382@norwalk-ex1.ad.adeptra.com> References: <6B3727B1924AC94F915E95DC9063EFFA0983E382@norwalk-ex1.ad.adeptra.com> Message-ID: <2EF973E5-8325-42CB-B47B-BA3A24804808@gmail.com> If you run the ami_logic generator it shows an example. I've pasted that into the documentation wiki. Note that there is a small bug, I believe, in the generator. The first line should read: class AmiLogic < Telegraph::AMIHandler Will change that ASAP. We use AMI events for a number of things. 1) Logging in our database when users login/logout/etc. 2) Doing special things with the web app/database when calls are connected or disconnected. Jonathan On Aug 20, 2007, at 12:20 PM, Patrick Baker wrote: > Can someone update the website for AMI event examples? Or post an > example to this thread? I?m just interested to an overview of > functionality at a high level. > > > > > > _______________________________________________ > Telegraph-users mailing list > Telegraph-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/telegraph-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/telegraph-users/attachments/20070820/5a70fcb2/attachment.html