Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-29 Thread Zarko Zivanovic
...@lists.digium.com] *On Behalf Of *Danny Nicholas *Sent:* Tuesday, July 27, 2010 6:32 PM *To:* 'Asterisk Users Mailing List - Non-Commercial Discussion' *Subject:* Re: [asterisk-users] Urgent help = RUBY AGI *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-29 Thread Danny Nicholas
Strictly a shot in the dark, but have you tried $loc=$agi.get_variable('CHANNEL') ? -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-29 Thread Zarko Zivanovic
- Non-Commercial Discussion' Subject: Re: [asterisk-users] Urgent help = RUBY AGI Strictly a shot in the dark, but have you tried $loc=$agi.get_variable('CHANNEL') ? __ Information from ESET NOD32 Antivirus, version of virus signature database 5323 (20100729) __ The message

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-29 Thread Danny Nicholas
I can't even spell RUBY, so I don't have a clue as to how the AGI works. I do know a little bit about AGI in general. The way I typically run my AGI's is something like this: exten = 933,1,Answer exten = 933,n,Set(ABA=02107) exten = 933,n,Set(city=Birmingham) exten = 933,n,Set(state=AL)

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-29 Thread Zarko Zivanovic
That looks easy. I must say that I am very frustrated as this has took my all week, and beside dumpling that data via macro I wasnt able to use that data in the ruby script that we have. I didnt write the script is something old that we use but i was sure we could add few things in that very

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-29 Thread Steve Edwards
On Thu, 29 Jul 2010, Danny Nicholas wrote: I’m a PERL weenie, so I can “shell check” my agi’s by going to /var/lib/asterisk/agi-bin and doing ./cityweather.agi 02107 Birmingham AL 35244 en And getting back a STDOUT output that simulates what I should get from the CLI output. You can

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-29 Thread Jim Dickenson
Do you just have one agi you are running? If so that will not work. Your one agi is hung on the dial step until it finishes at which time the agi will go away, I think. You need the one agi to cause the dial to occur and another one to capture the information when the macro runs. You can try

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-28 Thread Zarko Zivanovic
! From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jim Dickenson Sent: Tuesday, July 27, 2010 5:31 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Urgent help = RUBY AGI I have never used 1.2.9.1

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-28 Thread Zarko Zivanovic
: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jim Dickenson Sent: Tuesday, July 27, 2010 6:35 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Urgent help = RUBY AGI You can put multiple options

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-28 Thread Zarko Zivanovic
Sent: Tuesday, July 27, 2010 6:32 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] Urgent help = RUBY AGI From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Zarko Zivanovic Subject: Re

[asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Zarko Zivanovic
Here's something that should be easy for RUBY pro's. Here is a script: 1.times do r = $agi.exec('DIAL', SIP/voipuserZap/32Zap/33Zap/34Zap/35) r = $agi.get_variable('DIALSTATUS')

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Tim Nelson
- Zarko Zivanovic outlaw...@gmail.com wrote: Here’s something that should be easy for RUBY pro’s. Here's something that would be infinitely easier: You could understand that this list isn't your personal technical support resource where you can delegate how urgent or not your

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Danny Nicholas
From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tim Nelson Subject: Re: [asterisk-users] Urgent help = RUBY AGI - Zarko Zivanovic outlaw...@gmail.com wrote: Here's something that should be easy for RUBY pro's. My .02

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Kevin P. Fleming
On 07/27/2010 09:38 AM, Danny Nicholas wrote: *From:* asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] *On Behalf Of *Tim Nelson *Subject:* Re: [asterisk-users] Urgent help = RUBY AGI - Zarko Zivanovic outlaw...@gmail.com wrote: Here’s

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Zarko Zivanovic
-boun...@lists.digium.com] On Behalf Of Tim Nelson Sent: Tuesday, July 27, 2010 4:30 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Urgent help = RUBY AGI - Zarko Zivanovic outlaw...@gmail.com wrote: Here’s something that should be easy

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Zarko Zivanovic
...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Nicholas Sent: Tuesday, July 27, 2010 4:38 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] Urgent help = RUBY AGI From: asterisk-users-boun...@lists.digium.com

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Zarko Zivanovic
...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Kevin P. Fleming Sent: Tuesday, July 27, 2010 4:42 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Urgent help = RUBY AGI On 07/27/2010 09:38 AM, Danny Nicholas wrote: *From:* asterisk-users-boun

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Randy R
Hi, I missed the beginning of this thread but you or anyone else looking for help with Ruby + Asterisk should contact Jason Goecke (@jsgoecke on Twitter or if you don't do Twitter you can look for contact info there http://twitter.com/gsgoecke). Jason probably knows as much about that world as

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Jim Dickenson
I have never used 1.2.9.1 or anything in the 1.2.x range so I can not give you an exact solution but I can tell you that the script that you are using will not work. In the dial command you need to add the M option which will call a macro when the call is connected. In that macro you can then

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Zarko Zivanovic
Jim thanks. I will test this first thing in the morning as I am out of the office now. As a matter of fact I cant wait to test this, as it has been the first reasonable thing that looks like it could work. In the meantime , do you happen to know if there is a way to call both macro (M) and music

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Danny Nicholas
From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Zarko Zivanovic Subject: Re: [asterisk-users] Urgent help = RUBY AGI snip In the meantime , do you happen to know if there is a way to call both macro (M) and music on hold (m

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Jim Dickenson
You can put multiple options in the dial command if that is what you are asking. And by the way several emails, including a previous one of mine, told you to use the M option and a macro. In this email I gave you more detailed information but if you had done core show application dial on CLI

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Steve Edwards
On Tue, 27 Jul 2010, Jim Dickenson wrote: In this email I gave you more detailed information but if you had done core show application dial on CLI you should have been able to ask more directed questions. Maybe RTFHT* should have been the first response :) *) Read The Frick'n Help Text --

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Danny Nicholas
From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Steve Edwards Subject: Re: [asterisk-users] Urgent help = RUBY AGI Maybe RTFHT* should have been the first response :) *) Read The Frick'n Help Text Don't know about the Ruby part