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 <[EMAIL PROTECTED]> wrote: > > > >From: Paul Hales <[EMAIL PROTECTED]> > >Subject: [Asterisk-Users] Asterisk question > >To: Asterisk Users Mailing List - Non-Commercial Discussion > > <[email protected]> > >Message-ID: <[EMAIL PROTECTED]> > >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
