开发者

dial a number via modem in php [closed]

开发者 https://www.devze.com 2023-01-27 15:13 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, v开发者_JAVA技巧ague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.
It's difficult to tell what is being asked here. This question is ambiguous, v开发者_JAVA技巧ague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

how can i dial a number via modem in php. and when the phone Answered play a audio stream file.


IMO, Most straight-forward way (i.e., without doing a heck of a lot in PHP), assuming you're hosting the PHP file locally, would be to write a shell script that does the modem dialing / audio playing (Dependent upon OS), then call the shell script via exec in PHP.

http://php.net/manual/en/function.exec.php

Hope this helps -- and that you're not making a telemarketer autodialer that calls my cell-phone in the middle of dinner. :D

-æ.


You really don't want to attempt this using just PHP and a modem - I'm not saying its impossible, but it'd be very, very difficult and there are lots of tools which make it much simpler (but you can still invoke these tools using a PHP controller).

Regardless of whether you roll your own solution from scratch or use something else, how you even begin to solve the problem depends on the OS you are using, and the budget you have. The fact that you've made no mention of either and only tagged your question as 'php' makes me think you are already out of your depth.

But if you want to have a go....have a look at Asterisk.

0

精彩评论

暂无评论...
验证码 换一张
取 消