bcoffin Posted August 22, 2007 Share Posted August 22, 2007 https://developer.skype.com/Docs/Skype4COMLib/Call_php Seems to let you make a call directly from your web application, communicating with your local client? I'd love to see examples of this in production or suggestions about how to implement.. Quote Link to comment Share on other sites More sharing options...
bcoffin Posted August 22, 2007 Author Share Posted August 22, 2007 I got moved to Misc (where this does actually seem more appropriate, thanks), and am hoping to integrate skype4com into my web application (php5) to trigger/place calls using a locally installed skype client. Ideas? Quote Link to comment Share on other sites More sharing options...
bcoffin Posted August 22, 2007 Author Share Posted August 22, 2007 BTW.. i just learned that skype4com/web is only available for WIN, not *nix yet. So I guess I'll sit tight. Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 22, 2007 Share Posted August 22, 2007 I have written a few php scripts for it, using a local windows machine, but most of my development with skype4com as been via javascript. That should be pretty much straight forward to setup. What I would do is setup mysql on the local machine with remote access for your site. Then I would write a script that would check the db for call requests or whatever it is that you are doing with it. You would want to setup a scheduled process, basically windows version of cron, to run your script every x minutes or seconds.. Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 22, 2007 Share Posted August 22, 2007 If you are familiar with python you could use Skype4Py. This works on both windows and nix systems. Quote Link to comment Share on other sites More sharing options...
bcoffin Posted August 23, 2007 Author Share Posted August 23, 2007 Rats.. I don't know the first thing about Python. Are you able to communicate with local (win,etc) skype clients to dial numbers and such? Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 23, 2007 Share Posted August 23, 2007 Are you able to communicate with local (win,etc) skype clients to dial numbers and such? I didn't really understand that but yes I have been able to have skype dial numbers via javascript,php and python. Here is a simple example I just wrote for you using javascript. It is a bit of a mess but if you browse the source I think it will give you a decent place to start. http://tomfmason.com/projects/skype.html <--- Must be viewed in IE 6+ Quote Link to comment Share on other sites More sharing options...
bcoffin Posted August 23, 2007 Author Share Posted August 23, 2007 I'm seeing "Failed to load Skype4COM control." at the top of the page, and a JS error saying: Line: 23 Char: 4 Error: 'Skype' is undefined using WINXP IE v6.0.2900.2180.xpsp_sp2_gdr.070227-2254 Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 23, 2007 Share Posted August 23, 2007 That is odd as I am using the same version of Ie. Did you allow it to access skype? Did you even get the prompt to allow my site to access skype? Quote Link to comment Share on other sites More sharing options...
bcoffin Posted August 23, 2007 Author Share Posted August 23, 2007 No, sorry, Tom. Never saw the prompt. Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 23, 2007 Share Posted August 23, 2007 What version of skype do you have? I have tested it on my end and it works perfectly. I am using skype version 3.5.202 Quote Link to comment Share on other sites More sharing options...
bcoffin Posted August 23, 2007 Author Share Posted August 23, 2007 2.5.0.151 i can upgrade tomorrow and report, if you like. Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 23, 2007 Share Posted August 23, 2007 Yeah it don't really matter. You can if you want... As I said I wrote that as a quick example of what you can do with skype via js. Once you upgrade your version of skype to one that supports skype4Com, give it another shot. Browse the source, check out the skype4com docs and play around with it. It is not really that complicated. Also, if you have any questions you can post them here or in the skype forums. If it is js related I bet it will either be me or theuberoverlord that answer it. Quote Link to comment Share on other sites More sharing options...
bcoffin Posted August 23, 2007 Author Share Posted August 23, 2007 Hoooray! It seems to work just fine! Thanks, Tom. I've gotta checkout the Skype4Py to see if i can get this talking to my linux server. But very very cool. Quote Link to comment Share on other sites More sharing options...
Azu Posted August 23, 2007 Share Posted August 23, 2007 I don't get it.. isn't Skype a voice messenger? How would a PHP script communicate through it? Does it have some kind of voice synthesizer? Quote Link to comment Share on other sites More sharing options...
bcoffin Posted August 23, 2007 Author Share Posted August 23, 2007 Tom's js just initiates a call using a local/installed client. Which apparently must be the current release. Quote Link to comment 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.