[Asterisk-Users] Re: Asterisk Question

pdhales at optusnet.com.au pdhales at optusnet.com.au
Mon Feb 27 20:53:22 MST 2006


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



More information about the asterisk-users mailing list