Microsoft TAPI (en)
 

transfer files


 
transfer files Post Reply
10.05.2008 15:17 Cosmin

Hi,

Is there any way to transfer a file using TAPI?
I need to dial a number from an application and then transfer some files on
regular basis.
Is TAPI the thing I should look for?

Thanks,
Cosmin
Re: transfer files Post Reply
12.05.2008 15:01 Andreas Marschall [MVP TAPI]

"Cosmin" schrieb im Newsbeitrag
news:44D97F33-07DD-4EBA-87E2-2BC49D18EDE7@microsoft.com...
> Is there any way to transfer a file using TAPI?
> I need to dial a number from an application and then transfer some files on
> regular basis.
> Is TAPI the thing I should look for?

Cosmin,
what device / TSP are you using?
I presume a modem / UniModem.TSP?
You may want to take a look at the TAPICOMM sample from P-SDK:
http://www.tapi.info/default.aspx/TAPI/PSDKSamples.html

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion.  Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.


Re: transfer files Post Reply
12.05.2008 06:34 Cosmin

Hi Andreas,

I had a look at the sample you're talking about. What they basically do is
they write to the COM port after the connection is established. I can do that
without using the COM port directly like below but I don't really want it.

Using comPort As SerialPort = My.Computer.Ports.OpenSerialPort("COM1", 2400)
  comPort.DtrEnable = True
  comPort.Write("ATDT 206-555-1000" & vbCrLf)
           ' All data transfer code goes here.
  comPort.Write(theFile)
End Using

In the future we might change the modem with an ADSL connection and I don't
really want to change the code. Is there a more abstract(at TAPI level not
serial port level) way to transfer it?

Thanks,
Cosmin



"Andreas Marschall [MVP TAPI]" wrote:

> "Cosmin" schrieb im Newsbeitrag
> news:44D97F33-07DD-4EBA-87E2-2BC49D18EDE7@microsoft.com...
> > Is there any way to transfer a file using TAPI?
> > I need to dial a number from an application and then transfer some files on
> > regular basis.
> > Is TAPI the thing I should look for?
>
> Cosmin,
> what device / TSP are you using?
> I presume a modem / UniModem.TSP?
> You may want to take a look at the TAPICOMM sample from P-SDK:
>
>
> --
> Best Regards
> Andreas Marschall
> Microsoft MVP for TAPI / Windows SDK
> TAPI / TSP Developer and Tester
> My TAPI and TSPI FAQ:
> http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
> My Toto® Tools (a collection of free, mostly TAPI related tools):
> http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
> TAPI development around the world (Frappr! map):
> http://www.frappr.com/TAPIaroundTheWorld
> * Please post all messages and replies to the newsgroup so all may
> * benefit from the discussion.  Private mail is usually not replied to.
> * This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
>
Re: transfer files Post Reply
12.05.2008 15:42 Andreas Marschall [MVP TAPI]

"Cosmin" schrieb im Newsbeitrag
news:17E65AB2-F258-419E-8806-65F826CABA91@microsoft.com...
> In the future we might change the modem with an ADSL connection and I don't
> really want to change the code. Is there a more abstract(at TAPI level not
> serial port level) way to transfer it?

Cosmin,
no, unfortunately there isn't a generic file transfer mechanism in TAPI
(*Telephony* API).

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion.  Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.


Re: transfer files Post Reply
12.05.2008 18:48 Matthias Moetje [MVP]

Cosmin,

then in your case it might be better to use RAS to do the connection
and use TCP to do the transfer.

RAS abstracts all the connection stuff and you can use modems, ISDN,
DSL or VPN to connect.
Additionally by using TCP you can also use existing internet or LAN
connections.


Best regards,

Matthias Moetje
-------------------------------------
TAPI WIKI: http://www.tapi.info
-------------------------------------
TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
-------------------------------------
e-mail: moetje at terasens dot com
www:   www.terasens.com
-------------------------------------


"Cosmin" wrote in message
news:17E65AB2-F258-419E-8806-65F826CABA91@microsoft.com...
> Hi Andreas,
>
> I had a look at the sample you're talking about. What they basically do is
> they write to the COM port after the connection is established. I can do
> that
> without using the COM port directly like below but I don't really want it.
>
> Using comPort As SerialPort = My.Computer.Ports.OpenSerialPort("COM1",
> 2400)
>  comPort.DtrEnable = True
>  comPort.Write("ATDT 206-555-1000" & vbCrLf)
>           ' All data transfer code goes here.
>  comPort.Write(theFile)
> End Using
>
> In the future we might change the modem with an ADSL connection and I
> don't
> really want to change the code. Is there a more abstract(at TAPI level not
> serial port level) way to transfer it?
>
> Thanks,
> Cosmin
>
>
>
> "Andreas Marschall [MVP TAPI]" wrote:
>
>> "Cosmin" schrieb im Newsbeitrag
>> news:44D97F33-07DD-4EBA-87E2-2BC49D18EDE7@microsoft.com...
>> > Is there any way to transfer a file using TAPI?
>> > I need to dial a number from an application and then transfer some
>> > files on
>> > regular basis.
>> > Is TAPI the thing I should look for?
>>
>> Cosmin,
>> what device / TSP are you using?
>> I presume a modem / UniModem.TSP?
>> You may want to take a look at the TAPICOMM sample from P-SDK:
>>
>>
>> --
>> Best Regards
>> Andreas Marschall
>> Microsoft MVP for TAPI / Windows SDK
>> TAPI / TSP Developer and Tester
>> My TAPI and TSPI FAQ:
>> http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
>> My Toto® Tools (a collection of free, mostly TAPI related tools):
>> http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
>> TAPI development around the world (Frappr! map):
>> http://www.frappr.com/TAPIaroundTheWorld
>> * Please post all messages and replies to the newsgroup so all may
>> * benefit from the discussion.  Private mail is usually not replied to.
>> * This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>>
>>
>>

 
 
 Write Us|  Add to favorites
 
 
 ©2007 TERASENS GmbH. All rights reserved. Copyright Notice