Constants

Most-Voip Constants

class most.voip.constants.VoipEvent[source]

This class contains all events triggered by the library

class most.voip.constants.VoipEventType[source]

This class contains the list of different types of event triggerable by the library

ACCOUNT_EVENT = 'EVENT_TYPE__ACCOUNT_EVENT'

Account Event Type (account (un)registration)

BUDDY_EVENT = 'EVENT_TYPE__BUDDY_EVENT'

Buddy Event Type ((un)subsscribing, (dis)connection, remote (un)holding)

CALL_EVENT = 'EVENT_TYPE__CALL_EVENT'

Call Event Type (incoming, dialing, active, (un)holding, hanging up)

LIB_EVENT = 'EVENT_TYPE__LIB_EVENT'

Library Event Type (Library (de)initialization, Sip server (dis)onnection)

class most.voip.constants.AccountState[source]

This class contains all allowed states of the local account

REGISTERED = 'SIP_ACCOUNT_STATE__REGISTERED'

Registered

UNREGISTERED = 'SIP_ACCOUNT_STATE__UNREGISTERED'

Unregistered

class most.voip.constants.BuddyState[source]

This class contains all allowed states of a buddy

NOT_FOUND = 'BUDDY_STATE__NOT_FOUND'

Not Found

OFF_LINE = 'BUDDY_STATE__OFF_LINE'

Off line

ON_HOLD = 'BUDDY_STATE__ON_HOLD'

On hold

ON_LINE = 'BUDDY_STATE__ON_LINE'

On line

UNKNOWN = 'BUDDY_STATE__UNKNOWN'

Unknown

class most.voip.constants.CallState[source]

This class contains all allowed states of a call

ACTIVE = 'CALL_STATE__ACTIVE'

Active call

DIALING = 'CALL_STATE__DIALING'

Dialing an outcoming call

HOLDING = 'CALL_STATE__HOLDING'

The local account put the active call on hold

IDLE = 'CALL_STATE__IDLE'

No call

INCOMING = 'CALL_STATE__INCOMING'

Dialing an incoming call

class most.voip.constants.ServerState[source]

This class contains all allowed states of a remote Sip Server

CONNECTED = 'SIP_SERVER_STATE__CONNECTED'

Connected

DISCONNECTED = 'SIP_SERVER_STATE__DISCONNECTED'

Disconnected

NOT_FOUND = 'SIP_SERVER_STATE__NOT_FOUND'

Not Found