Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 3 Jul 2008 09:51:00 -0700,    group: microsoft.public.win32.programmer.tapi        back       


Paging using TAPI and C#   
How do you send page using TAPI? I've looking around and some people said 
it's just simple as calling the service provider paging number then send 
data. My question is how do you send data after the call is connected? They 
talked about WRITEFILE, but how do you do that in C#. I've been hearing a lot 
of people saying it's easy but I can find a sample code. Can someone help me 
where to look for or provide me sample code?
date: Thu, 3 Jul 2008 09:51:00 -0700   author:   dryden357

Re: Paging using TAPI and C#   
"dryden357"  schrieb im Newsbeitrag
news:5E04A280-5DD0-4220-A8CA-BCDB30413382@microsoft.com...
> How do you send page using TAPI? I've looking around and some people said
> it's just simple as calling the service provider paging number then send
> data. My question is how do you send data after the call is connected? They
> talked about WRITEFILE, but how do you do that in C#. I've been hearing a
lot
> of people saying it's easy but I can find a sample code. Can someone help me
> where to look for or provide me sample code?

dryden357,
please clarify:
How exactly do you do the paging stuff manually at a phone?
Dial a number, wait for connect, send DTMF digits?
If so, then this can be done with TAPI and a voice modem.
Or do you have any other telephony device?

Do you prefer TAPI2 or TAPI3 ?


Regarding TAPI and .NET see KB article "841712 - Telephony Application
Programming Interface (TAPI) functionality is not supported from managed
code".
See my TAPI and TSPI FAQ:
Q: Are there any .NET wrappers for TAPI2 available ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Are_there_4

You may want to take a look at JulMar's
ITAPI3 - TAPI 3.0 wrapper for .NET 2.0
and
TAPI2 ATAPI.NET - TAPI Application class library for .NET 2.0:
http://www.julmar.com/tapi/
http://www.julmar.com/blog/mark/CategoryView,category,Tapi.aspx

-- 
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++
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.
date: Thu, 3 Jul 2008 20:34:14 +0200   author:   Andreas Marschall [MVP TAPI]

Re: Paging using TAPI and C#   
dryden357,

we have implemented connection to paging services through
the UCP and the TAP protocols.
You need to establish a data connection with TAPI and then
call lineGetID("comm/datamodem") to get a handle to an
overlapped IO structure with which you can use readfile
and writefile.

I wouldn't recommend C# for this!

You should have a look at the TapiComm sample which was
part of earlier Platform SDKs and can now be found on
the www.tapi.info website.


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
------------------------------------- 

"dryden357"  wrote in message 
news:5E04A280-5DD0-4220-A8CA-BCDB30413382@microsoft.com...
> How do you send page using TAPI? I've looking around and some people said
> it's just simple as calling the service provider paging number then send
> data. My question is how do you send data after the call is connected? 
> They
> talked about WRITEFILE, but how do you do that in C#. I've been hearing a 
> lot
> of people saying it's easy but I can find a sample code. Can someone help 
> me
> where to look for or provide me sample code?
date: Thu, 3 Jul 2008 21:54:49 +0200   author:   Matthias Moetje [MVP]

Re: Paging using TAPI and C#   
Thanks for the quick response! 
That's what I'm trying to do ( Dial a number, wait for connect, send DTMF 
digits?). I got Julmar's example and I can connect but I dont know how to 
send DTMF digits. I got something like this from the web
byte[] id = 
(byte[])((ITLegacyCallMediaControl2)oITBasicCallControl).GetIDAsVariant("comm/datamodem");
but I dont know how to use it. I'm using TAPI3. Thanks again for helping me 
on this. 

"Andreas Marschall [MVP TAPI]" wrote:

> "dryden357"  schrieb im Newsbeitrag
> news:5E04A280-5DD0-4220-A8CA-BCDB30413382@microsoft.com...
> > How do you send page using TAPI? I've looking around and some people said
> > it's just simple as calling the service provider paging number then send
> > data. My question is how do you send data after the call is connected? They
> > talked about WRITEFILE, but how do you do that in C#. I've been hearing a
> lot
> > of people saying it's easy but I can find a sample code. Can someone help me
> > where to look for or provide me sample code?
> 
> dryden357,
> please clarify:
> How exactly do you do the paging stuff manually at a phone?
> Dial a number, wait for connect, send DTMF digits?
> If so, then this can be done with TAPI and a voice modem.
> Or do you have any other telephony device?
> 
> Do you prefer TAPI2 or TAPI3 ?
> 
> 
> Regarding TAPI and .NET see KB article "841712 - Telephony Application
> Programming Interface (TAPI) functionality is not supported from managed
> code".
> See my TAPI and TSPI FAQ:
> Q: Are there any .NET wrappers for TAPI2 available ?
> http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Are_there_4
> 
> You may want to take a look at JulMar's
> ITAPI3 - TAPI 3.0 wrapper for .NET 2.0
> and
> TAPI2 ATAPI.NET - TAPI Application class library for .NET 2.0:
> http://www.julmar.com/tapi/
> http://www.julmar.com/blog/mark/CategoryView,category,Tapi.aspx
> 
> -- 
> Best Regards
> Andreas Marschall
> Microsoft MVP for TAPI / Windows SDK / Visual C++
> 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.
> 
> 
> 
>
date: Thu, 3 Jul 2008 14:06:00 -0700   author:   dryden357

Re: Paging using TAPI and C#   
Thanks! I have an application already built on C# and paging is just a small 
part of my application, that's why I'm trying to use C#. Is calling 
lineGetID("comm/datamodem") the same as 
((ITLegacyCallMediaControl2)oITBasicCallControl).GetIDAsVariant("comm/datamodem") in C#? How would you use readfile and writefile?

Thanks and I really appreaciate your help on this.

"Matthias Moetje [MVP]" wrote:

> dryden357,
> 
> we have implemented connection to paging services through
> the UCP and the TAP protocols.
> You need to establish a data connection with TAPI and then
> call lineGetID("comm/datamodem") to get a handle to an
> overlapped IO structure with which you can use readfile
> and writefile.
> 
> I wouldn't recommend C# for this!
> 
> You should have a look at the TapiComm sample which was
> part of earlier Platform SDKs and can now be found on
> the www.tapi.info website.
> 
> 
> 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
> ------------------------------------- 
> 
> "dryden357"  wrote in message 
> news:5E04A280-5DD0-4220-A8CA-BCDB30413382@microsoft.com...
> > How do you send page using TAPI? I've looking around and some people said
> > it's just simple as calling the service provider paging number then send
> > data. My question is how do you send data after the call is connected? 
> > They
> > talked about WRITEFILE, but how do you do that in C#. I've been hearing a 
> > lot
> > of people saying it's easy but I can find a sample code. Can someone help 
> > me
> > where to look for or provide me sample code? 
> 
> 
>
date: Thu, 3 Jul 2008 14:10:03 -0700   author:   dryden357

Re: Paging using TAPI and C#   
"dryden357"  schrieb im Newsbeitrag
news:04C201D0-4E51-4391-907C-3BB280505FF3@microsoft.com...
> Thanks for the quick response!

dryden357, you are welcome.

> That's what I'm trying to do ( Dial a number, wait for connect, send DTMF
> digits?). I got Julmar's example and I can connect but I dont know how to
> send DTMF digits. I got something like this from the web
> byte[] id =
>
(byte[])((ITLegacyCallMediaControl2)oITBasicCallControl).GetIDAsVariant("comm/
datamodem");
> but I dont know how to use it. I'm using TAPI3.

You don't need to ::GetID for "comm/datamodem" if you only want to send DTMF
digits.

This is simply done by ITLegacyCallMediaControl::GenerateDigits()

Try it with TAPI Browser TB3x before starting to code anything yourself.
See my TAPI and TSPI FAQ:

Q: Where can I download TAPI Browser ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_can

Q: Is there a user guide available for TAPI Browser TB3x ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_2

-- 
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++
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.
date: Fri, 4 Jul 2008 09:15:08 +0200   author:   Andreas Marschall [MVP TAPI]

Re: Paging using TAPI and C#   
Dryden,

you have to use overlapped I/O for doing serial communication and
this definetly can't be done through pure managed code. It might be
possible to do this with C# using pinvoke and others techniques to
call the Windows API and allocate memory, but I wouldn't recommend
it. Furthermore you will probably run into even more trouble since
TAPI3 is not supported from .NET.
I would highly recommend creating a COM component with C++ and using
this COM component from your C# application!

> Is calling
> lineGetID("comm/datamodem") the same as
> ((ITLegacyCallMediaControl2)oITBasicCallControl).GetIDAsVariant("comm/datamodem") 
> in C#?

Yes.


-- 
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
------------------------------------- 
>
> "Matthias Moetje [MVP]" wrote:
>
>> dryden357,
>>
>> we have implemented connection to paging services through
>> the UCP and the TAP protocols.
>> You need to establish a data connection with TAPI and then
>> call lineGetID("comm/datamodem") to get a handle to an
>> overlapped IO structure with which you can use readfile
>> and writefile.
>>
>> I wouldn't recommend C# for this!
>>
>> You should have a look at the TapiComm sample which was
>> part of earlier Platform SDKs and can now be found on
>> the www.tapi.info website.
>>
>>
>> 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
>> ------------------------------------- 
>>
>> "dryden357"  wrote in message
>> news:5E04A280-5DD0-4220-A8CA-BCDB30413382@microsoft.com...
>> > How do you send page using TAPI? I've looking around and some people 
>> > said
>> > it's just simple as calling the service provider paging number then 
>> > send
>> > data. My question is how do you send data after the call is connected?
>> > They
>> > talked about WRITEFILE, but how do you do that in C#. I've been hearing 
>> > a
>> > lot
>> > of people saying it's easy but I can find a sample code. Can someone 
>> > help
>> > me
>> > where to look for or provide me sample code?
>>
>>
>>
date: Sat, 5 Jul 2008 20:27:20 +0200   author:   Matthias Moetje [MVP]

Re: Paging using TAPI and C#   
How do I use the TAPI Browser? I was able to initialize it but every methods 
I tried to call cannot be called on the object. I know there are different 
ways to create a call in TAPI, I just use this to connect.

oITBasicCallControl = ln.CreateCall(callNumber.Text, 
TapiConstants.LINEADDRESSTYPE_PHONENUMBER, 
TapiConstants.TAPIMEDIATYPE_DATAMODEM | TapiConstants.TAPIMEDIATYPE_AUDIO);
                        
oITBasicCallControl.SetQOS(TapiConstants.TAPIMEDIATYPE_DATAMODEM | 
TapiConstants.TAPIMEDIATYPE_AUDIO, QOS_SERVICE_LEVEL.QSL_BEST_EFFORT);
 oITBasicCallControl.Connect(false);

 I clicked ITBasicCallControl::connect in the browser but this is where i 
get "Method could not be called on this object". How do I get from here to 
using ITLegacyCallMediaControl::GenerateDigits()? Are there any step by step 
tutorial in using the TAPI Browser? Thanks!
"Andreas Marschall [MVP TAPI]" wrote:

> "dryden357"  schrieb im Newsbeitrag
> news:04C201D0-4E51-4391-907C-3BB280505FF3@microsoft.com...
> > Thanks for the quick response!
> 
> dryden357, you are welcome.
> 
> > That's what I'm trying to do ( Dial a number, wait for connect, send DTMF
> > digits?). I got Julmar's example and I can connect but I dont know how to
> > send DTMF digits. I got something like this from the web
> > byte[] id =
> >
> (byte[])((ITLegacyCallMediaControl2)oITBasicCallControl).GetIDAsVariant("comm/
> datamodem");
> > but I dont know how to use it. I'm using TAPI3.
> 
> You don't need to ::GetID for "comm/datamodem" if you only want to send DTMF
> digits.
> 
> This is simply done by ITLegacyCallMediaControl::GenerateDigits()
> 
> Try it with TAPI Browser TB3x before starting to code anything yourself.
> See my TAPI and TSPI FAQ:
> 
> Q: Where can I download TAPI Browser ?
> http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_can
> 
> Q: Is there a user guide available for TAPI Browser TB3x ?
> http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_2
> 
> -- 
> Best Regards
> Andreas Marschall
> Microsoft MVP for TAPI / Windows SDK / Visual C++
> 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.
> 
> 
> 
>
date: Tue, 8 Jul 2008 06:26:09 -0700   author:   dryden357

Re: Paging using TAPI and C#   
"dryden357"  schrieb im Newsbeitrag
news:4593E853-B7B7-4C6B-8297-0EC323E34C0F@microsoft.com...
> How do I use the TAPI Browser? I was able to initialize it but every methods
> I tried to call cannot be called on the object. I know there are different
> ways to create a call in TAPI, I just use this to connect.
>
> oITBasicCallControl = ln.CreateCall(callNumber.Text,
> TapiConstants.LINEADDRESSTYPE_PHONENUMBER,
> TapiConstants.TAPIMEDIATYPE_DATAMODEM | TapiConstants.TAPIMEDIATYPE_AUDIO);
>
> oITBasicCallControl.SetQOS(TapiConstants.TAPIMEDIATYPE_DATAMODEM |
> TapiConstants.TAPIMEDIATYPE_AUDIO, QOS_SERVICE_LEVEL.QSL_BEST_EFFORT);
>  oITBasicCallControl.Connect(false);
>
>  I clicked ITBasicCallControl::connect in the browser but this is where i
> get "Method could not be called on this object". How do I get from here to
> using ITLegacyCallMediaControl::GenerateDigits()? Are there any step by step
> tutorial in using the TAPI Browser? Thanks!

dryden357,
besides the follwoing there is no tutorial AFAIK.
> > See my TAPI and TSPI FAQ:
> > Q: Is there a user guide available for TAPI Browser TB3x ?
> >
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_2

Did you ::CreateCall() before trying to ::Connect().

Here is a TB3x log for making a call on the 1st address (without registering
for call notifications):

ITTAPI.CreateInstance ITTAPI_1

returned hr = 0x00000000

ITTAPI_1.Initialize returned hr = 0x00000000

ITTAPI_1.get_Addresses returned hr = 0x00000000

VARIANT* pVariant = ITCollection_1

ITCollection_1.get_Item

long Index : 1 (0x00000001)

returned hr = 0x00000000

VARIANT* pVariant = ITAddress_1

ITAddress_1.CreateCall

BSTR pDestAddress : 100

long lAddressType : 1 (0x00000001)

long lMediaTypes : 8 (0x00000008)

returned hr = 0x00000000

ITBasicCallControl** ppCall = ITBasicCallControl_1

ITBasicCallControl_1.Connect

VARIANT_BOOL fSync : 0

returned hr = 0x00000000


-- 
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++
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.
date: Tue, 8 Jul 2008 23:32:24 +0200   author:   Andreas Marschall [MVP TAPI]

Re: Paging using TAPI and C#   
I got to the ITLegacyCallMediaControl::GenerateDigits() by casting my 
ITBasicCallControl. I've been looking ot the definition of the method by I 
cant find any explanation what are the two data([BSTR pDigits,TAPI_DIGITMODE 
DigitMode) that I will be passing to the GenerateDigits() method. How can I 
send an alphanumeric message with this method?

Thanks!

"Andreas Marschall [MVP TAPI]" wrote:

> "dryden357"  schrieb im Newsbeitrag
> news:4593E853-B7B7-4C6B-8297-0EC323E34C0F@microsoft.com...
> > How do I use the TAPI Browser? I was able to initialize it but every methods
> > I tried to call cannot be called on the object. I know there are different
> > ways to create a call in TAPI, I just use this to connect.
> >
> > oITBasicCallControl = ln.CreateCall(callNumber.Text,
> > TapiConstants.LINEADDRESSTYPE_PHONENUMBER,
> > TapiConstants.TAPIMEDIATYPE_DATAMODEM | TapiConstants.TAPIMEDIATYPE_AUDIO);
> >
> > oITBasicCallControl.SetQOS(TapiConstants.TAPIMEDIATYPE_DATAMODEM |
> > TapiConstants.TAPIMEDIATYPE_AUDIO, QOS_SERVICE_LEVEL.QSL_BEST_EFFORT);
> >  oITBasicCallControl.Connect(false);
> >
> >  I clicked ITBasicCallControl::connect in the browser but this is where i
> > get "Method could not be called on this object". How do I get from here to
> > using ITLegacyCallMediaControl::GenerateDigits()? Are there any step by step
> > tutorial in using the TAPI Browser? Thanks!
> 
> dryden357,
> besides the follwoing there is no tutorial AFAIK.
> > > See my TAPI and TSPI FAQ:
> > > Q: Is there a user guide available for TAPI Browser TB3x ?
> > >
> http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_2
> 
> Did you ::CreateCall() before trying to ::Connect().
> 
> Here is a TB3x log for making a call on the 1st address (without registering
> for call notifications):
> 
> ITTAPI.CreateInstance ITTAPI_1
> 
> returned hr = 0x00000000
> 
> ITTAPI_1.Initialize returned hr = 0x00000000
> 
> ITTAPI_1.get_Addresses returned hr = 0x00000000
> 
> VARIANT* pVariant = ITCollection_1
> 
> ITCollection_1.get_Item
> 
> long Index : 1 (0x00000001)
> 
> returned hr = 0x00000000
> 
> VARIANT* pVariant = ITAddress_1
> 
> ITAddress_1.CreateCall
> 
> BSTR pDestAddress : 100
> 
> long lAddressType : 1 (0x00000001)
> 
> long lMediaTypes : 8 (0x00000008)
> 
> returned hr = 0x00000000
> 
> ITBasicCallControl** ppCall = ITBasicCallControl_1
> 
> ITBasicCallControl_1.Connect
> 
> VARIANT_BOOL fSync : 0
> 
> returned hr = 0x00000000
> 
> 
> -- 
> Best Regards
> Andreas Marschall
> Microsoft MVP for TAPI / Windows SDK / Visual C++
> 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.
> 
> 
> 
>
date: Fri, 11 Jul 2008 06:34:38 -0700   author:   dryden357

Re: Paging using TAPI and C#   
"dryden357"  schrieb im Newsbeitrag
news:E6495E25-7D0C-46FD-B7A0-7C5A641D0FDE@microsoft.com...
> I got to the ITLegacyCallMediaControl::GenerateDigits() by casting my
> ITBasicCallControl. I've been looking ot the definition of the method by I
> cant find any explanation what are the two data([BSTR pDigits,TAPI_DIGITMODE
> DigitMode) that I will be passing to the GenerateDigits() method. How can I
> send an alphanumeric message with this method?

dryden357,
you can only send DTMF digits with ::GenerateDigits().
DTMF digits are 0..9,*,#,A,B,C,D.
pDigits is a pointer to a string of type BSTR. This string contains the DTMF
digits.
TAPI_DIGITMODE  DigitMode is usually set to LINEDIGITMODE_DTMF.

-- 
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++
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.
date: Fri, 11 Jul 2008 16:18:06 +0200   author:   Andreas Marschall [MVP TAPI]

Re: Paging using TAPI and C#   
Dryden,

first thing you should do it to find out which protocol your
paging provider uses. Common protocols are TAP and UCP.
Some operators offer a line where you can use DTMF but
only for numeric messages.

When it comes to TAP and UCP you will need to use the
serial communications method as I already pointed out in
an earlier post!

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
------------------------------------- 

"dryden357"  wrote in message 
news:E6495E25-7D0C-46FD-B7A0-7C5A641D0FDE@microsoft.com...
>I got to the ITLegacyCallMediaControl::GenerateDigits() by casting my
> ITBasicCallControl. I've been looking ot the definition of the method by I
> cant find any explanation what are the two data([BSTR 
> pDigits,TAPI_DIGITMODE
> DigitMode) that I will be passing to the GenerateDigits() method. How can 
> I
> send an alphanumeric message with this method?
>
> Thanks!
>
> "Andreas Marschall [MVP TAPI]" wrote:
>
>> "dryden357"  schrieb im Newsbeitrag
>> news:4593E853-B7B7-4C6B-8297-0EC323E34C0F@microsoft.com...
>> > How do I use the TAPI Browser? I was able to initialize it but every 
>> > methods
>> > I tried to call cannot be called on the object. I know there are 
>> > different
>> > ways to create a call in TAPI, I just use this to connect.
>> >
>> > oITBasicCallControl = ln.CreateCall(callNumber.Text,
>> > TapiConstants.LINEADDRESSTYPE_PHONENUMBER,
>> > TapiConstants.TAPIMEDIATYPE_DATAMODEM | 
>> > TapiConstants.TAPIMEDIATYPE_AUDIO);
>> >
>> > oITBasicCallControl.SetQOS(TapiConstants.TAPIMEDIATYPE_DATAMODEM |
>> > TapiConstants.TAPIMEDIATYPE_AUDIO, QOS_SERVICE_LEVEL.QSL_BEST_EFFORT);
>> >  oITBasicCallControl.Connect(false);
>> >
>> >  I clicked ITBasicCallControl::connect in the browser but this is where 
>> > i
>> > get "Method could not be called on this object". How do I get from here 
>> > to
>> > using ITLegacyCallMediaControl::GenerateDigits()? Are there any step by 
>> > step
>> > tutorial in using the TAPI Browser? Thanks!
>>
>> dryden357,
>> besides the follwoing there is no tutorial AFAIK.
>> > > See my TAPI and TSPI FAQ:
>> > > Q: Is there a user guide available for TAPI Browser TB3x ?
>> > >
>> http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_2
>>
>> Did you ::CreateCall() before trying to ::Connect().
>>
>> Here is a TB3x log for making a call on the 1st address (without 
>> registering
>> for call notifications):
>>
>> ITTAPI.CreateInstance ITTAPI_1
>>
>> returned hr = 0x00000000
>>
>> ITTAPI_1.Initialize returned hr = 0x00000000
>>
>> ITTAPI_1.get_Addresses returned hr = 0x00000000
>>
>> VARIANT* pVariant = ITCollection_1
>>
>> ITCollection_1.get_Item
>>
>> long Index : 1 (0x00000001)
>>
>> returned hr = 0x00000000
>>
>> VARIANT* pVariant = ITAddress_1
>>
>> ITAddress_1.CreateCall
>>
>> BSTR pDestAddress : 100
>>
>> long lAddressType : 1 (0x00000001)
>>
>> long lMediaTypes : 8 (0x00000008)
>>
>> returned hr = 0x00000000
>>
>> ITBasicCallControl** ppCall = ITBasicCallControl_1
>>
>> ITBasicCallControl_1.Connect
>>
>> VARIANT_BOOL fSync : 0
>>
>> returned hr = 0x00000000
>>
>>
>> -- 
>> Best Regards
>> Andreas Marschall
>> Microsoft MVP for TAPI / Windows SDK / Visual C++
>> 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.
>>
>>
>>
>>
date: Fri, 11 Jul 2008 21:59:01 +0200   author:   Matthias Moetje [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us