Phone

The following information shows you how to use invocation framework with Phone. See Phone for information on using the Phone API.

Opening call logs

Here are the invocation attributes 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

Dialing a number

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

Attribute Value
MIME type

application/vnd.blackberry.phone.startcall

Action

bb.action.DIAL

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

Data Description
String number (required) The phone number that will be called. 
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 is true.

Data must be the 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 you use to dial an emergency number:

Attribute Value
MIME type

application/vnd.blackberry.phone.startcall

Action

bb.action.EMERGENCY_CALL

Last modified: 2014-06-05



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

comments powered by Disqus