tags:

views:

144

answers:

6

hi all

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

A: 

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

Shoban
thank you shoban
HeartDisk
A: 

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

PatrikAkerstrand
I initially down-voted this, but after reconsidering the question, I think you got it.
Mark W
A: 

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.

soulmerge
+2  A: 

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.

Tomalak
A: 

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:

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

Mendelt
A: 

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.

Barnabas Kendall