What would be the simplest way to retrieve information form a CNAM database that provides http based query responses? Does an application or script already exist that does this? Basically, I want to do a wget of a URL that contains the callerID number as a variable, and assign the returned text to another variable which can be used to set the caller ID name. Any suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061117/c57bc717/attachment.htm
-----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:32:53 -0700 Subject: [asterisk-users] wget from within asterisk? What would be the simplest way to retrieve information form a CNAM database that provides http based query responses? Does an application or script already exist that does this? Basically, I want to do a wget of a URL that contains the callerID number as a variable, and assign the returned text to another variable which can be used to set the caller ID name. Any suggestions? Look at the CURL function. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061117/381f0a35/attachment.htm
hi, On Fri, 2006-11-17 at 13:32 -0700, Damon Estep wrote:> > > Basically, I want to do a wget of a URL that contains the callerID > number as a variable, and assign the returned text to another variable > which can be used to set the caller ID name.agi is your friend. Matteo
I saw CURL, but it does not register appear in show functions or show applications, deprecated or add-on? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 1:37 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] wget from within asterisk? -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:32:53 -0700 Subject: [asterisk-users] wget from within asterisk? What would be the simplest way to retrieve information form a CNAM database that provides http based query responses? Does an application or script already exist that does this? Basically, I want to do a wget of a URL that contains the callerID number as a variable, and assign the returned text to another variable which can be used to set the caller ID name. Any suggestions? Look at the CURL function. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061117/fa233682/attachment.htm
Thx! I saw a note about Curl vs. CURL, is there a difference? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 1:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] wget from within asterisk? Make sure the curl library/package is installed, then re-compile asterisk. We're using it on 1.2. -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:40:40 -0700 Subject: RE: [asterisk-users] wget from within asterisk? I saw CURL, but it does not register appear in show functions or show applications, deprecated or add-on? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto: asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 1:37 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] wget from within asterisk? -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:32:53 -0700 Subject: [asterisk-users] wget from within asterisk? What would be the simplest way to retrieve information form a CNAM database that provides http based query responses? Does an application or script already exist that does this? Basically, I want to do a wget of a URL that contains the callerID number as a variable, and assign the returned text to another variable which can be used to set the caller ID name. Any suggestions? Look at the CURL function. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061117/3d44f4d0/attachment.htm
Thanks a bunch, this seems to be a simple solution, I just did not have CURL installed before I built asterisk. ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 2:05 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] wget from within asterisk? They both seem to work, but the Curl spits out warnings about being deprecated. Ours are all configured using CURL. -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:52:35 -0700 Subject: RE: [asterisk-users] wget from within asterisk? Thx! I saw a note about Curl vs. CURL, is there a difference? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto: asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 1:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] wget from within asterisk? Make sure the curl library/package is installed, then re-compile asterisk. We're using it on 1.2. -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:40:40 -0700 Subject: RE: [asterisk-users] wget from within asterisk? I saw CURL, but it does not register appear in show functions or show applications, deprecated or add-on? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto: asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 1:37 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] wget from within asterisk? -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:32:53 -0700 Subject: [asterisk-users] wget from within asterisk? What would be the simplest way to retrieve information form a CNAM database that provides http based query responses? Does an application or script already exist that does this? Basically, I want to do a wget of a URL that contains the callerID number as a variable, and assign the returned text to another variable which can be used to set the caller ID name. Any suggestions? Look at the CURL function. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061117/002dbe4d/attachment.htm
Options I am aware of for installing curl are yum install in FC4 or download from curl.haxx.se, neither option distinguishes between curl and CURL, can someone offer me the slap in the head I need? Damon ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Damon Estep Sent: Friday, November 17, 2006 2:08 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] wget from within asterisk? Thanks a bunch, this seems to be a simple solution, I just did not have CURL installed before I built asterisk. ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 2:05 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] wget from within asterisk? They both seem to work, but the Curl spits out warnings about being deprecated. Ours are all configured using CURL. -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:52:35 -0700 Subject: RE: [asterisk-users] wget from within asterisk? Thx! I saw a note about Curl vs. CURL, is there a difference? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto: asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 1:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] wget from within asterisk? Make sure the curl library/package is installed, then re-compile asterisk. We're using it on 1.2. -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:40:40 -0700 Subject: RE: [asterisk-users] wget from within asterisk? I saw CURL, but it does not register appear in show functions or show applications, deprecated or add-on? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto: asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 1:37 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] wget from within asterisk? -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:32:53 -0700 Subject: [asterisk-users] wget from within asterisk? What would be the simplest way to retrieve information form a CNAM database that provides http based query responses? Does an application or script already exist that does this? Basically, I want to do a wget of a URL that contains the callerID number as a variable, and assign the returned text to another variable which can be used to set the caller ID name. Any suggestions? Look at the CURL function. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061117/5e3d3f8e/attachment.htm
Makes more sense now! Any way of setting an Asterisk CURL timeout in case of DNS, remote server, or WAN link failure? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 3:15 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] wget from within asterisk? The Curl/CURL is an asterisk dialplan distinction. -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 15:06:49 -0700 Subject: RE: [asterisk-users] wget from within asterisk? Options I am aware of for installing curl are yum install in FC4 or download from curl.haxx.se, neither option distinguishes between curl and CURL, can someone offer me the slap in the head I need? Damon ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto: asterisk-users-bounces@lists.digium.com] On Behalf Of Damon Estep Sent: Friday, November 17, 2006 2:08 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] wget from within asterisk? Thanks a bunch, this seems to be a simple solution, I just did not have CURL installed before I built asterisk. ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto: asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 2:05 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] wget from within asterisk? They both seem to work, but the Curl spits out warnings about being deprecated. Ours are all configured using CURL. -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: " Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:52:35 -0700 Subject: RE: [asterisk-users] wget from within asterisk? Thx! I saw a note about Curl vs. CURL, is there a difference? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto: asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 1:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] wget from within asterisk? Make sure the curl library/package is installed, then re-compile asterisk. We're using it on 1.2. -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:40:40 -0700 Subject: RE: [asterisk-users] wget from within asterisk? I saw CURL, but it does not register appear in show functions or show applications, deprecated or add-on? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto: asterisk-users-bounces@lists.digium.com ] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 1:37 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] wget from within asterisk? -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:32:53 -0700 Subject: [asterisk-users] wget from within asterisk? What would be the simplest way to retrieve information form a CNAM database that provides http based query responses? Does an application or script already exist that does this? Basically, I want to do a wget of a URL that contains the callerID number as a variable, and assign the returned text to another variable which can be used to set the caller ID name. Any suggestions? Look at the CURL function. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061117/024a8364/attachment-0001.htm
On version 1.2.12.1 running on FC4 with curl.i386 installed the asterisk CURL function is not registered, perhaps in need something else (curl-devel.i386 ?) ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 1:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] wget from within asterisk? Make sure the curl library/package is installed, then re-compile asterisk. We're using it on 1.2. -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:40:40 -0700 Subject: RE: [asterisk-users] wget from within asterisk? I saw CURL, but it does not register appear in show functions or show applications, deprecated or add-on? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto: asterisk-users-bounces@lists.digium.com] On Behalf Of Russ Beaupre Sent: Friday, November 17, 2006 1:37 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] wget from within asterisk? -----Original Message----- From: "Damon Estep" <damon@suburbanbroadband.net> To: <asterisk-users@lists.digium.com> Date: Fri, 17 Nov 2006 13:32:53 -0700 Subject: [asterisk-users] wget from within asterisk? What would be the simplest way to retrieve information form a CNAM database that provides http based query responses? Does an application or script already exist that does this? Basically, I want to do a wget of a URL that contains the callerID number as a variable, and assign the returned text to another variable which can be used to set the caller ID name. Any suggestions? Look at the CURL function. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061117/47b44a7e/attachment.htm
Thank you, you are correct. You need curl, curl-devel, and you have to make asterisk again after installing the required packages. ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Marnus van Niekerk Sent: Sunday, November 19, 2006 4:15 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] wget from within asterisk? You need curl-devel just try yum install curl-devel Damon Estep wrote: On version 1.2.12.1 running on FC4 with curl.i386 installed the asterisk CURL function is not registered, perhaps in need something else (curl-devel.i386 ?) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061119/a4c058ab/attachment.htm
Have a look at http://www.monetra.com/~brad/*callerid_shell*.agi Im sure it would not be to hard to add another 'service" to the script. On 11/17/06, Damon Estep <damon@suburbanbroadband.net> wrote:> > What would be the simplest way to retrieve information form a CNAM > database that provides http based query responses? > > > > Does an application or script already exist that does this? > > > > Basically, I want to do a wget of a URL that contains the callerID number > as a variable, and assign the returned text to another variable which can be > used to set the caller ID name. > > > > Any suggestions? > > > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061119/a8ee432c/attachment.htm
For the record, to get CNAM from a CNAM provider that provides it via HTTP or HTTPS Make sure curl and curl-devel are installed. Re make and install asterisk if the packages were not present when you original built it. Set(callerid(name)=${CURL(http://somehost.somedomain.com?number=${EXTEN} &userid=whatever&password=whatever)})> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Tzafrir Cohen > Sent: Sunday, November 19, 2006 9:09 PM > To: asterisk-users@lists.digium.com > Subject: Re: [asterisk-users] wget from within asterisk? > > On Fri, Nov 17, 2006 at 01:52:35PM -0700, Damon Estep wrote: > > Thx! > > > > > > > > I saw a note about Curl vs. CURL, is there a difference? > > > > CURL refers to a dialplan function, whereas Curl refers to a dialplan > application that is depracated in favour of that function. BTW: > application names in the Asterisk dialplan are not case-sensitive. I'm > not sure about functions names. So if you just replace 'Curl' with'CURL'> everywhere in your dialplan, you'll still be using the same depracated > Curl application. > > -- > Tzafrir Cohen > icq#16849755 jabber:tzafrir@jabber.org > +972-50-7952406 mailto:tzafrir.cohen@xorcom.com > http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users