port data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sweetissoar
    New Member
    • Dec 2006
    • 2

    port data

    Hi
    I was wondering if somebody could help me figure out a problem I was having. I am trying to access a device(telphone ) on port 8000 so that when ever a call comes in the phone would send the data of the person calling over to the computer. the ethernet line is connected to the telephone and then the line comes from the telephone into the computer. there are applications out there that do that for example for Mitel phones there is an aplication "Your Assistant" that does something like I want to impliment.
    My problem is I don't know how to read the data on a continous basis from the telephone.
    Is there any way that somebody could help me figure this out. I need to program this in PHP and i am a newbie in PHP.
    Thanks
  • b1randon
    Recognized Expert New Member
    • Dec 2006
    • 171

    #2
    Originally posted by sweetissoar
    Hi
    I was wondering if somebody could help me figure out a problem I was having. I am trying to access a device(telphone ) on port 8000 so that when ever a call comes in the phone would send the data of the person calling over to the computer. the ethernet line is connected to the telephone and then the line comes from the telephone into the computer. there are applications out there that do that for example for Mitel phones there is an aplication "Your Assistant" that does something like I want to impliment.
    My problem is I don't know how to read the data on a continous basis from the telephone.
    Is there any way that somebody could help me figure this out. I need to program this in PHP and i am a newbie in PHP.
    Thanks
    You need to include WAYYYYY more information. You should start by checking out the phone manual. Provide details once you do that.

    Comment

    • sweetissoar
      New Member
      • Dec 2006
      • 2

      #3
      I have checked out the phone manual and it just tells me how to operate the phone like for example how to make a call or how to conference a call. In our office we are using the Mitel 5200 series and the Server is the Mitel 3300.
      I even tried calling Mitel and they are not ready to disclose any information all they say is contact the dealer who provided the phones. When I contacted the dealer they told me they have no idea how to solve my problem.
      All our computers have "Your Assistant" installed in them and what this application does is that when ever a call comes if pops up a samll window showing that whose calling and whether "to pick the call", "hang up", "confernece " or "transfer" and depending on the button you press it sends the respective command to teh phone.
      So what I want to do is whenthe phone is sending hte command to the computer to recieve the data and then query that information into our database so whenever a customer calls the application that I am trying to create will open up the customers account, thus saving time on both the customers and the call center representatives .
      I have an application installed that shows all the ports that are being listened by all the applications and the IP address its listening. so I figured out that "Your Assistant" listens to port 8000 to the IP address 192.168.1.2 .
      All I have accomplished till now is the connection to the port. but I have no Idea how to read the data.
      this is the code I am using for the connection, feel free to correct me
      [PHP]$fp = pfsockopen($hos t, $port, &$err_no, &$err_msg, 10)or die ("Could not open a connection to host <i>$host</i> on port <i>$port</i>. The error message returned was '<i>$err_msg</i>'.");
      echo "A persistent connection to host <i>$host</i> on port <i>$port</i> was successfully opened.";[/PHP]

      It will be a great help if anybody could help me. and Once again I want to write this code in PHP.
      Thanks
      Raiqah

      Comment

      Working...