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      [EMAIL PROTECTED]      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to