SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Member
    Join Date
    Aug 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to create phone dialer

    hi
    I wrote a phonebook project for my collge with php
    is it possible to make the phone numbers clickable so when I click them the system dial the number?
    is it possible using java..php ?
    thanks

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,617
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    You might be able to do a clickable skype link, but that's about the extent of it as far as I'm aware. You have to have software installed that has VoIP capibilities (and there's no guarantee that the visitor does), then a way for it to accept link clicks formatted specifically for the software (not all VoIP software allows this)

    The most common method is to just list the phone number, and any other information (such as AIM SN, Skype SN, Y! SN, etc)
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Got to admit though, that'd still be cool if PHP could talk to some kind of dialer, there used to be a tool like that in windows accessories.

  4. #4
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,617
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    PHP is server-side, remember. The visitor never sees that code.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  5. #5
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    I was thinking of my localhost, my dev server, the one I work on.

  6. #6
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,617
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    heh

    That might get out of control very quickly..having visitors hit your site and make your server start dialing out
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  7. #7
    SitePoint Wizard
    Join Date
    Mar 2008
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The client would need a modem that supported it and was hooked up to the phone line. Maybe this was more feasible 10 years ago, but not anymore.

    Plus, more people prefer their cellphone these days, and some don't even subscribe to a landline phone service anymore.

    Services that let you dial a number on a click call you, and then connect to you to the number.

  8. #8
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You could connect a device to the server then use a COM port to send AT commands, but you would need to add a queuing system to manage the device properly.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  9. #9
    SitePoint Guru bronze trophy TomB's Avatar
    Join Date
    Oct 2005
    Location
    Milton Keynes, UK
    Posts
    996
    Mentioned
    9 Post(s)
    Tagged
    2 Thread(s)
    Best way nowadays would be to connect to a mobile with bluetooth and using that to dial out... of course as far as i'm aware you'd need to write a PHP extension to allow for bluetooth communication in PHP.

    If you're using a PC with a modem, you still have the same problem, you need some way of accessing native code for php to communicate with the modem, the easiest of which being an extension.

  10. #10
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    How about some text-to-speech thing then? Then it could talk to my mobile phone.

    Wait, that's silly, I may as well talk to it myself.

  11. #11
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,559
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    Gizmo5 do a phone dialler within a web page (i.e if you have a microphone, you can dial and call a number right from within a web page). It's a flash swf that connects to their backend voip service. Ribbit can also do the same, but you get lower level control (i.e you can use their framework to integrate with your own front-end swf). If you want php to manipulate calls/IVR then check out Twilio or voxeo/tropo.

  12. #12
    SitePoint Zealot
    Join Date
    Aug 2009
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually it is possible to DIY web calling with PHP and SIP phone, see this tutorial


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •