freesmartphone.org Phone Interface

Description

The Phone object is used to create Call objects using different protocols.

Namespace

org.freesmartphone.Phone

Methods

Signals

Properties

None

Errors

None

Methods

InitProtocols ( ) → as

Description: Initialize all the protocols.

Returns:

as: protocols The list of all the protocols names.

CreateCall ( ssb ) → o

Description: Create a new Call to a given number, with an optional protocol.

Parameters:*

s: number A string representing the number of the peer.

s: protocol The name of the protocol as returned by InitProtocols, if None the best protocol will be used. Default to None

b: force If true, we destroy any already present call object to this number. Default to True

Returns:

o: call The path to the new Call object

Signals

Incoming ( o )

Description: Emitted when a new call is incoming

Parameters:

o: call Path to the Call object.