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

lineTranslateAddress with IP addresses?

1 view
Skip to first unread message

fdecker

unread,
Dec 14, 2009, 3:54:11 PM12/14/09
to
I'm using TAPI 2.2 and wanting to use canonical format for which there
seems to be no documentation regarding IP addresses. Is there any
help somewhere? In particular, I can enter IP addresses, but it
always puts a "T" in front of the address. Surely there must be a way
to use this function without negotiating TAPI 3, right? I need to be
able to get a true "dialable" address and that would be just 127.0.0.1
and not T127.0.0.1. Since I need to be able to dial both standard
phone numbers as well as IP addresses, I need a standard way to do it.

Fred

Andreas Marschall [exMVP TAPI]

unread,
Dec 15, 2009, 9:50:29 AM12/15/09
to
"fdecker" <fdecker...@aol.com> schrieb im Newsbeitrag
news:5f36e424-5556-4ab2...@a39g2000pre.googlegroups.com...

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.


fdecker

unread,
Dec 16, 2009, 12:15:51 PM12/16/09
to
Hi Andreas,

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

0 new messages