[Asterisk-Users] Re: Asterisk Question

steve steve at supertec.com
Mon Feb 27 16:16:45 MST 2006


>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.




More information about the asterisk-users mailing list