Extension qnx.phone

qnx.phone

Provide the functionality of a phone

Events

phoneready

Triggered when phone is idle (no incoming, outgoing, active calls) and ready to accept commands

callback parameter event

{Object}

Example
 {
     service: {String}       // identifies the phone service
} 

phonecallactive

Triggered when active phone call (recipient accepted the outgoing call or incoming call accepted locally)

callback parameter event

{Object}

Example
 {
     service: {String}		// identifies the phone service
     callId: {String}		// incoming call phone number in case of Handsfree, can be BBID etc
} 

phoneincoming

Triggered when there is incoming call, phone is ringing

callback parameter event

{Object}

Example
 {
     service: {String}	// identifies the phone service
     callId: {String}	// incoming call phone number in case of Handsfree, can be BBID etc
} 

Members

SERVICE_HFP

Defines identifier for HFP service

Methods

accept

Accept incoming call
Parameters:
Name Type Description
callId String ID to identify a call TODO Currently callId is not in use, because with existing implementation of Handsfree we can have only one active call
service String [optional] Identifier of the phone service; if no parameter specified, function call will be routed to default, currently Handsfree, service TODO Currently service is not in use

dial

Dial a number
Parameters:
Name Type Description
number String Number to dial
service String [optional] Identifier of the phone service; if no parameter specified, function call will be routed to default, currently Handsfree, service TODO Currently service is not in use

getActiveCalls

Call this method to return the list of active calls
Parameters:
Name Type Description
service String Identifier of the phone service, if no parameter specified function call will be routed to default, currently Handsfree, service [optional] TODO Currently service is not in use
Returns:
List of active calls
Type
  • Object

getState

Return the current state of the phone
Parameters:
Name Type Description
service String [optional] Identifier of the phone service; if no parameter specified, function call will be routed to default, currently Handsfree, service TODO Currently service is not in use
Returns:
Current state of the phone
Type
  • String

hangup

Hang up current active call
Parameters:
Name Type Description
callId String ID to identify a call TODO Currently callId is not in use, because with existing implementation of Handsfree we can have only one active call
service String [optional]Identifier of the phone service, if no parameter specified, function call will be routed to default, currently Handsfree, service TODO Currently service is not in use

hold

Put a call on hold
Parameters:
Name Type Description
callId String ID to identify a call TODO Currently callId is not in use, because with existing implementation of Handsfree we can have only one active call
value Boolean True to put current call on hold, false to release current call from hold
service String [optional] Identifier of the phone service; if no parameter specified, function call will be routed to default, currently Handsfree, service TODO Currently service is not in use

mute

Mute audio input for incoming phone call (mute mic)
Parameters:
Name Type Description
callId String ID to identify a call TODO Currently callId is not in use, because with existing implementation of Handsfree we can have only one active call
value Boolean True to mute, false to unmute
service String [optional] Identifier of the phone service; if no parameter specified, function call will be routed to default, currently Handsfree, service TODO Currently service is not in use

redial

Redial last called number
Parameters:
Name Type Description
service String [optional] Identifier of the phone service; if no parameter specified, function call will be routed to default, currently Handsfree, service TODO Currently service is not in use