3CX phone systems with PHP

Discussion in '3CX Phone System - General' started by frobak, Dec 3, 2014.

Thread Status:
Not open for further replies.
  1. frobak

    Joined:
    Dec 3, 2014
    Messages:
    3
    Likes Received:
    0
    Is it possible to integrate 3cX systems with a PHP applications

    Specifically, when the phone rings, i need to grab the caller id/number, get that into PHP, and then process it within the application.

    Is there any documentation on this sort of thing?

    Do you even think this is possible?

    Thanks
     
  2. jasit

    jasit New Member

    Joined:
    Feb 12, 2013
    Messages:
    171
    Likes Received:
    1
    check if your phones have action url, when you say get into php, I am assuming you need to send something to a webserver.

    the yealink phones do, just not sure about yours.
    jasit
     
  3. frobak

    Joined:
    Dec 3, 2014
    Messages:
    3
    Likes Received:
    0
    Hi Yes, the phones are Yealink T46GN, is there any documentation, tutorials that you're aware of?
     
  4. craigreilly

    craigreilly Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    3,416
    Likes Received:
    277
    I found it was easier with the 3cx Phone for Windows to launch an external application when the phone rang.
    I could not find a way to get the inbound caller id on the device.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. jasit

    jasit New Member

    Joined:
    Feb 12, 2013
    Messages:
    171
    Likes Received:
    1
    K, a quick google and a quick test,

    here is some of the settings.

    so on the phone, under Action URL Incoming Call
    http://ipaddress of webserver/somefile.php?device=$mac&local=$local&remote=$remote&displayremote=$display_remote



    then make a phone call to that extension, and after you hang up go check the log files on the webserver, you should see the following

    2014-12-03 22:11:57 192.168.0.99 GET /somefile.php device=00:15:65:3e:5a:de&local=sip:2254%40192.168.0.90&remote=sip:2045551212%40192.168.0.90&displayremote=2045551212 80 - 192.168.0.199 Yealink+SIP-T38G++38.70.1.26+00:15:65:3e:5a - 404 0 2 0



    I found this http://www.sustworks.com/pa_guide/genericNotification.html
     
  6. frobak

    Joined:
    Dec 3, 2014
    Messages:
    3
    Likes Received:
    0
    Brilliant, thanks for your help. I'll be testing this over the next few days so will report how I get on.

    Thanks
     
Thread Status:
Not open for further replies.