Toshiba CIX-AG-NP-VA User Manual

Page of 100
Open Architecture Interfaces
Command File Interface
70
Strata CIX Net Phone AG     04/08
Command File Interface
Net Phone also supports all of the above commands through a 'command file' interface 
so that programs that don't have DDE capabilities can send commands if they can 
simply create and write to a TXT file. The Net Phone monitors its "\REQ" 
subdirectory for command request files to appear with the filename <fname>.REQ or 
an <fname>.RER. It will then open the file and read one line for a command (in the 
format above), attempt to execute the command, and then delete the command file. 
For example, if you create a file called "MY_CMD.REQ" (in the "\REQ" 
subdirectory) that contains one line containing the text string:  DIAL, "496-9040”, Net 
Phone will detect this file and execute this command, dialing the phone number "496-
9040".
OLE / COM Interface
The TOSHIBA Net Phone also supports many of the above commands plus some 
additional commands through an "OLE interface" so programs that support OLE can 
call methods directly. 
In VBA script, the script code would look similar to the following example to 
"Answer" a call.
Dim ApNet As Object
Dim Suc As Integer
Set ApNet = New AgntPlus.cPhone
Suc% = ApNet.Answer( )