|
|
|
date: Thu, 3 Jul 2008 09:51:00 -0700,
group: microsoft.public.win32.programmer.tapi
back
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#
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#
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: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]
|
|