|
Address Translation
Applications can provide users with location independence and take advantage
of calling-card information managed by Win32 Telephony by storing telephone
numbers in the Canonical address format. Before a Canonical address can be used in
placing a call, it must be converted (translated) into the Dialable address format using the lineTranslateAddress function.
To do this, the lineTranslateAddress function starts by examining the settings in the registry to find the user's
location, including the country and area code. It then produces a valid dialing
sequence by removing unnecessary portions of the number (such as the country
code or area code) and adding other digits such as a long distance prefix or a
digit used to dial out of a local PBX.
To avoid inadvertent misdialing, such as if the user has changed locations but
has not yet informed Win32 Telephony of the change, an application may want to
present the output of this function call to the user in a dialog box. The user
can then confirm the translated address or change it if it is incorrect.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Unix Manual Pages
|