[asterisk-users] asterisk + web services
Steve Edwards
asterisk.org at sedwards.com
Tue Jul 15 21:20:14 CDT 2008
On Tue, 15 Jul 2008, Paul Belanger wrote:
> We're working on an upcoming job that may require us to access a web
> service (WS). I'm curious to hear peoples thoughts on the best way to
> do this with asterisk. We'll be submitting a single number to the WS
> and it will return a success or error.
>
> One solution would be to write a simple perl script to interface into
> to the WS, and use SYSTEM() from asterisk to call it. Another may be
> to use the func_curl to do it too.
>
> If anybody have suggestions / ideas please post them.
curl() doesn't fire up another process. The response is returned as just
one big chunk. In my case, it was the HTML to an entire web page :)
If you need to do a bunch of parsing, maybe an AGI calling libcurl --
saving a bunch of ugly dialplan.
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