org.freedesktop.ModemManager1.Call

org.freedesktop.ModemManager1.Call — The ModemManager Call interface.

Methods

Start    ();
Accept   ();
Hangup   ();
SendDtmf (IN  s dtmf);

Signals

DtmfReceived (s dtmf);
StateChanged (i old,
              i new,
              u reason);

Properties

State        readable   i
StateReason  readable   i
Direction    readable   i
Number       readable   s
AudioPort    readable   s
AudioFormat  readable   a{sv}

Description

The Call interface Defines operations and properties of a single Call.

Method Details

The Start() method

Start ();

If the outgoing call has not yet been started, start it.

Applicable only if state is MM_CALL_STATE_UNKNOWN and direction is MM_CALL_DIRECTION_OUTGOING.


The Accept() method

Accept ();

Accept incoming call (answer).

Applicable only if state is MM_CALL_STATE_RINGING_IN and direction is MM_CALL_DIRECTION_INCOMING.


The Hangup() method

Hangup ();

Hangup the active call.

Applicable only if state is MM_CALL_STATE_UNKNOWN.


The SendDtmf() method

SendDtmf (IN  s dtmf);

Send a DTMF tone (Dual Tone Multi-Frequency) (only on supported modem).

Applicable only if state is MM_CALL_STATE_ACTIVE.

IN s dtmf:

DTMF tone identifier [0-9A-D*#].

Signal Details

The "DtmfReceived" signal

DtmfReceived (s dtmf);

Emitted when a DTMF tone is received (only on supported modem)

s dtmf:

DTMF tone identifier [0-9A-D*#].


The "StateChanged" signal

StateChanged (i old,
              i new,
              u reason);

Emitted when call changes state

i old:

Old state MMCallState

i new:

New state MMCallState

u reason:

A MMCallStateReason value, specifying the reason for this state change.

Property Details

The "State" property

State  readable   i

A MMCallState value, describing the state of the call.


The "StateReason" property

StateReason  readable   i

A MMCallStateReason value, describing why the state is changed.


The "Direction" property

Direction  readable   i

A MMCallDirection value, describing the direction of the call.


The "Number" property

Number  readable   s

The remote phone number.


The "AudioPort" property

AudioPort  readable   s

If call audio is routed via the host, the name of the kernel device that provides the audio. For example, with certain Huawei USB modems, this property might be "ttyUSB2" indicating audio is available via ttyUSB2 in the format described by the AudioFormat property.


The "AudioFormat" property

AudioFormat  readable   a{sv}

If call audio is routed via the host, a description of the audio format supported by the audio port.

This property may include the following items:

"encoding"

The audio encoding format. For example, "pcm" for PCM audio.

"resolution"

The sampling precision and its encoding format. For example, "s16le" for signed 16-bit little-endian samples.

"rate"

The sampling rate as an unsigned integer. For example, 8000 for 8000hz.