How to make a call to Telephone by TAPI? - php

I need to design an API that enables phone number, when clicked, make a call via TAPI system. How should it be achieved via Programming?
I am using CakePHP application. Also, the user needs to enable Call in Desktops, mobile and Tablets. Is there any apis available for such Interfacing?
I tried using:
Call 800-555-0199
But I got the following error in firefox:
The address wasn't understood
Firefox doesn't know how to open this address, because one of the following protocols (tel) isn't associated with any program or is not allowed in this context.

You can't.
TAPI is not an applicable technology here. It is only available to Windows desktop applications, and can only be used there to control voice modems and PBX systems. As such, it is not usable even on most Windows desktop systems, as they are not connected to the appropriate phone hardware. It is certainly not usable in a web page, or in a CakePHP application.
The only generally available way to initiate a telephone call from a web page is by creating a tel: link, e.g.
Call 800-555-0199
Keep in mind that this will still only work on devices that have some sort of access to the telephone network, either directly, e.g. on cell phones, or indirectly, e.g. via Skype or other VOIP applications.

Related

How to implement file sharing for mobile app over wireless network

I’m developing an app using Adobe Air. I want my users to be able to transfer files from a computer into the internal storage of the mobile app, but over a wireless router.
Question:
How to operate like a web server using my AIR app (turn the current smartphone into a web server)? I want run server-side scripts like PHP from device.
When the smart phone and the desktop (Mac/PC) are connected to the same wi-fi network, each one has an IP address like 192.168.1.xxx. Using the app, a PHP script will handle the file upload operation.
I am open to other (more correct or efficient) methods about transferring files between two devices, since the PHP way might be only solving an X/Y problem.
You could leverage the Adobe Cirrus technology (and you won't need any PHP).
Using Cirrus, you can create the functionality that you describe even if the devices are not on the same WiFi network (having in mind both the PC and the mobile device are running AIR applications). AIR is needed on the PC side in order to be able to access the files without user intervention. You won't enter the IP in order to link the PC app with the mobile app, although you'll need to provide the address received from the Cirrus service.
It is not trivial to write and test the apps, but they're definitely doable.
At the link above you should find all the info and resources in order to get started including how to get a developer key, an overview of RTMFP Groups and a sample app.

How load PHP website on the iPad simulator or device?

I have one .php web site and I want to put it in iPad application "web application".
I mean create UIWebView and load files in WebView, so my First question is, is it possible to create this webApp and can I run it on Xcode simulator?
What do I need for implementing this application (Apache, MySQL) inside ipad outside?
Basically I want to have all my .php class inside of app and run it via iPad app, it means that if I hadn't any internet I can run the application.
Since I want to run it in both iPad and XCode simulator.
Would you please give me some hints for implement this application?
A few points you need to think about:
App Store Approval - if you intend to market this app (i.e it's not for jailbroken devices via Cydia, or an in-house corporate app) then you will most likely run in to issues with the approval process.*
You're intending to bundle in a scripting language with your application. Now this may not be an issue depending on whether or not this is exposed to the end-user; but you do run the risk of Apple finding out and pulling the plug.
The alternative to bundling in a scripting language (PHP in your case) is going to be loading the code off of an external server. This is a no-no straight away, as Apple requires your application to have functionality offline - or atleast they did. Where this leaves all the Social Networking and other network-dependant apps... Well, I guess there are exceptions!
Device Performance - you're essentially intending to run a small web server on a mobile device; a tablet in this case. This could be very resource intensive, so is probably not wise. I personally wouldn't want my battery being drained because someone has decided that they want to bundle in a web server with their application.
Your implementation idea itself is sound, in the respect of using a UIWebView. You should probably check out the Apache Cordova/PhoneGap framework, and that should satisfy your needs and provide an off-the-shelf way of packaging up your web app. If you do need custom functionality then it's worth looking at anyway; plugins are relatively easy to develop, there's a wide range available already and the plans for cordova now are to allow developers to implement it into native applications. (Say, if only one view requires PhoneGap functionality etc)
Personally, I fail to see what requires PHP that can not be done via HTML5 and PhoneGap. There are storage options available, SQL options, you're using web technologies so can easily query external web services. It's also a lot safer with regards to app approval - as it's tried and tested; there are many applications build using such solutions already in the store.
I think you need a serious re-think. Otherwise, perhaps you could post some more details?
Please note that PHP is a server-side language. So do you want to run a server on your iPad? If so, you can develop PHP applications on a proper desktop/laptop and then view them on iPad Safari browser over Wifi.
Otherwise you can install LightHTTPd server with PHP libraries, MySQL, CURL and all from Cydia app store on a jailbroken iOS device to get a full environment. For Android there is this app PAW server available which can run an Apache server in such devices.
If you just want to check your website is working fine on small devices, or you want to check responsiveness of your website. Go to:Ipad Peek and run your website on given devices/simulators using url.
A simple google search pulled up this free framework: http://www.ipfaces.org/
I've never used to before, but it might do what you need.

PHP web application + TAPI / VOIP telephone calls?

A client wants to use our (ERP) web application as some kind of incoming and outgoing calling software. He needs phonenumer recognition and to be able to dial a number by clicking with the mouse and then pick up his phone.
Somehow a TAPI or VOIP connection must be made on the clients computer, I think... for this I could create a small listener/dialer program (not in PHP, but in Delphi for example) that is installed on each client,but how would I let this communicate with the browser / web server?
Another way could be by installing our web application on the server of the client itself, which has a direct link to the telephone software server.
Has anybody ever done something like this in PHP ?
Any suggestions?
Is your ERP software written in php? You may want to integrate with Asterisk (and open source pbx) (and by extension FreePBX if your in php anyway)
I came across this site www.tropo.com which has an API that adds Voice and SMS support to PHP and other languages.

Sending MP3 over the internet to a phone via GSM

How do i send an MP3 file to a mobile phone directly from the internet over a GSM network, Will love to implement this using PHP, every response will be appreciated. Thank you.
Afaik, you need to use a Content Delivery Platform of a GSM provider for this.
I remember researching this a couple years back when mobile content, especially ringtones, had been all the rage. Things might have changed since then (especially with phones having WiFi access), but you had to have a contract with someone that actually has access to the GSM network to send the mobile content to cellphones.
You'd then use this providers API to manage your content and to send it to devices. For instance for the german Deutsche Telekom, there is a Zend_Service package that allows you to use some of their telecommunication services (for a charge). This particular one doesn't allow sending of digital content like MMS or MP3s, but it might given you an idea what to look for.
Edit: try googling for MMS Gateway and check with your country's GSM providers
directly from the internet over a GSM network
GSM is a low level network protocol, while it is possible to write a stream directly to a port on the device (yes, it uses ports, just like IP) or even compose individual packets, this pre-supposes that you have access to a gateway device in order to do this from an IP connected device. Why bother? It'd be really hard to find a phone which does not support WAP or iMode made in the last 10 years - and there is already an infrastructure and protocols in place to map the internet into the mobile networks (regardless if they are GSM, GPRS, Edge...).
And of course, unlike using a browser on your PC, the WAP protocol allows for push notifications - but this requires the services of a wap gateway (e.g. Kannel) rather than just a simple website.
This would deliver the content as a file if you want to stream audio over a telephone conversation - that's something different. Have a look at VOIP/PBX systems e.g. Asterisk
From the comments I am guessing you want to exchange sound files between two people, one on an ordinary Internet connection, the other on GSM. Or else you could just design a mobile-friendly web site where GSM/GPRS users can download their music.
Under this assumption, XMPP (a.k.a Jabber) might be a solution.There are even XMPP libraries for JavaME and most certainly for iPhone and Android. Of course, both users must have an active Internet connection.

how can i call from my website to mobile or landline phones. (in PHP,Flash, ..)

I wish to call from mywebsite to mobile phone, how do i implement in PHP or Flash.
Is it possible in PHP, flash, or any other technologies.
I'd take a look at Ribbit - http://www.ribbit.com/
I'm not sure exactly what your requirements are but they have an API that will let you make a call from Flash through their system.
They've got both PHP and Flash APIs - http://developer.ribbit.com/
=Ryan ryan#adobe.com
In order to place a call on a phone from a computer, you either need to:
have a duplex modem installed on the server
use a service with an API allowing to place calls
The first option in this case is impractical as it would only mean that you would only be able to place one call at the time. (Well, if you have X modems, each with its own line, you'll be able to place X simultaneous calls)
Therefore, you need to connect to a service providing an API to place calls. Such services isn't free and charge per call. Examples: Skype, Twilio.
I have no experience with the second option and therefore cannot give you further input on the subject. Do some research and choose a service which fits your needs.
Your best bet is to look at an API for VOIP. There is an API for Skype https://developer.skype.com/ which might be a good solution. Andrew is right about using a modem, it isn't going to scale very well.

Categories