Connect Method
Attempts to dial the PhonebookEntry from Phonebook .
Syntax
netdial.connect([callback])
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for this method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
This method attempts to dial the PhonebookEntry from Phonebook. If that is empty then the PhoneNumber, CallbackNumber, and Domain (if applicable) are used to connect. The class doesn't return until the operation is completed, but during this time Status events are fired showing the ongoing progress.
Example (Dialing a Phonebook)
NetDialControl.Phonebook = "MyPhonebook" NetDialControl.Connect()
Example (Direct Dialing a Phone Number)
NetDialControl.PhoneNumber = "MyPhonebook" NetDialControl.User = "username" NetDialControl.Password = "mypassword" NetDialControl.Connect()
NOTE: Direct Dialing is not supported on Pocket PC (Windows CE).