Windows CE Networking Team WebLog

Windows CE Networking - from NDIS to TCP to SOAP to VOIP and everything in between.

Controlling VOIP interfaces on Windows Mobile devices

RTC 1.5 can be restricted to use only certain types of interfaces (Wifi, Ethernet, etc.) on Windows Mobile devices. Same restriction cannot be applied on Windows CE, as RTC uses connection manager functionality to do that, which is not available on Windows CE.

 

RTC can be restricted using the following reg keys. These reg keys need to be set before RTC gets initialized.

 

HKLM\Comm\RTC\AdapterTypes

 

One can list all the allowed interfaces as numerical keys:

 

e.g.        1

              2

              3

              ETC.

 

The value of each key should be an ORed value of the connection manager interface type and sub-type

 

e.g. If one wants to allow Ethernet interface only.

The connection manager interface type to use will be CM_CONNTYPE_NIC (0x2)

The connection manager sub-interface type to use will be CM_CONNSUBTYPE_NIC_ETHERNET (0x1)

 

The Ored value = (0x2 << 16) | 0x1 = 0x20001

 

So the reg key will look like:

              

HKLM\Comm\RTC\AdapterTypes\1 (DWORD with value 0x2001)

 

Similarly, if Wifi is also desired,

The connection manager interface type to use will be CM_CONNTYPE_NIC (0x2)

The connection manager sub-interface type to use will be CM_CONNSUBTYPE_NIC_WIFI (0x2)

 

The ored value  = 0x2 << 16 | 0x2 = 0x20002

 

So the reg keys will look like:

              

HKLM\Comm\RTC\AdapterTypes\1 (DWORD with value 0x2001) ß for Ethernet

                                                                 2(DWORD with value 0x2002) ß For Wifi

 

Published Wednesday, January 16, 2008 12:43 PM by cenet

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Voice Over IP - Information about VOIP » Controlling VOIP interfaces on Windows Mobile devices said:

January 16, 2008 5:16 PM
 

Christian Pare said:

What would be the CM interface + sub-interface types for a device that only has a 3G (HSDPA) connection to the network? Getting RTC to work correctly on a device that only has 3G access does not seem to work when using the above registry settings.. No valid codecs are listed in the SIP invite transaction, as if no "bandwidth" was available for the RTC codec.

January 28, 2008 11:18 AM
 

Guy who references things said:

http://msdn2.microsoft.com/en-us/library/aa455858.aspx

CM_CONNTYPE_UNKNOWN 0

CM_CONNTYPE_CELLULAR 1

CM_CONNTYPE_NIC 2

CM_CONNTYPE_BLUETOOTH 3

CM_CONNTYPE_UNIMODEM 4

CM_CONNTYPE_VPN 5

CM_CONNTYPE_PROXY 6

CM_CONNTYPE_PC 7

http://msdn2.microsoft.com/en-us/library/bb416501.aspx

February 3, 2008 3:00 AM
 

Matt said:

I'm attempting to configure RTC to use PC passthrough, and even restricted it to just that; with no luck.

Anyone have any ideas?

 

<<Rajesh>> Desktop pass through does not support UDP protocol. Since RTC always uses UDP for media, you will not succeed in establishing audio/video calls.

 

Thanks!

February 3, 2008 3:15 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker