Phone

The following information shows you how to use the invocation framework with the Phone app. If you are developing an app using C++ or QML, see Phone for information on using the Phone API.

Opening call logs

Here are the invocation attributes that you use to open the call log. If you don't specify the call log in the MIME type, the full call log list is displayed.

Attribute Value
Data

Optional integer of a call log ID

Action

bb.action.OPEN

MIME type

application/vnd.blackberry.calllog.id

Showing the dial pad

Here are the invocation attributes that you use to show the dial pad:

Attribute Value
Action

bb.action.DIAL

MIME type

application/vnd.blackberry.phone.dialpad

Here are the data attributes that you use to populate the dial pad with a number before showing it:

Data Description
String number (required) The phone number to show
int line_id (optional) Line ID to use
int contact_id Contact ID of the party being called. If you don't specify this field, the contact information is looked up based on the phone number. 

Dialing a number

Here are the invocation attributes that you use to dial a number:

Attribute Value
Action

bb.action.DIAL

MIME type

application/vnd.blackberry.phone.startcall

Here are the data attributes that you use to dial a number:

Data Description
String number (required) The phone number to call
int line_id (optional) Line ID to use
int contact_id  Contact ID of the party being called. If you don't specify this field, the contact information is looked up based on the phone number. 
Boolean apply_smart_dialing

Whether to apply smart dialing (default value is true)

If you're using C++, data must be a PPS-encoded QVariantMap, as shown in the code sample below:
QVariantMap map;
map.insert(“number”, “15198887465”);    // required
map.insert(“line_id”, “cellular”);    // optional
map.insert(“apply_smart_dialing”, false);    // optional
QByteArray requestData = PpsObject::encode(map, NULL);

Dialing an emergency number

Here are the invocation attributes that you use to dial an emergency number:

Attribute Value
Action

bb.action.EMERGENCY_CALL

MIME type

application/vnd.blackberry.phone.startcall

Last modified: 2014-12-11



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus