[Asterisk-Users] Re: Asterisk Question

Michael Collins mcollins at fcnetwork.biz
Tue Feb 28 11:14:30 MST 2006


Paul,

Just curious - what kind of stuff are you reading from the file?  
-MC

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of pdhales at optusnet.com.au
> Sent: Monday, February 27, 2006 7:53 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] Re: Asterisk Question
> 
> 
> I was going to see if I can execute a bash script as an AGI - just
looking
> around the internet for examples at the moment.
> Anybody got an example spare?
> I'm just a bit stuck on how to start this, but I am quite comfortable
> writing asterisk dialplan stuff and bash scripts....
> 
> later,
> 
> PaulH
> 
> > steve <steve at supertec.com> wrote:
> >
> >
> > >From: Paul Hales <pdhales at optusnet.com.au>
> > >Subject: [Asterisk-Users] Asterisk question
> > >To: Asterisk Users Mailing List - Non-Commercial Discussion
> > >	<asterisk-users at lists.digium.com>
> > >Message-ID: <1141005863.4401.1.camel at localhost.localdomain>
> > >Content-Type: text/plain
> > >
> > >Any idea how to read an external file, grab some stuff and push it
back
> > >into an Asterisk variable?
> > >
> > >I can do it the other way with:
> > >system(echo "${UNIQUEID} =>" >> /home/ast/curr_calls)
> > >
> > >but I'm a bit stumped on how to go the other way around....
> > >
> > >much thanks,
> > >
> > >Paul Hales
> > >
> > >
> > >
> > I'll go out on a limb here and take a guess that it could be done as
an
> > AGI script that incorporates SED (http://www.gnu.org/software/sed/)
and
> > AWK (http://www.gnu.org/software/gawk/gawk.html).  I've used both
for
> > some bash scripting in the past. . .
> >
> > Regards,
> > Steve Cayona
> > Super Technologies, Inc.
> >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list