You can download the latest source from the new SVN repository here call.php and install it in your server or you can use the one installed on this server (do not abuse/missuse it). If the script is called without parameters it generates a form.
NEW: The call.php script has been updated to work again in the new Betamax system of 16/Oct/2008.
NEW FEATURE: The script gives error descriptions when the login fails. The other possible error messages that you can get are:
- "Login Error:": Error with the login. Description of the error comes after.
- "Failed": Login ok. The call could not be started
- "Not calling?": Login ok. The script succeeded setting the call but not getting the call status => maybe the call does not start
- "Calling!": The script succeed in starting the call and getting the call status => the call start
NEW FEATURE: In case of wrong or missing parameters, the script shows a form to enter or correct them. Therefore you can now call the script without parameters and enter them directly in the generated form (i.e. /call.php).
NEW: Miquéias Reale (Reale Tech) gave support to this project. Thanks to him, we have a SVN server and with it, it will be easier to update the scripts.
FEATURE: The script now retries to establish the call in case the Betamax server could not start the call because of server overload.
FEATURE: The script now controls and displays the call prices and also the remaining balance.
We created another script to send SMS using Betamax as well. You can also download here sms.php the source of the program to send SMS, at the cheap web price rates or even for free. It is also optimized for wap users. Instructions about how to use it are also inside. This sms.php script is not any more needed when using the new official way to send SMS (see below).
Another PHP script to start calls or send SMS using Betamax (and many many other things) is the one from Simon G.
Betamax communicated us a new official
way to send SMS (no to start calls): https://myaccount.smsdiscount.com/clx/sendsms.php?username=xxxxxxxxxx&password=xxxxxxxxxx&from=xxxxxxxxxx&to=xxxxxxxxxx&text=xxxxxxxxxx
Explanation of the variables: *username: your SMS Discount username *password: your SMS Discount password *from: your username or your verified phone number. Always use international format for the number starting with +, for instance +491701234567 *to:
the number you wish to send the sms to. Always use international format starting
with +, for instance +491701234567 *text: the message you want to send
You can download and use both the scripts, or you can use the ones installed on this server (again, please do not abuse/missuse it).
The script to make calls installed on this server is at this URL:
http://www.aldeaglobal.net/callserver/call.php
and an example of using it would be:
http://www.aldeaglobal.net/callserver/call.php?provider=justvoip.com&us=USER&ps=PASSWORD&tela=00496151000000&telb=0034938000000
The full Sintax is:
ttp://www.aldeaglobal.net/callserver/call.php?provider=justvoip.com&disp=0&default=0034&forcea=0034&forceb=0034&us=USER&ps=PASSWORD&tela=TELEPHONEA&telb=TELEPHONEB
The advantage of this script is that it works even form a mobile WAP connection, which makes it usefull to stablish the calls and call from a handy with the internet low rates.
It is also compatible (and recomendable) with WAP flat rates like o2flat or similiar, but all in all the generated traffic is really few, which paying per KB with GPRS is really cheap.
This script was thought to be called directly by the URL (to minimize the generated traffic and to be able to have the possible calls in the favorites or in a contact list with links), but you can call it directly and it will show a form. You can personalize this form with an example form like this one, or for the SMS.PHP script like this one.
A practical application to call cheap from a mobile phone automatically can be the following one (this is valid for any kind of mobile, not only PDAs):
Adding in the Web-Page field of the contact, not his/her web page, but the link to call him/her:

Then to call him/her automatically it is only needed to select the web page
instead of the telephone.
On this telephone the GPRS connection starts automatically:

and the web page opens automatically:

And after few seconds the telephone rings with the call.
Therefore with this script, if you store the right website on each of your most used contacts, you can call quickly, worldwide, without computer, from your your mobile and at cheap internet rates!!
You only have to select the contact and open its webpage.
Codi creat per M Minoves, tots els drets reservats. Sota llicència GNU/GPL però
per modificació o adaptació contactar amb l'autor.
Code created by M Minoves, All rights reserved. Under GNU/GPL licence but for
modification notificate the author.
www.aldeaglobal.net/callserver
Explanations are bilingual in catalan and english
SINTAXI DE LA URL ÉS LA SEGÜENT: / URL SINTAX IS AS FOLLOWS:
call.php?provider=justvoip.com&disp=1&default=0034&forcea=0034&forceb=0034&us=USER&ps=PASSWORD&tela=TELEPHONEA&telb=TELEPHONEB
Està instalat a / It is installed on:
http://www.aldeaglobal.net/callserver/call.php?provider=justvoip.com&disp=0&default=0034&forcea=0034&forceb=0034&us=USER&ps=PASSWORD&tela=TELEPHONEA&telb=TELEPHONEB
Un exemple senzill podria ser / A simplified example could be:
http://www.aldeaglobal.net/callserver/call.php?provider=justvoip.com&us=myusername&ps=mypassword&tela=00496151000000&telb=0034938550000
provider=justvoip.com Proveidor de Betamax / Betamax provider used ex: justvoip.com,
voipbusterpro.com, internetcalls.com ..
( Price comparision at http://backsla.sh/betamax )
freecall.com
internetcalls.com
justvoip.com
lowratevoip.com
netappel.fr
poivy.com
sipdiscount.com
sparvoip.de
voipbuster.com
voipbusterpro.com
voipcheap.co.uk
voipcheap.com
voipdiscount.com
voipstunt.com
webcalldirect.com
voicetrading.com
disp=1 Ensenya el header i el contingut de les pàgines que descarrega. / Show
the header and the content of the downloaded pages
server= Url del compte Betamax (No necessari) / Betamax account URL (Not needed)
ex. 'https://myaccount.justvoip.com'
default=0034 Si un número de telèfon no està en format internacional, assumeix
que aquest prefix / If one telephone number is not specified in the
international format, it assumes it will have as prefix
forcea=0034 Força un prefix als numeros / Forces the numbers to have one prefix
forceb=0034
us=USER Usuari i contrasenya / Account user and password
ps=PASSWORD
tela=TELEPHONEA Telèfon origen / Source telephone
telb=TELEPHONEB Telèfon destí / Destination telephone
// Installation notes on a server / Instal·lació avançada en
un servidor:
The only mainly server requirement is that you have to have installed the OpenSSL (i.e.: 0.9.7i 14 Oct 2005) in order to let the script login to the secure server. This means that your scripts can open secure https pages.
You do not need to have CURL installed for this script.
This script has been tested on a FreeBSD 4.10-RELEASE FreeBSD 4.10-RELEASE #5 with the PHP Version 4.4.4
It shouldn't be dependant on the version, but I have tried several PHP servers and some configurations did not work.
I managed to make it work on a PHP Version 4.3.4 on a Windows NT 6.0 build 6000 by commenting the whole BE3B section.
Betamax maybe checks the way the socket connections are performed in order to detect fake browsers (like this one), and
in that case applies automatically the logout method. If somebody knows another reason please tell me.
You are also free to use the already installed script on such a server at:
www.aldeaglobal.net/callserver/call.php
Which with all the sintax would be:
www.aldeaglobal.net/callserver/call.php?provider=justvoip.com&disp=0&default=0034&forcea=0034&forceb=0034&us=USER&ps=PASSWORD&tela=TELEPHONEA&telb=TELEPHONEB
Disclaimer:
I developed and published this script because I think it is not against any
agreement with Betamax.
In fact they should be aware that this is a promotion of people having/opening
accounts with them. It is a service that they could already offer, and that I
programmed for free for non lucrative personal interest.
If anybody thinks this goes against or it is illegal please contact me.
NEW: If you like this program you can give me a beer! All donations are voluntary. They are all welcome and they help me paying the server maintenance and buying time to keep updating.
You can also contact me here