Initiates a call. This function returns a call handle, which is a string identifying the call. It can be used in various other methods such as digium.phone.hangup.
If a function is passed in the handler parameter, that function is called with a call status object to notify of state changes to the phone call.
Number to dial.
SIP URL to call (e.g., 200@MY.PBX.IP). This can be used instead of a number. Only one of the two are required.
Object with header values to set in the call's INVITE.
ID for the account.
Handler to register for the call. Executed whenever the call changes state.
digium.phone.dial with util.debug for state of the call