Re: [asterisk-users] Most efficient way to send an HTTP GET from the dialplan with asterisk 1.8 and above) ? [SOLVED]
2012/1/11, A J Stiles : > On Wednesday 11 January 2012, Olivier wrote: >> At the time I first wrote my question, libcurl4-openssl-dev was >> missing from my system so func_CURL was not available, which lead me >> check with wiki.asterisk.org. > > It's *always* a -dev (or -devel if you're into RPMs) package missing. > Always! > > Frankly, why distributions still insist to separate out "development" files > in > 2012 is a mystery to me. Ubuntu especially have *no* excuse; user- > friendliness is supposed to be their USP, and compiling a package from > Source > Code is something everyone has to do at some stage. > >> Now, I added the missing library and I can see CURL function available. >> I will open a ticket to let concerned people know about the missing >> entry in wiki.asterisk.org > > Isn't the point of a Wiki, so that anybody can edit it without raising a > support ticket? Yes and no: you're right pointing a wiki let people correct things but I think in this specific topic, function list is automatically extracted from source code, so a missing entry show either a bug in source code or in the script extracting it. > > -- > AJS > > Answers come *after* questions. > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Most efficient way to send an HTTP GET from the dialplan with asterisk 1.8 and above) ?
Yes, thanks to Jim's help, I added a missing library, recompiled and then I could also see CURL function presence in my system. Forgetting this library made me discover the missing entry in wiki.asterisk.org 1.8 section. I opended a ticket for it. Cheers 2012/1/11, Benny Amorsen : > Olivier writes: > >> 1. But, on your own 1.8.7 system, do you have something related to >> CURL when typing core show functions (or core show applications) ? >> I'm asking because func_CURL is missing from >> https://wiki.asterisk.org/wiki/display/AST/Dialplan+Functions >> (asterisk 1.8 version) which is misleading. > > == 8< == > ursa*CLI> core show version > Asterisk 1.8.7.1 built by mockbuild @ x86-02.phx2.fedoraproject.org on a > x86_64 running Linux on 2011-10-17 21:15:10 UTC > ursa*CLI> core show function CURL > > -= Info about function 'CURL' =- > > [Synopsis] > Retrieves the contents of a URL > == 8< == > > The Wiki documentation is sadly not perfect yet. > > > /Benny > > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Most efficient way to send an HTTP GET from the dialplan with asterisk 1.8 and above) ?
Olivier writes: > 1. But, on your own 1.8.7 system, do you have something related to > CURL when typing core show functions (or core show applications) ? > I'm asking because func_CURL is missing from > https://wiki.asterisk.org/wiki/display/AST/Dialplan+Functions > (asterisk 1.8 version) which is misleading. == 8< == ursa*CLI> core show version Asterisk 1.8.7.1 built by mockbuild @ x86-02.phx2.fedoraproject.org on a x86_64 running Linux on 2011-10-17 21:15:10 UTC ursa*CLI> core show function CURL -= Info about function 'CURL' =- [Synopsis] Retrieves the contents of a URL == 8< == The Wiki documentation is sadly not perfect yet. /Benny -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Most efficient way to send an HTTP GET from the dialplan with asterisk 1.8 and above) ? [SOLVED]
On 01/11/2012 11:14 AM, A J Stiles wrote: On Wednesday 11 January 2012, Olivier wrote: At the time I first wrote my question, libcurl4-openssl-dev was missing from my system so func_CURL was not available, which lead me check with wiki.asterisk.org. It's *always* a -dev (or -devel if you're into RPMs) package missing. Always! Frankly, why distributions still insist to separate out "development" files in 2012 is a mystery to me. Ubuntu especially have *no* excuse; user- friendliness is supposed to be their USP, and compiling a package from Source Code is something everyone has to do at some stage. I suspect that 99% of Ubuntu users have never built a package from source, and wouldn't even have a clue how to begin to do so. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies Jabber: kflem...@digium.com | SIP: kpflem...@digium.com | Skype: kpfleming 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at www.digium.com & www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Most efficient way to send an HTTP GET from the dialplan with asterisk 1.8 and above) ? [SOLVED]
On Wednesday 11 January 2012, Olivier wrote: > At the time I first wrote my question, libcurl4-openssl-dev was > missing from my system so func_CURL was not available, which lead me > check with wiki.asterisk.org. It's *always* a -dev (or -devel if you're into RPMs) package missing. Always! Frankly, why distributions still insist to separate out "development" files in 2012 is a mystery to me. Ubuntu especially have *no* excuse; user- friendliness is supposed to be their USP, and compiling a package from Source Code is something everyone has to do at some stage. > Now, I added the missing library and I can see CURL function available. > I will open a ticket to let concerned people know about the missing > entry in wiki.asterisk.org Isn't the point of a Wiki, so that anybody can edit it without raising a support ticket? -- AJS Answers come *after* questions. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Most efficient way to send an HTTP GET from the dialplan with asterisk 1.8 and above) ? [SOLVED]
2012/1/11, Jim DeVito : > I think the wiki may have just missed func_curl. I have a couple 1.8.x > machines with working func_curl. Have you tried to compile it anyway? At the time I first wrote my question, libcurl4-openssl-dev was missing from my system so func_CURL was not available, which lead me check with wiki.asterisk.org. Now, I added the missing library and I can see CURL function available. I will open a ticket to let concerned people know about the missing entry in wiki.asterisk.org Thanks you very much for your help ! > > Thanks!! > > - Original message - >> Hi, >> >> I've seen that function CURL is missing from 1.8 but back in with 10 >> (see wiki.asterisk.org). >> >> With asterisk 1.8 and above, for a custom CID Name lookup application, >> which is the most efficient way to send an HTTP GET from the dialplan >> and parse its response (code and content) ? >> >> Regards >> >> -- >> _ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users > > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Most efficient way to send an HTTP GET from the dialplan with asterisk 1.8 and above) ?
Yes, you're right, I can read this menuselect.makeopts : MENUSELECT_DEPSFAILED=MENUSELECT_RES=res_curl I should investigate why res_curl was not built. 1. But, on your own 1.8.7 system, do you have something related to CURL when typing core show functions (or core show applications) ? I'm asking because func_CURL is missing from https://wiki.asterisk.org/wiki/display/AST/Dialplan+Functions (asterisk 1.8 version) which is misleading. 2. How would you rate CURL function performance ? Would you recommend it (for CID Lookup, for instance) ? 2012/1/11, Benny Amorsen : > Olivier writes: > >> I've seen that function CURL is missing from 1.8 but back in with 10 >> (see wiki.asterisk.org). > > I see the CURL function in Asterisk 1.8.7.1, found in the res_curl > module. In Fedora it is available in a separate package called > asterisk-curl. > > If you do not get res_curl, it is likely because a prerequisite library > was not installed when you built Asterisk. Try looking at > MENUSELECT_DEPSFAILED in menuselect.makeopts. > > > /Benny > > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Most efficient way to send an HTTP GET from the dialplan with asterisk 1.8 and above) ?
I think the wiki may have just missed func_curl. I have a couple 1.8.x machines with working func_curl. Have you tried to compile it anyway? Thanks!! - Original message - > Hi, > > I've seen that function CURL is missing from 1.8 but back in with 10 > (see wiki.asterisk.org). > > With asterisk 1.8 and above, for a custom CID Name lookup application, > which is the most efficient way to send an HTTP GET from the dialplan > and parse its response (code and content) ? > > Regards > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Most efficient way to send an HTTP GET from the dialplan with asterisk 1.8 and above) ?
Olivier writes: > I've seen that function CURL is missing from 1.8 but back in with 10 > (see wiki.asterisk.org). I see the CURL function in Asterisk 1.8.7.1, found in the res_curl module. In Fedora it is available in a separate package called asterisk-curl. If you do not get res_curl, it is likely because a prerequisite library was not installed when you built Asterisk. Try looking at MENUSELECT_DEPSFAILED in menuselect.makeopts. /Benny -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Most efficient way to send an HTTP GET from the dialplan with asterisk 1.8 and above) ?
Hi, I've seen that function CURL is missing from 1.8 but back in with 10 (see wiki.asterisk.org). With asterisk 1.8 and above, for a custom CID Name lookup application, which is the most efficient way to send an HTTP GET from the dialplan and parse its response (code and content) ? Regards -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users