Darrick,

        I can't find where CURLOPT() is available in 1.4.3.6.  Looks like
that that doesn't come around until 1.6.2.  As soon as I build up the
confidence, I'm going to go right to 1.8.  I haven't really had time to read
about the changes.  In the meantime, I got it working using AGI:

Dialplan snippet:
exten => s,1,Agi(runcc.agi|411111111111111|0813|435|123|1012047|90210)

AGI snippet:
$approved = exec("curl --insecure $base_url");

        Now I just need to get the AGI script to return stuff to the
$approved.  I'll have to wait for some live cc data to test that.  :)  I
like your idea of CURLOPT().  Anytime I can do something without AGI I jump
at it.  It makes backups and disaster recovery easier.

  Thanks,
  Eric



-----Original Message-----
From: Lonnie Abelbeck [mailto:[email protected]] 
Sent: Sunday, November 28, 2010 8:02 PM
To: AstLinux Users Mailing List
Subject: Re: [Astlinux-users] Curl

Eric,

Was this (https CURL) working with another Asterisk 1.4 setup?  Of so, did
you disable certificate verification (ie. curl --insecure) or install certs?

This may help to understand...

[asterisk-users] CURL function with SSL
http://www.mail-archive.com/[email protected]/msg228356.html

The error seems to be somewhat misleading.

Lonnie

On Nov 28, 2010, at 3:45 PM, Eric Kowalewski wrote:

> Darrick,
> 
>       Sorry.  I thought about that after I sent the message.  I'm using
> astlinux-0.7.4 - Asterisk 1.4.36
> 
> 
>  Thanks,
>  Eric
> 
> -----Original Message-----
> From: Darrick Hartman [mailto:[email protected]] 
> Sent: Sunday, November 28, 2010 4:32 PM
> To: AstLinux Users Mailing List
> Subject: Re: [Astlinux-users] Curl
> 
> It would be very helpful to know what version of AstLinux you are using.
> 
> On 11/28/2010 02:56 PM, Eric Kowalewski wrote:
>> Hello All,
>> 
>>      I can't seem to get curl working no matter what I try.  I know that
>> astlinux supports it, but I always get this:
>> 
>> [Nov 28 15:41:48] ERROR[1844]: func_curl.c:166 acf_curl_exec: Cannot
>> allocate curl structure
>> 
>>      When I do this:
>> 
>> exten =>
>> 
>
s,1,Set(test=${CURL(https://www.mydomain.com/phpfile.php?FromMagnus=viaphone
>> 
>
&ccNum=4111111111111111&ccExpDate=1111&PaymentAmount=11.11&ccSecurity=111&Ac
>> countNumber=1015800&BillingZip=11111)})
>> 
>>      I'm really pulling my hair out here.  Is it the https that's the
>> problem?  I used this on straight Asterisk, but when I switched to
> astlinux
>> I could no longer do this.
>> 
>>   Thanks,
>>   Eric
>> 
> 
>
----------------------------------------------------------------------------
> --
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
> 
> Donations to support AstLinux are graciously accepted via PayPal to
> [email protected].
> 
> 
>
----------------------------------------------------------------------------
--
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
> 
> Donations to support AstLinux are graciously accepted via PayPal to
[email protected].
> 
> 


----------------------------------------------------------------------------
--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to
[email protected].


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
[email protected].

Reply via email to