[asterisk-users] 'System' application in asterisk

Steve Edwards asterisk.org at sedwards.com
Tue Aug 10 10:22:50 CDT 2010


Un-top-posting...

> >> Un-top-posting...
> >>
> >> On Tue, 10 Aug 2010, Tino wrote:
> >>
> >>> >Is there any  way to capture the output of the 'System' application 
> >>> >in asterisk dialplan and evaluate it.

> > On Tue, Aug 10, 2010 at 12:42 PM, Steve Edwards <asterisk.org at sedwards.com>
> >
> >> Unless the output from your system command is trivial, you should 
> >> parse it in the AGI and set channel variables as needed.
> >>
> >> If you provide a bit more detail, you may get a more specific answer. 
> >> System() may not be the "best" approach.

> On 10 August 2010 08:36, Tino <tino at sparksupport.com> wrote:
> >
> > In my asterisk server before an agent doing manual dial is allowed a 
> > call, asterisk will make an http request (to my crm, do not worry 
> > about this part )  and get back an OK or something else. … if it 
> > receives OK, it allows the call, otherwise we just play an 
> > "unauthorized call"  recording to the agent. We make the http request 
> > using a  "wget | perl " command and we want to capture the output of 
> > the wget | perl command.

> On Tue, Aug 10, 2010 at 1:21 PM, Julian Lyndon-Smith <asterisk at dotr.com> wrote:
>
>       You could always use the CURL  function directly in the dialplan

On Tue, 10 Aug 2010, Tino wrote:

> I am using Asterisk 1.4.33.1(AsteriskNOW iso) and curl function is not 
> available in this version.

I'm a 1.2 Luddite, but loading app_curl.so adds the application curl() and 
the function CURL(). Is app_curl not included in AsteriskNow or is it not 
loading for some reason?

You could always compile the 1.4.33.1 source and copy app_curl.so to 
/usr/lib/asterisk/modules/.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000


More information about the asterisk-users mailing list