LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-11-2012, 08:25 AM   #1
shorif2000
LQ Newbie
 
Registered: Mar 2011
Posts: 13

Rep: Reputation: 0
PhP and tapi on linux


I believe COM does not work on linux and is only windows compatible. I have v5.3.8 php and I am trying to set up my php web application so that I can click on a phone number through a browser and it would dial it automatically. I am using splicecomm telephone system and software for the phones, they are ip based and use tapi.

Can anyone advise on how to do this?
 
Old 06-11-2012, 09:09 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by shorif2000 View Post
Can anyone advise on how to do this?
I'm sorry to say that with the information you have provided (not even a link to splicecomm's documentation), no-one can. And I have significant professional experience with both COM and TAPI programming.

Do keep in mind that if you want direct support with Splicecomm's products, then you should contact Splicecomm. And if you want the application written for you, then you should place a job ad. If you want neither, then we need more information (such as your code and the error messages it produces).

Last edited by dugan; 06-11-2012 at 09:19 AM.
 
Old 06-12-2012, 04:59 AM   #3
shorif2000
LQ Newbie
 
Registered: Mar 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dugan View Post
I'm sorry to say that with the information you have provided (not even a link to splicecomm's documentation), no-one can. And I have significant professional experience with both COM and TAPI programming.

Do keep in mind that if you want direct support with Splicecomm's products, then you should contact Splicecomm. And if you want the application written for you, then you should place a job ad. If you want neither, then we need more information (such as your code and the error messages it produces).
I am new to this and i wanted to develop this myself. I did ask splicecomm and they gave me pdf which has interface definitions. Can you advise on how I would start or what I would need to do?

I can email you a copy?
 
Old 06-12-2012, 09:14 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
No, you can't email me a copy. And I'm afraid that "how would I start or what I would need to do" a) is not answerable and b) should be apparent from the PDF.

Is it only the telephony part you're having trouble with, or do you also need help with, say, setting up and handling forms in PHP? Making the Splicecomm libraries available to your PHP installation?

Last edited by dugan; 06-12-2012 at 09:24 AM.
 
Old 06-13-2012, 04:16 AM   #5
shorif2000
LQ Newbie
 
Registered: Mar 2011
Posts: 13

Original Poster
Rep: Reputation: 0
This is what i currently have working, which I have set up following this link http://forums.sugarcrm.com/f5/window...-dialer-13080/

What I would like to do is not use any other external dialer and be able to call from webpage just by clicking on the phone number. I do not know how to make the Splicecomm libraries available to the PhP installation.

my current code
Code:
echo '
<tr>
<td>'.$ldapuser['displayname'][0].'</td>
<td>'.$ldapuser['mail'][0].'</td>
<td>Direct: <a href=\'callto:'. callTo($ldapuser['telephonenumber'][0]).'\'>'.$ldapuser['telephonenumber'][0].'</a>
Mobile: <a href=\'callto:'.callTo($ldapuser['mobile'][0]).'\'>'.$ldapuser['mobile'][0].'</a>
Extension: <a href=callto:'.$ldapuser['othertelephone'][0].'>'.$ldapuser['othertelephone'][0].'</td>
</tr>
';

function callTo($number){

$number = str_replace("+","00",$number);

//strip dashes


//check if internal users
// if not internal users return #

return $number
}
vbscript
Code:
dim phone, param, plen
param = WScript.Arguments.Item(0)
plen = len(param)-7
phone = right(param,plen)
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("\\pan\temp\Sharif\DialV4\dial.exe " & phone)

Last edited by shorif2000; 06-13-2012 at 04:19 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux PHP and TAPI Mr_Munkey Programming 3 06-11-2012 09:10 AM
limited php libraries/ modules for php linux Niceman2005 Linux - Software 0 03-11-2009 07:29 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration