[asterisk-users] Urgent help = RUBY & AGI

Zarko Zivanovic outlaw011 at gmail.com
Thu Jul 29 09:22:16 CDT 2010


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 script and continue
to use it. I posted almost all script that we use and it surprised me that
no one was able to find the solution so far.

Zarko




On Thu, Jul 29, 2010 at 3:46 PM, Danny Nicholas <danny at debsinc.com> wrote:

>  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=777702107)
>
> exten => 933,n,Set(city=Birmingham)
>
> exten => 933,n,Set(state=AL)
>
> exten => 933,n,Set(zip=35244)
>
> exten =>
> 933,n,AGI(cityweather.agi,${ABA},${city},${state},${zip},${CHANNEL(language)})
>
> exten => 933,n,hangup()
>
>
>
> 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 777702107 Birmingham AL 35244 en
>
>
>
> And getting back a STDOUT output that simulates what I should get from the
> CLI output.
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100729/dd9b5aa8/attachment-0001.htm 


More information about the asterisk-users mailing list