Noor Khan
Noor Khan

Reputation: 520

Can i use telephone api in PHP?

i need to know how can i connect telephone using php languages

Upvotes: 1

Views: 3687

Answers (6)

Barnabas Kendall
Barnabas Kendall

Reputation: 4317

Twilio is a web service that you can control with any language that you can host 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 works with PHP too; slightly different model but still very easy to implement.

Upvotes: 0

soulmerge
soulmerge

Reputation: 75704

Php theoretically provides the necessary features for that, but I don't know any library implementing any VOIP protocols. And I really doubt you want to do that: PHP has a veery slow interpreter and the language was not designed for that kind of things.

Upvotes: 0

Mendelt
Mendelt

Reputation: 37483

It should be possible. There are a couple of caveats though.

Php is platform independent but telephone api's arent. For example TAPI (the windows telephone api) is COM based and won't work on linux. There is probably a telephone api on linux too.

For TAPI programming in PHP you can look here:

https://www.php.net/com for information on using COM api's in PHP http://en.wikipedia.org/wiki/Telephony_Application_Programming_Interface information about TAPI

Upvotes: 0

Tomalak
Tomalak

Reputation: 338148

If you refer to the Windows "TAPI" interface, have a look at the w32api PHP extension, which allows to call Win32 API functions from PHP.

Upvotes: 3

PatrikAkerstrand
PatrikAkerstrand

Reputation: 45721

I'd probably go with Erlang for this kind of stuff, since that is what the language originated from.

Upvotes: 0

Shoban
Shoban

Reputation: 23016

AFAIK you cannot use php to connect through telephone lines. PHP is a scripting language. You can try out Asterisk. There are questions about Asterisk dev in SO

Upvotes: 0

Related Questions