Core Interfaces

Most-Voip Interfaces

class most.voip.interfaces.IAccount[source]

This class contains informations about the local sip account.

add_buddy(extension)[source]

Add the specified buddy to this account (so its current state can be notified)

Parameters:extension – the extension related to the buddy to add
get_buddies()[source]

Get the list of buddies of the current registered account

Returns:the list of most.voip.interfaces.IBuddy subscribed by the local account
get_buddy(extension)[source]

Get the buddy with the given extension

Parameters:extension – the extension of the buddy
Returns:the most.voip.interfaces.IBuddy with the specified extension
get_state()[source]
Returns:the current state of this account (see most.voip.constants.AccountState)
get_uri()[source]
Returns:the sip uri of this account
remove_buddy(extension)[source]

Remove the specified buddy from this account

Parameters:extension – the extension related to the buddy to remove
class most.voip.interfaces.IBuddy[source]

This class contains informations about a buddy. A buddy is a Sip user that notify its presence status to sip accounts that are interested to get informations by them.

get_extension()[source]
Returns:the sip extension of this buddy
get_state()[source]
Returns:the current state of this buddy (see most.voip.constants.BuddyState)
get_status_text()[source]
Returns:a textual description of the current status of this buddy
get_uri()[source]
Returns:the sip uri of this buddy
refresh_status()[source]

Refreshes the current status of this buddy

class most.voip.interfaces.ICall[source]

This class contains informations about a call between 2 sip accounts.

get_local_uri()[source]
Returns:the uri of the local sip account
get_remote_uri()[source]
Returns:the uri of the remote sip account
get_state()[source]
Returns:the current state of this call (see most.voip.constants.CallState)
class most.voip.interfaces.IServer[source]

This class contains informations about the remote Sip Server (e.g Asterisk)

get_ip()[source]
Returns:the ip address of the remote sip server
get_state()[source]
Returns:the current status of the sip server (see most.voip.constants.ServerState)