Liblinphone
3.11.1
|
Data Structures | |
struct | _LinphoneCoreVTable |
struct | _LinphoneSipTransports |
Macros | |
#define | LINPHONE_CORE(object) BELLE_SIP_CAST(object, LinphoneCore) |
#define | LC_SIP_TRANSPORT_DISABLED 0 |
#define | LC_SIP_TRANSPORT_RANDOM (-1) |
#define | LC_SIP_TRANSPORT_DONTBIND (-2) |
#define LC_SIP_TRANSPORT_DISABLED 0 |
Disable a sip transport Use with LinphoneSipTransports
#define LC_SIP_TRANSPORT_DONTBIND (-2) |
Don't create any server socket for this transport, ie don't bind on any port. Use with LinphoneSipTransports
#define LC_SIP_TRANSPORT_RANDOM (-1) |
Randomly chose a sip port for this transport Use with LinphoneSipTransports
#define LINPHONE_CORE | ( | object | ) | BELLE_SIP_CAST(object, LinphoneCore) |
Safely down-cast a belle_sip_object_t into LinphoneCore
typedef void(* DisplayMessageCb) (LinphoneCore *lc, const char *message) |
Callback prototype
typedef void(* DisplayStatusCb) (LinphoneCore *lc, const char *message) |
Callback prototype
typedef void(* DisplayUrlCb) (LinphoneCore *lc, const char *message, const char *url) |
Callback prototype
typedef enum _LinphoneAddressFamily LinphoneAddressFamily |
Enum describing Ip family.
typedef enum _LinphoneConfiguringState LinphoneConfiguringState |
LinphoneGlobalState describes the global state of the LinphoneCore object. It is notified via the LinphoneCoreVTable::global_state_changed
typedef struct _LinphoneCore LinphoneCore |
Linphone core main object created by function linphone_core_new() .
Old name of LinphoneCoreCbsAuthenticationRequestedCb.
typedef void(* LinphoneCoreAuthInfoRequestedCb) (LinphoneCore *lc, const char *realm, const char *username, const char *domain) |
Callback for requesting authentication information to application or user.
lc | the LinphoneCore |
realm | the realm (domain) on which authentication is required. |
username | the username that needs to be authenticated. |
domain | the domain on which authentication is required. Application shall reply to this callback using linphone_core_add_auth_info(). |
Old name of LinphoneCoreCbsBuddyInfoUpdatedCb.
Old name of LinphoneCoreCbsCallEncryptionChangedCb.
Old name of LinphoneCoreCbsCallLogUpdatedCb.
Old name of LinphoneCoreCbsCallStateChangedCb.
Old name of LinphoneCoreCbsCallStatsUpdatedCb.
typedef void(* LinphoneCoreCbFunc) (LinphoneCore *lc, void *user_data) |
Callback prototype
typedef struct _LinphoneCoreCbs LinphoneCoreCbs |
That class holds all the callbacks which are called by LinphoneCore.
Use linphone_factory_create_core_cbs() to create an instance. Then, call the callback setters on the events you need to monitor and pass the object to a LinphoneCore instance through linphone_core_add_listener().
That class is inherited from belle_sip_object_t.
typedef void(* LinphoneCoreCbsAuthenticationRequestedCb) (LinphoneCore *lc, LinphoneAuthInfo *auth_info, LinphoneAuthMethod method) |
Callback for requesting authentication information to application or user.
lc | the LinphoneCore |
auth_info | a LinphoneAuthInfo pre-filled with username, realm and domain values as much as possible |
method | the type of authentication requested Application shall reply to this callback using linphone_core_add_auth_info(). |
typedef void(* LinphoneCoreCbsBuddyInfoUpdatedCb) (LinphoneCore *lc, LinphoneFriend *lf) |
Callback prototype
typedef void(* LinphoneCoreCbsCallEncryptionChangedCb) (LinphoneCore *lc, LinphoneCall *call, bool_t on, const char *authentication_token) |
Call encryption changed callback.
lc | the LinphoneCore |
call | the call on which encryption is changed. |
on | whether encryption is activated. |
authentication_token | an authentication_token, currently set for ZRTP kind of encryption only. |
typedef void(* LinphoneCoreCbsCallLogUpdatedCb) (LinphoneCore *lc, LinphoneCallLog *newcl) |
Callback to notify a new call-log entry has been added. This is done typically when a call terminates.
lc | the LinphoneCore |
newcl | the new call log entry added. |
typedef void(* LinphoneCoreCbsCallStateChangedCb) (LinphoneCore *lc, LinphoneCall *call, LinphoneCallState cstate, const char *message) |
Call state notification callback.
lc | the LinphoneCore |
call | the call object whose state is changed. |
cstate | the new state of the call |
message | a non NULL informational message about the state. |
typedef void(* LinphoneCoreCbsCallStatsUpdatedCb) (LinphoneCore *lc, LinphoneCall *call, const LinphoneCallStats *stats) |
Callback for receiving quality statistics for calls.
lc | the LinphoneCore |
call | the call |
stats | the call statistics. |
typedef void(* LinphoneCoreCbsConfiguringStatusCb) (LinphoneCore *lc, LinphoneConfiguringState status, const char *message) |
Callback prototype for configuring status changes notification
lc | the LinphoneCore |
message | informational message. |
typedef void(* LinphoneCoreCbsDtmfReceivedCb) (LinphoneCore *lc, LinphoneCall *call, int dtmf) |
Callback for being notified of DTMFs received.
lc | the linphone core |
call | the call that received the dtmf |
dtmf | the ascii code of the dtmf |
typedef void(* LinphoneCoreCbsFriendListCreatedCb) (LinphoneCore *lc, LinphoneFriendList *list) |
Callback prototype for reporting when a friend list has been added to the core friends list.
[in] | lc | LinphoneCore object |
[in] | list | LinphoneFriendList object |
typedef void(* LinphoneCoreCbsFriendListRemovedCb) (LinphoneCore *lc, LinphoneFriendList *list) |
Callback prototype for reporting when a friend list has been removed from the core friends list.
[in] | lc | LinphoneCore object |
[in] | list | LinphoneFriendList object |
typedef void(* LinphoneCoreCbsGlobalStateChangedCb) (LinphoneCore *lc, LinphoneGlobalState gstate, const char *message) |
Global state notification callback.
lc | the LinphoneCore. |
gstate | the global state |
message | informational message. |
typedef void(* LinphoneCoreCbsInfoReceivedCb) (LinphoneCore *lc, LinphoneCall *call, const LinphoneInfoMessage *msg) |
Callback prototype for receiving info messages.
lc | the LinphoneCore |
call | the call whose info message belongs to. |
msg | the info message. |
typedef void(* LinphoneCoreCbsIsComposingReceivedCb) (LinphoneCore *lc, LinphoneChatRoom *room) |
Is composing notification callback prototype.
[in] | lc | LinphoneCore object |
[in] | room | LinphoneChatRoom involved in the conversation. |
typedef void(* LinphoneCoreCbsLogCollectionUploadProgressIndicationCb) (LinphoneCore *lc, size_t offset, size_t total) |
Callback prototype for reporting log collection upload progress indication.
[in] | lc | LinphoneCore object |
typedef void(* LinphoneCoreCbsLogCollectionUploadStateChangedCb) (LinphoneCore *lc, LinphoneCoreLogCollectionUploadState state, const char *info) |
Callback prototype for reporting log collection upload state change.
[in] | lc | LinphoneCore object |
[in] | state | The state of the log collection upload |
[in] | info | Additional information: error message in case of error state, URL of uploaded file in case of success. |
typedef void(* LinphoneCoreCbsMessageReceivedCb) (LinphoneCore *lc, LinphoneChatRoom *room, LinphoneChatMessage *message) |
Chat message callback prototype
lc | LinphoneCore object |
room | LinphoneChatRoom involved in this conversation. Can be be created by the framework in case the from is not present in any chat room. |
LinphoneChatMessage | incoming message |
typedef void(* LinphoneCoreCbsMessageReceivedUnableDecryptCb) (LinphoneCore *lc, LinphoneChatRoom *room, LinphoneChatMessage *message) |
Chat message not decrypted callback prototype
lc | LinphoneCore object |
room | LinphoneChatRoom involved in this conversation. Can be be created by the framework in case the from is not present in any chat room. |
LinphoneChatMessage | incoming message |
typedef void(* LinphoneCoreCbsNetworkReachableCb) (LinphoneCore *lc, bool_t reachable) |
Callback prototype for reporting network change either automatically detected or notified by linphone_core_set_network_reachable.
lc | the LinphoneCore |
reachable | true if network is reachable. |
typedef void(* LinphoneCoreCbsNewSubscriptionRequestedCb) (LinphoneCore *lc, LinphoneFriend *lf, const char *url) |
Reports that a new subscription request has been received and wait for a decision. Status on this subscription request is notified by changing policy for this friend
lc | LinphoneCore object |
lf | LinphoneFriend corresponding to the subscriber |
url | of the subscriber |
typedef void(* LinphoneCoreCbsNotifyPresenceReceivedCb) (LinphoneCore *lc, LinphoneFriend *lf) |
Report status change for a friend previously added to LinphoneCore.
lc | LinphoneCore object . |
lf | Updated LinphoneFriend . |
typedef void(* LinphoneCoreCbsNotifyPresenceReceivedForUriOrTelCb) (LinphoneCore *lc, LinphoneFriend *lf, const char *uri_or_tel, const LinphonePresenceModel *presence_model) |
Reports presence model change for a specific URI or phone number of a friend
lc | LinphoneCore object |
lf | LinphoneFriend object |
uri_or_tel | The URI or phone number for which teh presence model has changed |
presence_model | The new presence model |
typedef void(* LinphoneCoreCbsReferReceivedCb) (LinphoneCore *lc, const char *refer_to) |
Callback prototype
typedef void(* LinphoneCoreCbsRegistrationStateChangedCb) (LinphoneCore *lc, LinphoneProxyConfig *cfg, LinphoneRegistrationState cstate, const char *message) |
Registration state notification callback prototype
typedef void(* LinphoneCoreCbsTransferStateChangedCb) (LinphoneCore *lc, LinphoneCall *transfered, LinphoneCallState new_call_state) |
Callback for notifying progresses of transfers.
lc | the LinphoneCore |
transfered | the call that was transfered |
new_call_state | the state of the call to transfer target at the far end. |
Old name of LinphoneCoreCbsConfiguringStatusCb.
Old name of LinphoneCoreCbsDtmfReceivedCb.
typedef void(* LinphoneCoreFileTransferProgressIndicationCb) (LinphoneCore *lc, LinphoneChatMessage *message, const LinphoneContent *content, size_t offset, size_t total) |
File transfer progress indication callback prototype.
lc | LinphoneCore object |
message | LinphoneChatMessage message from which the body is received. |
content | LinphoneContent incoming content information |
offset | The number of bytes sent/received since the beginning of the transfer. |
total | The total number of bytes to be sent/received. |
typedef void(* LinphoneCoreFileTransferRecvCb) (LinphoneCore *lc, LinphoneChatMessage *message, const LinphoneContent *content, const char *buff, size_t size) |
File transfer receive callback prototype. This function is called by the core upon an incoming File transfer is started. This function may be call several time for the same file in case of large file.
lc | LinphoneCore object |
message | LinphoneChatMessage message from which the body is received. |
content | LinphoneContent incoming content information |
buff | pointer to the received data |
size | number of bytes to be read from buff. 0 means end of file. |
typedef void(* LinphoneCoreFileTransferSendCb) (LinphoneCore *lc, LinphoneChatMessage *message, const LinphoneContent *content, char *buff, size_t *size) |
File transfer send callback prototype. This function is called by the core upon an outgoing file transfer is started. This function is called until size is set to 0.
lc | LinphoneCore object |
message | LinphoneChatMessage message from which the body is received. |
content | LinphoneContent outgoing content |
buff | pointer to the buffer where data chunk shall be written by the app |
size | as input value, it represents the number of bytes expected by the framework. As output value, it means the number of bytes wrote by the application in the buffer. 0 means end of file. |
Old name of LinphoneCoreCbsFriendListCreatedCb.
Old name of LinphoneCoreCbsFriendListRemovedCb.
Old name of LinphoneCoreCbsGlobalStateChangedCb.
Old name of LinphoneCoreCbsInfoReceivedCb.
Old name of LinphoneCoreCbsIsComposingReceivedCb.
LinphoneCoreLogCollectionUploadState is used to notify if log collection upload have been succesfully delivered or not.
typedef LinphoneCoreCbsLogCollectionUploadStateChangedCb LinphoneCoreLogCollectionUploadStateChangedCb |
Old name of LinphoneCoreCbsLogCollectionUploadStateChangedCb.
Old name of LinphoneCoreCbsMessageReceivedCb.
Old name of LinphoneCoreCbsNetworkReachableCb.
Old name of LinphoneCoreCbsNewSubscriptionRequestedCb.
Old name of LinphoneCoreCbsNotifyPresenceReceivedCb.
typedef LinphoneCoreCbsNotifyPresenceReceivedForUriOrTelCb LinphoneCoreNotifyPresenceReceivedForUriOrTelCb |
Old name of LinphoneCoreCbsNotifyPresenceReceivedForUriOrTelCb.
Old name of LinphoneCoreCbsReferReceivedCb.
Old name of LinphoneCoreCbsRegistrationStateChangedCb.
typedef void(* LinphoneCoreTextMessageReceivedCb) (LinphoneCore *lc, LinphoneChatRoom *room, const LinphoneAddress *from, const char *message) |
Callback prototype
lc | LinphoneCore object |
room | LinphoneChatRoom involved in this conversation. Can be be created by the framework in case the from is not present in any chat room. |
from | LinphoneAddress from |
message | incoming message |
Old name of LinphoneCoreCbsTransferStateChangedCb.
typedef struct _LinphoneCoreVTable LinphoneCoreVTable |
This structure holds all callbacks that the application should implement. None is mandatory.
typedef struct _LinphoneFactory LinphoneFactory |
LinphoneFactory is a singleton object devoted to the creation of all the object of Liblinphone that cannot created by LinphoneCore or LinphoneCore itself.
typedef enum _LinphoneGlobalState LinphoneGlobalState |
LinphoneGlobalState describes the global state of the LinphoneCore object. It is notified via the LinphoneCoreVTable::global_state_changed
typedef enum _LinphoneIceState LinphoneIceState |
Enum describing ICE states.
typedef struct _LinphoneSipTransports LinphoneSipTransports |
Linphone core SIP transport ports. Special values LC_SIP_TRANSPORT_RANDOM, LC_SIP_TRANSPORT_RANDOM, LC_SIP_TRANSPORT_DONTBIND can be used. Use with linphone_core_set_sip_transports
typedef enum _LinphoneStreamType LinphoneStreamType |
Enum describing the stream types.
typedef enum _LinphoneUpnpState LinphoneUpnpState |
Enum describing uPnP states.
typedef void(* ShowInterfaceCb) (LinphoneCore *lc) |
Callback prototype
LinphoneGlobalState describes the global state of the LinphoneCore object. It is notified via the LinphoneCoreVTable::global_state_changed
LinphoneCoreLogCollectionUploadState is used to notify if log collection upload have been succesfully delivered or not.
enum _LinphoneGlobalState |
LinphoneGlobalState describes the global state of the LinphoneCore object. It is notified via the LinphoneCoreVTable::global_state_changed
enum _LinphoneIceState |
Enum describing ICE states.
enum _LinphoneStreamType |
Enum describing the stream types.
enum _LinphoneUpnpState |
Enum describing uPnP states.
void linphone_core_add_callbacks | ( | LinphoneCore * | lc, |
LinphoneCoreCbs * | cbs | ||
) |
Add a listener in order to be notified of LinphoneCore events. Once an event is received, registred LinphoneCoreCbs are sequencially invoked in order.
lc | The LinphoneCore object to monitor. |
cbs | A LinphoneCoreCbs object holding the callbakcs you need. A reference is take by LinphoneCore until you invoke linphone_core_remove_cbs(). |
LINPHONE_DEPRECATED void linphone_core_add_listener | ( | LinphoneCore * | lc, |
LinphoneCoreVTable * | vtable | ||
) |
add a listener to be notified of linphone core events. Once events are received, registered vtable are invoked in order.
vtable | a LinphoneCoreVTable structure holding your application callbacks. Object is owned by linphone core until linphone_core_remove_listener. |
lc | object |
void linphone_core_add_supported_tag | ( | LinphoneCore * | core, |
const char * | tag | ||
) |
This function controls signaling features supported by the core. They are typically included in a SIP Supported header.
[in] | core | LinphoneCore object |
[in] | tag | The feature tag name |
void* linphone_core_cbs_get_user_data | ( | const LinphoneCoreCbs * | cbs | ) |
Get the user pointer.
LinphoneCoreCbs* linphone_core_cbs_ref | ( | LinphoneCoreCbs * | cbs | ) |
Increment the reference counter.
void linphone_core_cbs_set_authentication_requested | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsAuthenticationRequestedCb | cb | ||
) |
Set the LinphoneCoreCbsAuthenticationRequestedCb callback.'
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_buddy_info_updated | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsBuddyInfoUpdatedCb | cb | ||
) |
Set the LinphoneCoreCbsBuddyInfoUpdatedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_call_encryption_changed | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsCallEncryptionChangedCb | cb | ||
) |
Set the LinphoneCoreCbsCallEncryptionChangedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_call_log_updated | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsCallLogUpdatedCb | cb | ||
) |
Set the LinphoneCoreCbsCallLogUpdatedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_call_state_changed | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsCallStateChangedCb | cb | ||
) |
Set the LinphoneCoreCbsCallStateChangedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_call_stats_updated | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsCallStatsUpdatedCb | cb | ||
) |
Set the LinphoneCoreCbsCallStatsUpdatedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_configuring_status | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsConfiguringStatusCb | cb | ||
) |
Set the LinphoneCoreCbsConfiguringStatusCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_dtmf_received | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsDtmfReceivedCb | cb | ||
) |
Set the LinphoneCoreCbsDtmfReceivedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_friend_list_created | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsFriendListCreatedCb | cb | ||
) |
Set the LinphoneCoreCbsFriendListCreatedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_friend_list_removed | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsFriendListRemovedCb | cb | ||
) |
Set the LinphoneCoreCbsFriendListRemovedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_info_received | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsInfoReceivedCb | cb | ||
) |
Set the LinphoneCoreCbsInfoReceivedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_is_composing_received | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsIsComposingReceivedCb | cb | ||
) |
Set the LinphoneCoreCbsIsComposingReceivedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_log_collection_upload_progress_indication | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsLogCollectionUploadProgressIndicationCb | cb | ||
) |
Set the LinphoneCoreCbsLogCollectionUploadProgressIndicationCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_log_collection_upload_state_changed | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsLogCollectionUploadStateChangedCb | cb | ||
) |
Set the LinphoneCoreCbsLogCollectionUploadStateChangedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_message_received | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsMessageReceivedCb | cb | ||
) |
Set the LinphoneCoreCbsMessageReceivedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_network_reachable | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsNetworkReachableCb | cb | ||
) |
Set the LinphoneCoreCbsNetworkReachableCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_new_subscription_requested | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsNewSubscriptionRequestedCb | cb | ||
) |
Set the LinphoneCoreCbsNewSubscriptionRequestedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_notify_presence_received | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsNotifyPresenceReceivedCb | cb | ||
) |
Set the LinphoneCoreCbsNotifyPresenceReceivedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_notify_presence_received_for_uri_or_tel | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsNotifyPresenceReceivedForUriOrTelCb | cb | ||
) |
Set the LinphoneCoreCbsNotifyPresenceReceivedForUriOrTelCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_notify_received | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsNotifyReceivedCb | cb | ||
) |
Set the LinphoneCoreCbsNotifyReceivedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_publish_state_changed | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsPublishStateChangedCb | cb | ||
) |
Set the LinphoneCoreCbsPublishStateChangedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_refer_received | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsReferReceivedCb | cb | ||
) |
Set the LinphoneCoreCbsReferReceivedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_registration_state_changed | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsRegistrationStateChangedCb | cb | ||
) |
Set the LinphoneCoreCbsRegistrationStateChangedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_subscription_state_changed | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsSubscriptionStateChangedCb | cb | ||
) |
Set the LinphoneCoreCbsSubscriptionStateChangedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_transfer_state_changed | ( | LinphoneCoreCbs * | cbs, |
LinphoneCoreCbsTransferStateChangedCb | cb | ||
) |
Set the LinphoneCoreCbsTransferStateChangedCb callback.
[in] | cbs | A LinphoneCoreCbs. |
[in] | cb | The callback. |
void linphone_core_cbs_set_user_data | ( | LinphoneCoreCbs * | cbs, |
void * | user_data | ||
) |
Set private data to be get from each callbacks.
void linphone_core_cbs_unref | ( | LinphoneCoreCbs * | cbs | ) |
Decrement the reference counter.
char* linphone_core_compress_log_collection | ( | void | ) |
Compress the log collection in a single file.
LINPHONE_DEPRECATED void linphone_core_destroy | ( | LinphoneCore * | lc | ) |
Destroys a LinphoneCore
[in] | lc | LinphoneCore object |
LINPHONE_DEPRECATED void linphone_core_disable_logs | ( | void | ) |
Entirely disable logging.
void linphone_core_enable_log_collection | ( | LinphoneLogCollectionState | state | ) |
Enable the linphone core log collection to upload logs on a server.
[in] | state | LinphoneLogCollectionState value telling whether to enable log collection or not. |
LINPHONE_DEPRECATED void linphone_core_enable_logs | ( | FILE * | file | ) |
Enable logs in supplied FILE*.
file | a C FILE* where to fprintf logs. If null stdout is used. |
LINPHONE_DEPRECATED void linphone_core_enable_logs_with_cb | ( | OrtpLogFunc | logfunc | ) |
Enable logs through the user's supplied log callback.
logfunc | The address of a OrtpLogFunc callback whose protoype is typedef void (*OrtpLogFunc)(OrtpLogLevel lev, const char *fmt, va_list args); |
LinphoneCoreCbs* linphone_core_get_current_callbacks | ( | const LinphoneCore * | lc | ) |
Gets the current LinphoneCoreCbs. This is meant only to be called from a callback to be able to get the user_data associated with the LinphoneCoreCbs that is calling the callback.
lc | the linphonecore |
LinphoneCoreVTable* linphone_core_get_current_vtable | ( | LinphoneCore * | lc | ) |
Gets the current VTable. This is meant only to be called from a callback to be able to get the user_data associated with the vtable that called the callback.
lc | the linphonecore |
size_t linphone_core_get_log_collection_max_file_size | ( | void | ) |
Get the max file size in bytes of the files used for log collection.
const char* linphone_core_get_log_collection_path | ( | void | ) |
Get the path where the log files will be written for log collection.
const char* linphone_core_get_log_collection_prefix | ( | void | ) |
Get the prefix of the filenames that will be used for log collection.
int linphone_core_get_max_calls | ( | LinphoneCore * | lc | ) |
Get the maximum number of simultaneous calls Linphone core can manage at a time. All new call above this limit are declined with a busy answer
lc | core |
const char* linphone_core_get_provisioning_uri | ( | const LinphoneCore * | lc | ) |
Get provisioning URI.
lc | the linphone core |
const char* linphone_core_get_root_ca | ( | LinphoneCore * | lc | ) |
Gets the path to a file or folder containing the trusted root CAs (PEM format)
[in] | lc | LinphoneCore object |
const char* linphone_core_get_user_agent | ( | LinphoneCore * | lc | ) |
LINPHONE_DEPRECATED const char* linphone_core_get_user_agent_name | ( | void | ) |
LINPHONE_DEPRECATED const char* linphone_core_get_user_agent_version | ( | void | ) |
const char* linphone_core_get_user_certificates_path | ( | LinphoneCore * | lc | ) |
Get the path to the directory storing the user's certificates.
[in] | lc | LinphoneCore object. |
void* linphone_core_get_user_data | ( | const LinphoneCore * | lc | ) |
Retrieves the user pointer that was given to linphone_core_new()
[in] | lc | LinphoneCore object |
const char* linphone_core_get_version | ( | void | ) |
Returns liblinphone's version as a string.
const char* linphone_core_get_zrtp_secrets_file | ( | LinphoneCore * | lc | ) |
Get the path to the file storing the zrtp secrets cache.
[in] | lc | LinphoneCore object. |
void linphone_core_iterate | ( | LinphoneCore * | lc | ) |
Main loop function. It is crucial that your application call it periodically.
linphone_core_iterate() performs various backgrounds tasks:
[in] | lc | LinphoneCore object |
LinphoneLogCollectionState linphone_core_log_collection_enabled | ( | void | ) |
Tells whether the linphone core log collection is enabled.
bool_t linphone_core_media_encryption_supported | ( | const LinphoneCore * | lc, |
LinphoneMediaEncryption | menc | ||
) |
Check if a media encryption type is supported
lc | core |
menc | LinphoneMediaEncryption |
void linphone_core_migrate_friends_from_rc_to_db | ( | LinphoneCore * | lc | ) |
Migrates the friends from the linphonerc to the database if not done yet
lc | the linphone core |
void linphone_core_migrate_logs_from_rc_to_db | ( | LinphoneCore * | lc | ) |
Migrates the call logs from the linphonerc to the database if not done yet
lc | the linphone core |
int linphone_core_migrate_to_multi_transport | ( | LinphoneCore * | lc | ) |
Migrate configuration so that all SIP transports are enabled. Versions of linphone < 3.7 did not support using multiple SIP transport simultaneously. This function helps application to migrate the configuration so that all transports are enabled. Existing proxy configuration are added a transport parameter so that they continue using the unique transport that was set previously. This function must be used just after creating the core, before any call to linphone_core_iterate()
lc | the linphone core |
LINPHONE_DEPRECATED LinphoneCore* linphone_core_new | ( | const LinphoneCoreVTable * | vtable, |
const char * | config_path, | ||
const char * | factory_config_path, | ||
void * | userdata | ||
) |
Instanciates a LinphoneCore object.
The LinphoneCore object is the primary handle for doing all phone actions. It should be unique within your application.
vtable | a LinphoneCoreVTable structure holding your application callbacks |
config_path | a path to a config file. If it does not exists it will be created. The config file is used to store all settings, call logs, friends, proxies... so that all these settings become persistent over the life of the LinphoneCore object. It is allowed to set a NULL config file. In that case LinphoneCore will not store any settings. |
factory_config_path | a path to a read-only config file that can be used to to store hard-coded preference such as proxy settings or internal preferences. The settings in this factory file always override the one in the normal config file. It is OPTIONAL, use NULL if unneeded. |
userdata | an opaque user pointer that can be retrieved at any time (for example in callbacks) using linphone_core_get_user_data(). |
LINPHONE_DEPRECATED LinphoneCore* linphone_core_new_with_config | ( | const LinphoneCoreVTable * | vtable, |
LpConfig * | config, | ||
void * | userdata | ||
) |
Instantiates a LinphoneCore object with a given LpConfig.
The LinphoneCore object is the primary handle for doing all phone actions. It should be unique within your application.
vtable | a LinphoneCoreVTable structure holding your application callbacks |
config | a pointer to an LpConfig object holding the configuration of the LinphoneCore to be instantiated. |
userdata | an opaque user pointer that can be retrieved at any time (for example in callbacks) using linphone_core_get_user_data(). |
LinphoneCore* linphone_core_ref | ( | LinphoneCore * | lc | ) |
Increment the reference counter of a LinphoneCore object.
lc | The LinphoneCore which the ref counter is to be incremented. |
void linphone_core_reload_ms_plugins | ( | LinphoneCore * | lc, |
const char * | path | ||
) |
Reload mediastreamer2 plugins from specified directory.
[in] | lc | LinphoneCore object. |
[in] | path | the path from where plugins are to be loaded, pass NULL to use default (compile-time determined) plugin directory. |
void linphone_core_remove_callbacks | ( | LinphoneCore * | lc, |
const LinphoneCoreCbs * | cbs | ||
) |
Remove a listener from a LinphoneCore
lc | The LinphoneCore |
cbs | The pointer on the LinphoneCoreCbs to remove. |
LINPHONE_DEPRECATED void linphone_core_remove_listener | ( | LinphoneCore * | lc, |
const LinphoneCoreVTable * | vtable | ||
) |
remove a listener registred by linphone_core_add_listener.
lc | object |
vtable | a LinphoneCoreVTable structure holding your application callbacks. |
void linphone_core_remove_supported_tag | ( | LinphoneCore * | core, |
const char * | tag | ||
) |
Remove a supported tag.
[in] | core | LinphoneCore object |
[in] | tag | The tag to remove |
void linphone_core_reset_log_collection | ( | void | ) |
Reset the log collection by removing the log files.
void linphone_core_serialize_logs | ( | void | ) |
Enable logs serialization (output logs from either the thread that creates the linphone core or the thread that calls linphone_core_iterate()). Must be called before creating the linphone core.
void linphone_core_set_call_logs_database_path | ( | LinphoneCore * | lc, |
const char * | path | ||
) |
Sets the database filename where call logs will be stored. If the file does not exist, it will be created.
lc | the linphone core |
path | filesystem path |
void linphone_core_set_friends_database_path | ( | LinphoneCore * | lc, |
const char * | path | ||
) |
Sets the database filename where friends will be stored. If the file does not exist, it will be created.
lc | the linphone core |
path | filesystem path |
void linphone_core_set_log_collection_max_file_size | ( | size_t | size | ) |
Set the max file size in bytes of the files used for log collection. Warning: this function should only not be used to change size dynamically but instead only before calling
[in] | size | The max file size in bytes of the files used for log collection. |
void linphone_core_set_log_collection_path | ( | const char * | path | ) |
Set the path where the log files will be written for log collection.
[in] | path | The path where the log files will be written. |
void linphone_core_set_log_collection_prefix | ( | const char * | prefix | ) |
Set the prefix of the filenames that will be used for log collection.
[in] | prefix | The prefix to use for the filenames for log collection. |
void linphone_core_set_log_collection_upload_server_url | ( | LinphoneCore * | core, |
const char * | server_url | ||
) |
Set the url of the server where to upload the collected log files.
[in] | core | LinphoneCore object |
[in] | server_url | The url of the server where to upload the collected log files. |
void linphone_core_set_log_file | ( | FILE * | file | ) |
Define a log file.
If the file pointer passed as an argument is NULL, stdout is used instead.
file | A pointer to the FILE structure of the file to write to. |
void linphone_core_set_log_handler | ( | OrtpLogFunc | logfunc | ) |
Define a log handler.
logfunc | The function pointer of the log handler. |
void linphone_core_set_log_level | ( | OrtpLogLevel | loglevel | ) |
Define the minimum level for logging.
loglevel | Minimum level for logging messages. |
void linphone_core_set_log_level_mask | ( | unsigned int | loglevel | ) |
Define the log level using mask.
The loglevel parameter is a bitmask parameter. Therefore to enable only warning and error messages, use ORTP_WARNING | ORTP_ERROR. To disable logs, simply set loglevel to 0.
loglevel | A bitmask of the log levels to set. |
void linphone_core_set_max_calls | ( | LinphoneCore * | lc, |
int | max | ||
) |
Set the maximum number of simultaneous calls Linphone core can manage at a time. All new call above this limit are declined with a busy answer
lc | core |
max | number of simultaneous calls |
int linphone_core_set_provisioning_uri | ( | LinphoneCore * | lc, |
const char * | uri | ||
) |
Set URI where to download xml configuration file at startup. This can also be set from configuration file or factory config file, from [misc] section, item "config-uri". Calling this function does not load the configuration. It will write the value into configuration so that configuration from remote URI will take place at next LinphoneCore start.
lc | the linphone core |
uri | the http or https uri to use in order to download the configuration. Passing NULL will disable remote provisioning. |
void linphone_core_set_root_ca | ( | LinphoneCore * | lc, |
const char * | path | ||
) |
Sets the path to a file or folder containing trusted root CAs (PEM format)
[in] | lc | LinphoneCore object |
[in] | path | The path to a file or folder containing trusted root CAs |
void linphone_core_set_root_ca_data | ( | LinphoneCore * | lc, |
const char * | data | ||
) |
Sets the trusted root CAs (PEM format)
[in] | lc | LinphoneCore object |
[in] | data | The trusted root CAs as a string |
void linphone_core_set_ssl_config | ( | LinphoneCore * | lc, |
void * | ssl_config | ||
) |
Set the pointer to an externally provided ssl configuration for the crypto library
lc | LinphoneCore object | |
[in] | ssl_config | A pointer to an opaque structure which will be provided directly to the crypto library used in bctoolbox. Use with extra care. This ssl_config structure is responsibility of the caller and will not be freed at the connection's end. |
void linphone_core_set_user_certificates_path | ( | LinphoneCore * | lc, |
const char * | path | ||
) |
Set the path to the directory storing the user's x509 certificates (used by dtls)
[in] | lc | LinphoneCore object |
[in] | path | The path to the directory to use to store the user's certificates. |
void linphone_core_set_user_data | ( | LinphoneCore * | lc, |
void * | userdata | ||
) |
Associate a user pointer to the linphone core.
[in] | lc | LinphoneCore object |
[in] | userdata | The user data to associate with the LinphoneCore object |
void linphone_core_set_zrtp_secrets_file | ( | LinphoneCore * | lc, |
const char * | file | ||
) |
Set the path to the file storing the zrtp secrets cache.
[in] | lc | LinphoneCore object |
[in] | file | The path to the file to use to store the zrtp secrets cache. |
void linphone_core_unref | ( | LinphoneCore * | lc | ) |
Decrement the ref counter of a LinphoneCore object and destroy it if the counter reach 0.
lc | The LinphoneCore which the reference counter is to be decreased. |
void linphone_core_upload_log_collection | ( | LinphoneCore * | core | ) |
Upload the log collection to the configured server url.
[in] | core | LinphoneCore object |
void linphone_core_v_table_destroy | ( | LinphoneCoreVTable * | table | ) |
Destroy a vtable.
table | to be destroyed |
void* linphone_core_v_table_get_user_data | ( | const LinphoneCoreVTable * | table | ) |
Gets a user data pointer in the vtable.
table | the vtable |
LinphoneCoreVTable* linphone_core_v_table_new | ( | void | ) |
Instantiate a vtable with all arguments set to NULL
void linphone_core_v_table_set_user_data | ( | LinphoneCoreVTable * | table, |
void * | data | ||
) |
Sets a user data pointer in the vtable.
table | the vtable |
data | the user data to attach |
void linphone_core_verify_server_certificates | ( | LinphoneCore * | lc, |
bool_t | yesno | ||
) |
Specify whether the tls server certificate must be verified when connecting to a SIP/TLS server.
[in] | lc | LinphoneCore object |
[in] | yesno | A boolean value telling whether the tls server certificate must be verified |
void linphone_core_verify_server_cn | ( | LinphoneCore * | lc, |
bool_t | yesno | ||
) |
Specify whether the tls server certificate common name must be verified when connecting to a SIP/TLS server.
[in] | lc | LinphoneCore object |
[in] | yesno | A boolean value telling whether the tls server certificate common name must be verified |
void linphone_factory_clean | ( | void | ) |
Clean the factory. This function is generally useless as the factory is unique per process, however calling this function at the end avoid getting reports from belle-sip leak detector about memory leaked in linphone_factory_get().
LinphoneAddress* linphone_factory_create_address | ( | const LinphoneFactory * | factory, |
const char * | addr | ||
) |
Parse a string holding a SIP URI and create the according LinphoneAddress object.
factory | The LinphoneFactory singleton. |
addr | A string holding the SIP URI to parse. |
LinphoneAuthInfo* linphone_factory_create_auth_info | ( | const LinphoneFactory * | factory, |
const char * | username, | ||
const char * | userid, | ||
const char * | passwd, | ||
const char * | ha1, | ||
const char * | realm, | ||
const char * | domain | ||
) |
Creates a LinphoneAuthInfo object. The object can be created empty, that is with all arguments set to NULL. Username, userid, password, realm and domain can be set later using specific methods. At the end, username and passwd (or ha1) are required.
factory | The LinphoneFactory singleton. |
username | The username that needs to be authenticated |
userid | The userid used for authenticating (use NULL if you don't know what it is) |
passwd | The password in clear text |
ha1 | The ha1-encrypted password if password is not given in clear text. |
realm | The authentication domain (which can be larger than the sip domain. Unfortunately many SIP servers don't use this parameter. |
domain | The SIP domain for which this authentication information is valid, if it has to be restricted for a single SIP domain. |
LinphoneCore* linphone_factory_create_core | ( | const LinphoneFactory * | factory, |
LinphoneCoreCbs * | cbs, | ||
const char * | config_path, | ||
const char * | factory_config_path | ||
) |
Instanciate a LinphoneCore object.
The LinphoneCore object is the primary handle for doing all phone actions. It should be unique within your application.
factory | The LinphoneFactory singleton. |
cbs | a LinphoneCoreCbs object holding your application callbacks. A reference will be taken on it until the destruciton of the core or the unregistration with linphone_core_remove_cbs(). |
config_path | a path to a config file. If it does not exists it will be created. The config file is used to store all settings, call logs, friends, proxies... so that all these settings become persistent over the life of the LinphoneCore object. It is allowed to set a NULL config file. In that case LinphoneCore will not store any settings. |
factory_config_path | a path to a read-only config file that can be used to to store hard-coded preference such as proxy settings or internal preferences. The settings in this factory file always override the one in the normal config file. It is OPTIONAL, use NULL if unneeded. |
LinphoneCoreCbs* linphone_factory_create_core_cbs | ( | const LinphoneFactory * | factory | ) |
Instanciate a LinphoneCoreCbs object.
LinphoneCore* linphone_factory_create_core_with_config | ( | const LinphoneFactory * | factory, |
LinphoneCoreCbs * | cbs, | ||
LinphoneConfig * | config | ||
) |
Instantiates a LinphoneCore object with a given LpConfig.
factory | The LinphoneFactory singleton. The LinphoneCore object is the primary handle for doing all phone actions. It should be unique within your application. |
cbs | a LinphoneCoreCbs object holding your application callbacks. A reference will be taken on it until the destruciton of the core or the unregistration with linphone_core_remove_cbs(). |
config | a pointer to an LpConfig object holding the configuration of the LinphoneCore to be instantiated. |
LinphoneVcard* linphone_factory_create_vcard | ( | LinphoneFactory * | factory | ) |
Create an empty LinphoneVcard.
LinphoneFactory* linphone_factory_get | ( | void | ) |
Create the LinphoneFactory if that has not been done and return a pointer on it.
const char* linphone_stream_type_to_string | ( | const LinphoneStreamType | ) |
Function returning a human readable value for LinphoneStreamType.