|
|
API
|
We own the unique core technology VAVCS.
We have created VAVCS communication service agreement,shich is the basic of VAVAA global telecom. |
|
|
|
|
| |
 |
API |
 |
|
Web call javaScript code of TalkCentrex
Web call means start calling by clicking web link.
There is a control named headchatx.ocx in the software bag of
TalkCentrex. When you download TalkCentrex, this control is installed in
the computer. You can add the following codes at the beginning
of the web.
<SCRIPT LANGUAGE="JavaScript">
function TalkCentrex_command( cmd )
{
about = TalkCentrex.about ;
if( about == null )
{
location = "...." ;
}
else
{
TalkCentrex.command( cmd ) ;
}
}
<object classid="clsid:E59FA478-0535-43E6-BE12-1D6E75512C3B"
id="TalkCentrex" width="1" height="1" >
</object>
OK, the preparation has been done. You can use the function
TalkCentrex_command anywhere on the web.
Take <a href="javascript:TalkCentrex_command( 'chat?839123xxxxx'
)">chat: 839123xxxxx</a> for example : which means starting
calling to 839123xxxxx.
Call C code of TalkCentrex
C/C++ program can communicate with others through"TalkCentrex"
control component, following is scripture
#include <ole2.h>
void TalkCentrex_command( BSTR cmd )
{
const GUID CLSID_TalkCentrex = {0xE59FA478, 0x0535, 0x43E6,{ 0xBE,
0x12, 0x1D, 0x6E, 0x75, 0x51, 0x2C, 0x3B} };
HRESULT hr;
IDispatch* pIDispatch ;
DISPID dispid ;
OLECHAR* func = L"command";
DISPPARAMS funcparams ;
VARIANTARG vcmd ;
vcmd.vt = VT_BSTR;
vcmd.bstrVal = cmd;
funcparams.rgvarg = &vcmd;
funcparams.cArgs = 1;
funcparams.cNamedArgs = 0;
hr = ::CoInitialize( NULL );
if( FAILED( hr ) ) return ;
hr = ::CoCreateInstance( CLSID_TalkCentrex, NULL,
CLSCTX_INPROC_SERVER, IID_IDispatch, (void**)&pIDispatch ) ;
if( FAILED( hr ) ) return ;
hr = pIDispatch->GetIDsOfNames(IID_NULL, &func, 1,
LOCALE_SYSTEM_DEFAULT, &dispid ) ;
// if( FAILED( hr ) ) return ;
hr = pIDispatch->Invoke(dispid, IID_NULL, LOCALE_SYSTEM_DEFAULT,
DISPATCH_METHOD, &funcparams, NULL, NULL, NULL) ;
pIDispatch -> Release();
}
Example for calling this function: (start calling to VAVAA number 800830xxxxx )
BSTR cmd( L"chat?800830xxxxx" );
TalkCentrex_command( cmd ) ;
Call C code of VAVAA
your c/c++ program can call "head call" control component to
start calling others like what IE does , the following is
scripture.
#include <ole2.h>
void VAVAA_command( BSTR cmd )
{
const GUID CLSID_VAVAA = {0x8A3D3492, 0x5E6A, 0x4FAA,{ 0xBF,
0x81, 0x7A, 0xB7, 0x16, 0x19, 0x63, 0x21} };
HRESULT hr;
IDispatch* pIDispatch ;
DISPID dispid ;
OLECHAR* func = L"command";
DISPPARAMS funcparams ;
VARIANTARG vcmd ;
vcmd.vt = VT_BSTR;
vcmd.bstrVal = cmd;
funcparams.rgvarg = &vcmd;
funcparams.cArgs = 1;
funcparams.cNamedArgs = 0;
hr = ::CoInitialize( NULL );
if( FAILED( hr ) ) return ;
hr = ::CoCreateInstance( CLSID_VAVAA, NULL,
CLSCTX_INPROC_SERVER, IID_IDispatch, (void**)&pIDispatch ) ;
if( FAILED( hr ) ) return ;
hr = pIDispatch->GetIDsOfNames(IID_NULL, &func, 1,
LOCALE_SYSTEM_DEFAULT, &dispid ) ;
// if( FAILED( hr ) ) return ;
hr = pIDispatch->Invoke(dispid, IID_NULL, LOCALE_SYSTEM_DEFAULT,
DISPATCH_METHOD, &funcparams, NULL, NULL, NULL) ;
pIDispatch -> Release();
}
Example for calling this function: (call : 800830xxxxx )
BSTR cmd( L"dial?800830xxxxx" );
VAVAA_command( cmd ) ;
Web call JavaScript code of VAVAA
Web call means starting calling by clicking web link instead of
dialing. Technically, it's a simple function, which makes people
feel the advancement of technology and makes our life easier and
convenient .
There is a control component named vavaax.ocx in the VAVAA
software bag. When you download VAVAA, the control component
is installed in your computer. You can add the following codes
at the beginning of the web
<SCRIPT LANGUAGE="JavaScript">
function VAVAA_command( cmd )
{
about = VAVAA.about ;
if( about == null )
{
location = "http://www.VAVAA.com/xdownload" ;
}
else
{
VAVAA.command( cmd ) ;
}
}
</SCRIPT>
<object classid="clsid:8A3D3492-5E6A-4FAA-BF81-7AB716196321"
id="VAVAA" width="1" height="1" >
</object>
You can modify the download guide .
If the set the location as location =
http://www.vavaa.com/download/headsetup.exe, it's a sudden
surprise to the one who click the web link. You should tell the
ones who click the web link that they should download VAVAA
software first , that's why it turns to the download page .
OK, the preparation has done. You can use the function
VAVAA_command anywhere on the web.
Take <a href="javascript:vavaa_command( 'dial?839123xxxxx' )"for
example , which means start calling to 839123xxxxx
Call VB code of VAVAA
Call VAVAA control component to start calling with VAVAA
user.
The following is a demonstration of VB 6:
add the quotation VAVAAX Library. Put a button Command1 on
Form1, and add the following code
Dim VAVAA As VAVAA
Private Sub Form_Load()
Set VAVAA = New VAVAA
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set VAVAA = Nothing
End Sub
Private Sub Command1_Click()
VAVAA.Command ("dial?800830xxxxx")
End Sub
Call VB code of TalkCentrex
Call VAVAA control component to start calling with TalkCentrex
user.
The following is a demonstration of VB 6:
add the quotation VAVAAX Library. Put a button Command1 on
Form1, and add the following code
Dim TalkCentrex As headchat
Private Sub Form_Load()
Set TalkCentrex = New headchat
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set TalkCentrex = Nothing
End Sub
Private Sub Command1_Click()
TalkCentrex.Command ("chat?800830xxxxx")
End Sub |
|
| |
|