rpcDial
Dial out to a phone number with a destination SWML URL that handles the
outbound call leg. This is commonly used in call screening scenarios: place the
caller on hold with hold(),
then dial out to a human whose call is handled by a separate SWML agent.
Parameters
toNumber
Phone number to dial in E.164 format.
fromNumber
Caller ID to display in E.164 format.
destSwml
URL of the SWML document that handles the outbound call leg. The SWML at this URL typically runs a screening agent that can accept, reject, or take a message.
deviceType
Device type for the outbound leg.
Returns
FunctionResult — this, for chaining.