PDA

View Full Version : calling the QCM



altasys
09-13-2006, 01:22 PM
Would it/could it be possible to call the QCM passing it a phone no. to auto-dial ??


ie. the eyebeam softphone can be called thus:
C:Program Filesengin eyeBeameyeBeam.exe -dial=sip:X


where X is a phone no. In this way the softphonepops up and autodials the no. X


Very handy for interfacing custom written s'ware with a softphone

ArthurB
09-14-2006, 09:03 PM
Sure, the QCM is a COM object registered in Windows, and you can easily make a call using one of the followin methods:

1. Using windows active scripting (Java)
Create new text file and name it "MakeCall.js" with following green text
function Main() { var Phone = new ActiveXObject("EpygiPhone.Application"); Phone.MakeCall("1236456"); } Main();
Save it and just doubleClick on "MakeCall.js" in windows explorer.
The "1236456" is a phone number.

2. Using windows active scripting (basic)
Create new text file MakeCall.vbs (as above)
Option Explicit Sub Main Dim Phone Set Phone = CreateObject("EpygiPhone.Application") Phone.MakeCall("1236456") End Sub Call Main

Save it and run as above

3. If you are using high level programming environments like MS Visual Studio, you can access to QCM via this CLSID {E8EBAF7C-CF91-4E31-BED2-68DBA7F74453}

Jason@lebenton
09-24-2006, 09:30 AM
I think Altasys is looking for a solution which can dynamically pass into a phone number. ArthurB's solution is hardcoded the phone number in the programm.

ArthurB
09-24-2006, 02:17 PM
For passing arguments to Script use the following:

Option ExplicitSub Main
Dim objArgs
Set objArgs = WScript.Arguments
Dim Phone if objArgs.Count > 0 then Set Phone = CreateObject("EpygiPhone.Application") Phone.MakeCall(objArgs(0) ) end ifEnd SubCall Main

And call it from command line like this:
MakeCall.vbs 12345


and the same for JS:
function Main(){ var objArgs; var objArgs = WScript.Arguments; if(objArgs.length > 0) { var Phone = new ActiveXObject("EpygiPhone.Application"); Phone.MakeCall(objArgs(0));&nb sp; }}Main();And call it from command line like this:

MakeCall.js 12345