Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Query regarding to media related parameters

0 views
Skip to first unread message

Mohit

unread,
Dec 30, 2009, 6:27:01 AM12/30/09
to
Hi friends,

I have a query regarding to media related parameters in LINEDEVCAPS structure.

I have a case where, my TSP is not supporting any media related operations,
i.e., no MSP or wave drivers are provided with TSP.

Now, what I want to ask is, what value does TSP should fill in the media
related parameters of the LINEDEVCAPS structure when TSPI_lineGetDevCaps() is
called by TAPI?

The media related parameters in the LINEDEVCAPS structure are, dwBearerMode,
dwMaxRate, dwMediaModes, dwGenerateToneModes, dwGenerateToneMaxNumFreq,
dwGenerateDigitModes, dwMonitorToneMaxNumFreq, etc.

Should TSP fill the normal values or it should fill NULL or any other
specific value for such case?

Thanks,
Mohit

Andreas Marschall [exMVP TAPI]

unread,
Dec 30, 2009, 1:18:13 PM12/30/09
to
"Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
news:5D177600-7E7D-43F6...@microsoft.com...

Mohit,
if your TSP doesn't support any Generate/Monitor Tone/Digits feautures the
set all thos mebers to zero.
If you don't support any data communication then the Rate members are
irrelevant and should be set to zero too.

But anyway you need to set
dwBearerModes=x1, VOICE
dwMediaModes=x4, INTERACTIVEVOICE
if your telephony device is something like a normal phone, i.e. being used
to have the usual intercative voice communication.

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
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.

Mohit

unread,
Dec 30, 2009, 11:28:01 PM12/30/09
to
Thanks Andreas for your reply.

Can you tell me that from where can I find the hex values of the relevent
TSPI _constants?

Thanks
Mohit

> .
>

Mohit

unread,
Dec 31, 2009, 12:03:01 AM12/31/09
to
I have one more query regarding to your reply.

You had mentioned that if my service provider is not supporitng any media
related operations, then I had to set the media related parameter values as
0. So, this 0 is 0x00(NULL) or ASCII 0(zero)?

Thnaks,
Mohit

"Andreas Marschall [exMVP TAPI]" wrote:

> .
>

Andreas Marschall [exMVP TAPI]

unread,
Dec 31, 2009, 10:13:31 AM12/31/09
to
"Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
news:88CD07C8-CD7F-4AB3...@microsoft.com...

> Thanks Andreas for your reply.

Mohit, you are welcome.

> Can you tell me that from where can I find the hex values of the relevent
> TSPI _constants?

I guess you are refering to those:
>> dwBearerModes=x1, VOICE
>> dwMediaModes=x4, INTERACTIVEVOICE

They are defined in TAPI.H / TSPI.H.
Additionally see MSDN.

#define LINEBEARERMODE_VOICE 0x00000001
#define LINEBEARERMODE_SPEECH 0x00000002
#define LINEBEARERMODE_MULTIUSE 0x00000004
#define LINEBEARERMODE_DATA 0x00000008
#define LINEBEARERMODE_ALTSPEECHDATA 0x00000010
#define LINEBEARERMODE_NONCALLSIGNALING 0x00000020
#define LINEBEARERMODE_PASSTHROUGH 0x00000040 // TAPI v1.4
#if (TAPI_CURRENT_VERSION >= 0x00020000)
#define LINEBEARERMODE_RESTRICTEDDATA 0x00000080 // TAPI v2.0
#endif

#define LINEMEDIAMODE_UNKNOWN 0x00000002
#define LINEMEDIAMODE_INTERACTIVEVOICE 0x00000004
#define LINEMEDIAMODE_AUTOMATEDVOICE 0x00000008
#define LINEMEDIAMODE_DATAMODEM 0x00000010
#define LINEMEDIAMODE_G3FAX 0x00000020
#define LINEMEDIAMODE_TDD 0x00000040
#define LINEMEDIAMODE_G4FAX 0x00000080
#define LINEMEDIAMODE_DIGITALDATA 0x00000100
#define LINEMEDIAMODE_TELETEX 0x00000200
#define LINEMEDIAMODE_VIDEOTEX 0x00000400
#define LINEMEDIAMODE_TELEX 0x00000800
#define LINEMEDIAMODE_MIXED 0x00001000
#define LINEMEDIAMODE_ADSI 0x00002000
#define LINEMEDIAMODE_VOICEVIEW 0x00004000 // TAPI v1.4
#if (TAPI_CURRENT_VERSION >= 0x00020001)
#define LINEMEDIAMODE_VIDEO 0x00008000 // TAPI v2.1
#endif
#define LAST_LINEMEDIAMODE 0x00008000

Andreas Marschall [exMVP TAPI]

unread,
Dec 31, 2009, 10:15:33 AM12/31/09
to
"Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
news:FB4D2E94-0F82-4945...@microsoft.com...

> You had mentioned that if my service provider is not supporitng any media
> related operations, then I had to set the media related parameter values
> as
> 0. So, this 0 is 0x00(NULL) or ASCII 0(zero)?

Mohit,
it is 0 = 0x00 = NULL.

0 new messages