Make a Call

Make a Call

There are several intents which can be used to make a voice call. The different intents are supported due to the differing requirements third-party applications have, but they all result in initiating a call in Zebra Voice.
Emergency call is supported by all the intents in this section by ensuring that a call can be made at all times, even if the device is locked.
The intents can also be used to bring up the dialpad by omitting the number or address of the intended recipient. The regular dialer is brought up when the device is unlocked; the emergency dialer is brought up when the device is locked.

Supported Schema

The following table summarizes the intents and the supported schemas for each.
Intent
Supported Schemas
wfc.voice.ACTION_BUTTON
"tel", "sip", "csip", "sips"
android.intent.action.VIEW
"tel", "sip", "csip", "sips
android.intent.action.CALL
"tel", "sip", "sips"
android.intent.action.DIAL
"tel", "sip", "sips"

Prerequisites

  • Zebra Voice Client is loaded on the device, configured for PBX connectivity, and registered to the PBX.
  • All versions of Zebra Voice Client 9.0 support these intents.

Make a Call with wfc.voice.ACTION_BUTTON

Name
Description
Action
wfc.voice.ACTION_BUTTON
Intent Type
startActivity
Data Scheme
tel, sip, csip, or sips
Extra 0
          Type
String
          Name
action
          Value
CALL
Extra 1
          Type
String
          Name
value
          Value
Number or address of the intended recipient

Make a Call with android.intent.action.VIEW

Name
Value
Action
android.intent.action.VIEW
Intent Type
startActivity
Data Scheme
tel, sip, csip, or sips followed by ":" and the number or address of the intended recipient

Make a Call with android.intent.action.DIAL

Name
Description
Action
android.intent.action.CALL
Intent Type
startActivity
Data Scheme
tel, sip, or sips followed by ":" and the number or address of the intended recipient.
Zebra Voice can be registered to multiple PBX lines simultaneously. This intent is sent to the current line, which can be selected via the Zebra Voice dial pad. The user can switch between lines by clicking "Local line" info field.

ADB Examples

$ adb shell am start -a wfc.voice.ACTION_BUTTON -d 'tel:' --es action CALL--es value 8471234567$
$ adb shell am start -a android.intent.action.CALL -d sip:2001
$ adb shell am start -a android.intent.action.VIEW -d csip:2001
$ adb shell am start -a android.intent.action.DIAL -d tel:555
The following intent brings the regular dialer up when the device is unlocked and the emergency dialer when the device is locked.
adb shell am start -a android.intent.action.DIAL -d sip: