Fred
Fred,
I don't think that lineTranslateAddress() supports IP adresses.
Canonical Addresses are phone adresses only, not IP adresses.
MSDN says: A canonical phone address is a text string with the following
structure:
+ CountryCode Space [(AreaCode) Space] SubscriberNumber | Subaddress ^ Name
CRLF ...
Where do you see any indication that it an IP address may be a valid
szAddressIn for lineTranslateAddress() ?
MSDN says on pszAddressIn: Must be in either the canonical address format,
or an arbitrary string of dialable digits (non-canonical).
An IP adress is neither a canonical address nor a string of dialable digits
(i.e. DTMF digits: "1234567890*#ABCD").
Furthermore TAPI3 ITAddressTranslation::TranslateAddress() won't help you
either because it is only a wrapper for TAPI2 lineTranslateAddress().
--
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.
I guess I'll have to deal with this with code to not invoke a
translation if it is an IP address. I saw in the help for the call
parameters of lineMakeCall that you can set dwAddressType to be
LINEADDRESTYPE_PHONENUMBER or _IPADDRESS among others. So I wondered
if TAPI3 had some other mechanism for working with lineTranslateCall
to handle the translation differently. I guess TAPI3 can use that
information for something.
Fred