Hello Julian,<br><br>I am using Asterisk 1.4.33.1(AsteriskNOW iso) and curl function is not available in this version.<br><br><div class="gmail_quote">On Tue, Aug 10, 2010 at 1:21 PM, Julian Lyndon-Smith <span dir="ltr"><<a href="mailto:asterisk@dotr.com">asterisk@dotr.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You could always use the CURL function directly in the dialplan<br>
<font color="#888888"><br>
Julian<br>
</font><div><div></div><div class="h5"><br>
On 10 August 2010 08:36, Tino <<a href="mailto:tino@sparksupport.com">tino@sparksupport.com</a>> wrote:<br>
><br>
> Hi Steve, thanks for your interest in this matter.<br>
> I will explain my requirement here.<br>
><br>
> In my asterisk server before an agent doing manual dial is allowed a call,<br>
> asterisk will make an http request (to my crm, do not worry about this part<br>
> ) and get back an OK or something else. … if it receives OK, it allows the<br>
> call, otherwise we just play an "unauthorized call" recording to the agent.<br>
> We make the http request using a "wget | perl " command and we want to<br>
> capture the output of the wget | perl command.<br>
><br>
><br>
> On Tue, Aug 10, 2010 at 12:42 PM, Steve Edwards <<a href="http://asterisk.org" target="_blank">asterisk.org</a>@<a href="http://sedwards.com" target="_blank">sedwards.com</a>><br>
> wrote:<br>
>><br>
>> Un-top-posting...<br>
>><br>
>> On Tue, 10 Aug 2010, Tino wrote:<br>
>><br>
>>> >Is there any way to capture the output of the 'System' application in<br>
>>> > >asterisk dialplan and evaluate it.<br>
>><br>
>>> On Mon, Aug 9, 2010 at 11:51 PM, Danny Nicholas <<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>><br>
>>> wrote:<br>
>><br>
>>> I think this answer is no. system only returns ${SYSTEMSTATUS} as<br>
>>> SUCCESS or FAILURE to tell you that the command finished or died. You could<br>
>>> however do a bash AGI that would set a variable with the result of what you<br>
>>> would have sent to system<br>
>><br>
>> On Tue, 10 Aug 2010, Tino wrote:<br>
>><br>
>>> Sorry Dany, I am new to agi scripting. If you do not mind can you please<br>
>>> give me a sample script for this. That would be really helpful to me.<br>
>><br>
>> Unless the output from your system command is trivial, you should parse it<br>
>> in the AGI and set channel variables as needed.<br>
>><br>
>> If you provide a bit more detail, you may get a more specific answer.<br>
>> System() may not be the "best" approach.<br>
>><br>
>> --<br>
>> Thanks in advance,<br>
>> -------------------------------------------------------------------------<br>
>> Steve Edwards <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
>> Newline Fax: +1-760-731-3000<br>
>> --<br>
>> _____________________________________________________________________<br>
>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
>> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
>> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
>><br>
>> asterisk-users mailing list<br>
>> To UNSUBSCRIBE or update options visit:<br>
>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
><br>
> --<br>
> _____________________________________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>