The Little Guy Posted August 18, 2008 Share Posted August 18, 2008 I was at Ebay, and if you don't log into your account for a period of time, they lock your account. To unlock your account you need to have them call you with an automated person, that gives you a 4 digit number. What happens is, you press "call now" or "call in one minute" then which ever one you select it calls your phone, which is saved. How do they do that, and how can I get php to use a phone? Quote Link to comment https://forums.phpfreaks.com/topic/120141-telephone-call/ Share on other sites More sharing options...
.josh Posted August 18, 2008 Share Posted August 18, 2008 Interesting. I don't know, but I think the first thing I would do is first have 10 sound files one for each single digit 0-9, have php generate a random 4 digit number, then dynamically make a new sound file with the 4 sound files. As far as getting php to actually dial a phone number and play the number: I really don't know, but I don't think php can go that far. My friend was messing around with automated messages etc.. for some kind of call center, through skype. If I remember correctly, he was using COM to interface with skype's program. I think. I'll tell him to look at the thread maybe he could give you further input. Quote Link to comment https://forums.phpfreaks.com/topic/120141-telephone-call/#findComment-618961 Share on other sites More sharing options...
tomfmason Posted August 18, 2008 Share Posted August 18, 2008 You can use asterisk and the agi interface. I have never done this with php but have done a lot of work with ruby/RoR and agi. There is a gem for ruby/RoR called ragi. Not sure how strong your ruby skills are but Ragi is extremely simple to work with and ties directly into a RoR application. Voip-info.org has some useful information regarding php and agi http://www.voip-info.org/tiki-index.php?page=Asterisk+AGI+php . There is a php agi class but the site seems to be down at the moment. Not sure what is up with that but the link is - http://phpagi.sourceforge.net/ Quote Link to comment https://forums.phpfreaks.com/topic/120141-telephone-call/#findComment-619117 Share on other sites More sharing options...
The Little Guy Posted August 19, 2008 Author Share Posted August 19, 2008 IM giving Asterisk a try, we will see... Quote Link to comment https://forums.phpfreaks.com/topic/120141-telephone-call/#findComment-619698 Share on other sites More sharing options...
Guest Xanza Posted August 19, 2008 Share Posted August 19, 2008 Tom basically covered it, but I'm sure if you have a friend with a SIP server then you should be able to make an API to interact with it fairly well, and alternatively asterisk will work also. Quote Link to comment https://forums.phpfreaks.com/topic/120141-telephone-call/#findComment-619747 Share on other sites More sharing options...
The Little Guy Posted August 19, 2008 Author Share Posted August 19, 2008 I couldn't get asterisk to work... Quote Link to comment https://forums.phpfreaks.com/topic/120141-telephone-call/#findComment-619765 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.