Can i use phone api in PHP?

I need to know how can I connect my phone using php languages

+1


a source to share


6 answers


If you are referring to the Windows TAPI interface , take a look at the w32api PHP extension , which allows you to call Win32 API functions from PHP.



+3


a source


AFAIK you cannot use php to connect over phone lines. PHP is a scripting language. You can try Asterisk . There are questions about Asterisk dev on SO



0


a source


I would probably go with Erlang for this kind of thing, since that is where this language came from.

0


a source


Php theoretically provides the necessary functionality for this, but I don't know of any library that implements any VOIP protocols. And I really doubt you want to do that: PHP has a slow slow translator and the language was not designed for this kind of thing.

0


a source


It should be possible. However, there are a few caveats.

Php is platform independent but phone is apient. For example, TAPI (phone windows api) is COM based and will not work on Linux. There is probably also a phone api on linux.

For TAPI programming in PHP you can have a look here:

http://uk3.php.net/com for information on using COM api in PHP http://en.wikipedia.org/wiki/Telephony_Application_Programming_Interface information on TAPI

0


a source


Twilio is a web service that you can control from any language that can be hosted on a web server, including PHP. The question is unclear, but if you want to handle incoming and outgoing phone calls, they are a good solution.

Tropo is a similar service that also works with PHP; slightly different model, but still very easy to implement.

0


a source







All Articles