Welcome, Guest. Please Login or Register
SAYNOTO0870.COM

<---- Back to main website

 
Home Help Search Login Register

Page Index Toggle Pages: 1
Send Topic Print
API available ? (Read 17,882 times)
baconbuttie
Newbie
*
Offline



Posts: 4
API available ?
Sep 10th, 2007 at 9:39am
 
Hi,

Is there any chance of having some kind of API available ? I use/supply/configure software PBX systems and was thinking that before dialling an 08xx number I could submit it to this site for a match (and maybe a confidence rating) ... if we get a match then use that as the alternative number to dial.

Either free, or via a subscription would suit my customers. They, like the rest of us, get sick of the sight of 0870 numbers when you're calling a UK number !

I'd be happy to help with the code if needed.
Back to top
« Last Edit: Sep 10th, 2007 at 9:40am by baconbuttie »  
 
IP Logged
 
loddon
Supreme Member
*****
Offline



Posts: 599
Reading  UK
Gender: male
Re: API available ?
Reply #1 - Sep 10th, 2007 at 10:22am
 
baconbuttie, what a great name!    Please enlighten us, what does API mean?
Back to top
 
Campaignagainstripofftelecoms  
IP Logged
 
baconbuttie
Newbie
*
Offline



Posts: 4
Re: API available ?
Reply #2 - Sep 10th, 2007 at 12:14pm
 
Application Programming Interface, "A set of routines that an application uses to request and carry out lower-level services performed by a computer's operating system. Also, a set of calling conventions in programming that define how a service is invoked through the application."

e.g. I have another application (my PBX) that interfaces with the saynoto0870 webserver to get information from their database.

I could screen-scrape the info, but that's not ideal and would just waste bandwidth. If I can send a request like "Hi, username=me, password=xxxx, lookup=0870123456" and the server can send back "Authenticated, alternate=01242123456, confidence=6" then a) I have an alternate number to dial, and b) a confidence rating of 6 might mean that the number has been verified recently as being valid. A lot less bandwith used and a known format makes it easy to use.

People usually tell me how hungry my username makes them feel .... unless they're in the US ... where they think I have a huge rear-end Smiley
Back to top
 
 
IP Logged
 
DaveM
Global Moderator
*****
Offline


Du vin, du pain,   du
Ibuprofen ˇ

Posts: 845
Peterborough
Gender: male
Re: API available ?
Reply #3 - Sep 10th, 2007 at 4:43pm
 
Could you make use of the WAP interface ???  Undecided
Back to top
 
 
IP Logged
 
irrelevant
Senior Member
****
Offline



Posts: 409
Re: API available ?
Reply #4 - Sep 10th, 2007 at 11:27pm
 
loddon: API = Application Program Interface

In this instance, a way of submitting a query automatically and getting a simple result back.

e.g.  calling http://www.saynoto0870.com/api.php?q=08702404020
would send back, just the number:
0800 05 12 592

which could then be integrated into a pbx to translate numbers, etc.

What would be better is to use a DNS based API that is compatible with the likes of e164.org, or any of the other similar sites, that translate phone numbers, in their case mainly into VOIP addresses (to avoid the PSTN completly for known numbers).  This means it's immediately available to multiple PBXs and soft phones, as they already cope with this method of lookups. I notice they also have a NGN translation facility...


I've actually thought about suggesting this here myself, however...

The database is currently aimed at a human readership, and thus the translated number often has comments like "switchboard, ask for..." or further alternate numbers in the comments.  This makes it very hard to incorporate into an application.   Also, even if cleaned up, many numbers go out of service or change.  Site users will know whats going on when they try an alternative, so will be understanding of difficulties.  If your customer's users are dialing the 0870 they know and love, and it hits a dead geographic number, or an automated message telling them to redial on the number they thought the just did dial, then they are not going to know what's happening.. 

Depending on your PABX, and with a bit of coding, you might be able to set up a voice anouncement on doing a translation "We are trying a geographic alternative to the number you dialed, press hash if this fails to work, and we'll redial the number you gave..." or something similar, but I think you'll still end up confusing people.  Yes, it's a great idea if it works, but I can see it being a nightmare when it doesn't.

(And that's just my thoughts on trying to let the family loose on such a system, never mind a business where the users don't know or care..)

Back to top
 
 
IP Logged
 
baconbuttie
Newbie
*
Offline



Posts: 4
Re: API available ?
Reply #5 - Sep 11th, 2007 at 6:49am
 
DaveM wrote on Sep 10th, 2007 at 4:43pm:
Could you make use of the WAP interface ???  Undecided

Dave, I could to maybe save some bandwidth, but it's still scraping and gives more possibility for error.

irrelevant wrote on Sep 10th, 2007 at 11:27pm:
What would be better is to use a DNS based API that is compatible with the likes of e164.org, or any of the other similar sites, that translate phone numbers, in their case mainly into VOIP addresses (to avoid the PSTN completly for known numbers).  This means it's immediately available to multiple PBXs and soft phones, as they already cope with this method of lookups. I notice they also have a NGN translation facility...

I did look at e164.org as I already use that sometimes for a lookup, but I must have missed the NGN section ! I'd dismissed it anyway as the number verification would mean I could never get the PIN code issued on submission/testing.

irrelevant wrote on Sep 10th, 2007 at 11:27pm:
Depending on your PABX, and with a bit of coding, you might be able to set up a voice anouncement on doing a translation "We are trying a geographic alternative to the number you dialed, press hash if this fails to work, and we'll redial the number you gave..." or something similar, but I think you'll still end up confusing people.  Yes, it's a great idea if it works, but I can see it being a nightmare when it doesn't.


The PBX is usually Asterisk (or similar), so "coding" is as simple as
Code:
exten => _08X.,1,Playback(ngn_lookup.gsm) ; Play our "we're looking for an alternative ..."
exten => _08X.,n,AGI(lookup_ngn.pl|${EXTEN}) ; Actually do the lookup, return ${EXTEN} if none found
exten => _08X.,n,Dial(${TRUNK}/${NEWEXTEN}|${TIMEOUT}|${DIALOPTIONS}) ; Dial with it !
exten => _08X.,n,Hangup() ; All done, hangup
 


as a quick and dirty example !

I know what you mean about users, that's why the confidence level being returned as part of the data would help ... a site with less-savvy users could require a higher confidence level to help limit the number of dead calls.

For example, I have an client that spends hours every day talking to tax offices using 08XX numbers. But geographic calls are almost free. The cost difference means hundreds every quarter. They'll happily pay a monthly licence fee to reduce that, I could do it (establish a db) myself but don't really want to re-invent the wheel.
Back to top
 
 
IP Logged
 
mysomicra
Newbie
*
Offline



Posts: 3
Re: API available ?
Reply #6 - Sep 11th, 2007 at 2:46pm
 
Yes, I strongly concurr with backonbuttie and think an API is an excellent idea. I would propose doing this in both SOAP request/response and url request / XML document response.

The fact that a feedback mechanism could also be implemented would be a definite boon in that a confidence score could then be easily calculated on the numbers in the database for which feedback was recieved.

Back to top
 
 
IP Logged
 
baconbuttie
Newbie
*
Offline



Posts: 4
Re: API available ?
Reply #7 - Sep 29th, 2007 at 7:41am
 
baconbuttie wrote on Sep 10th, 2007 at 9:39am:
Is there any chance of having some kind of API available ?

I guess that's a no then :question
Back to top
 
 
IP Logged
 
jgxenite
Supreme Member
*****
Offline


Help us to help you -
read the instructions!!

Posts: 1,454
Gender: male
Re: API available ?
Reply #8 - Sep 29th, 2007 at 3:51pm
 
I wouldn't hold your breath. When it comes to answering requests regarding numbers, people are very quick to answer - unfortunately the same cannot be said for site enquiries. I know because I've already made a number of suggestions that haven't been responded to.
Back to top
 

I don't mind helping you with your request as long as you read the instructions!
 
IP Logged
 
Forum Admin
YaBB Administrator
*****
Offline



Posts: 374
Gender: male
Re: API available ?
Reply #9 - Sep 29th, 2007 at 6:02pm
 
Apologies for the delay in getting back to this post.

I am currently working on a WAP interface to the site, which is taking longer than originally expected.

After this has been completed, I will be able to look into API and how and if it can be implemented.

Thanks
Daniel (Forum Admin)
Back to top
 

Check Out the main website at http://www.saynoto0870.com
WWW  
IP Logged
 
jgxenite
Supreme Member
*****
Offline


Help us to help you -
read the instructions!!

Posts: 1,454
Gender: male
Re: API available ?
Reply #10 - Sep 29th, 2007 at 6:05pm
 
Daniel,

Cheers for your reply

# Off subject comments removed. Already passed to admin ~ DaveM
Back to top
« Last Edit: Sep 29th, 2007 at 9:47pm by DaveM »  

I don't mind helping you with your request as long as you read the instructions!
 
IP Logged
 
binarybee
Newbie
*
Offline



Posts: 5
Re: API available ?
Reply #11 - Jul 15th, 2008 at 10:15pm
 
I wondered if there has been any movement on this? Is work on an API still in the pipeline?
Back to top
 
 
IP Logged
 
unknowndomain
Newbie
*
Offline



Posts: 21
UK
Gender: male
Re: API available ?
Reply #12 - Aug 2nd, 2008 at 3:59pm
 
Would be nice to see a proper API or at least get permission for a screen scraper.
Back to top
 
unknowndomain  
IP Logged
 
ravravrav
Newbie
*
Offline



Posts: 2
Re: API available ?
Reply #13 - Dec 9th, 2008 at 6:06pm
 
Just wondered - what's a screen scraper?
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print
(Moderators: CJT-80, Dave, Forum Admin, DaveM, bbb_uk)

Website and Content © 1999-2024 SAYNOTO0870.COM. All Rights Reserved. (DE)
Written permission is required to duplicate any of the content within this site.

WARNING: This is an open forum, posts are NOT endorsed by SAYNOTO0870.COM,
please exercise due caution when acting on any info from here.


SAYNOTO0870.COM » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.


Valid RSS Valid XHTML Valid CSS Powered by Perl Source Forge