Liblinphone
4.5.0
|
Managing generic subscriptions and publishes. More...
Typedefs | |
typedef void(* | LinphoneCoreCbsNotifyReceivedCb) (LinphoneCore *core, LinphoneEvent *linphone_event, const char *notified_event, const LinphoneContent *body) |
Callback prototype for notifying the application about notification received from the network. More... | |
typedef LinphoneCoreCbsNotifyReceivedCb | LinphoneCoreNotifyReceivedCb |
Old name of LinphoneCoreCbsNotifyReceivedCb. | |
typedef void(* | LinphoneCoreCbsSubscribeReceivedCb) (LinphoneCore *core, LinphoneEvent *linphone_event, const char *subscribe_event, const LinphoneContent *body) |
Callback prototype for notifying the application about subscription received from the network. More... | |
typedef LinphoneCoreCbsSubscribeReceivedCb | LinphoneCoreSubscribeReceivedCb |
Old name of LinphoneCoreCbsSubscribeReceivedCb. | |
typedef void(* | LinphoneCoreCbsSubscriptionStateChangedCb) (LinphoneCore *core, LinphoneEvent *linphone_event, LinphoneSubscriptionState state) |
Callback prototype for notifying the application about changes of subscription states, including arrival of new subscriptions. More... | |
typedef LinphoneCoreCbsSubscriptionStateChangedCb | LinphoneCoreSubscriptionStateChangedCb |
Old name of LinphoneCoreCbsSubscriptionStateChangedCb. | |
typedef void(* | LinphoneCoreCbsPublishStateChangedCb) (LinphoneCore *core, LinphoneEvent *linphone_event, LinphonePublishState state) |
Callback prototype for notifying the application about changes of publish states. More... | |
typedef LinphoneCoreCbsPublishStateChangedCb | LinphoneCorePublishStateChangedCb |
Old name of LinphoneCoreCbsPublishStateChangedCb. | |
typedef void(* | LinphoneEventCbsNotifyResponseCb) (const LinphoneEvent *linphone_event) |
Callback used to notify the response to a sent NOTIFY. More... | |
typedef struct _LinphoneEvent | LinphoneEvent |
Object representing an event state, which is subcribed or published. More... | |
typedef struct _LinphoneEventCbs | LinphoneEventCbs |
An object to handle the callbacks for handling the LinphoneEvent operations. | |
typedef enum _LinphonePublishState | LinphonePublishState |
Enum for publish states. | |
typedef enum _LinphoneSubscriptionDir | LinphoneSubscriptionDir |
Enum for subscription direction (incoming or outgoing). | |
typedef enum _LinphoneSubscriptionState | LinphoneSubscriptionState |
Enum for subscription states. More... | |
Enumerations | |
enum | _LinphonePublishState { LinphonePublishNone, LinphonePublishProgress, LinphonePublishOk, LinphonePublishError, LinphonePublishExpiring, LinphonePublishCleared } |
Enum for publish states. More... | |
enum | _LinphoneSubscriptionDir { LinphoneSubscriptionIncoming, LinphoneSubscriptionOutgoing, LinphoneSubscriptionInvalidDir } |
Enum for subscription direction (incoming or outgoing). More... | |
enum | _LinphoneSubscriptionState { LinphoneSubscriptionNone, LinphoneSubscriptionOutgoingProgress, LinphoneSubscriptionIncomingReceived, LinphoneSubscriptionPending, LinphoneSubscriptionActive, LinphoneSubscriptionTerminated, LinphoneSubscriptionError, LinphoneSubscriptionExpiring } |
Enum for subscription states. More... | |
Functions | |
LinphoneEvent * | linphone_core_subscribe (LinphoneCore *core, const LinphoneAddress *resource, const char *event, int expires, const LinphoneContent *body) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body. More... | |
LinphoneEvent * | linphone_core_create_subscribe (LinphoneCore *core, const LinphoneAddress *resource, const char *event, int expires) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body. More... | |
LinphoneEvent * | linphone_core_create_subscribe_2 (LinphoneCore *core, const LinphoneAddress *resource, LinphoneProxyConfig *proxy, const char *event, int expires) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body. More... | |
LinphoneEvent * | linphone_core_create_notify (LinphoneCore *core, const LinphoneAddress *resource, const char *event) |
Create an out-of-dialog notification, specifying the destination resource, the event name. More... | |
LinphoneEvent * | linphone_core_publish (LinphoneCore *core, const LinphoneAddress *resource, const char *event, int expires, const LinphoneContent *body) |
Publish an event state. More... | |
LinphoneEvent * | linphone_core_create_publish (LinphoneCore *core, const LinphoneAddress *resource, const char *event, int expires) |
Create a publish context for an event state. More... | |
LinphoneEvent * | linphone_core_create_one_shot_publish (LinphoneCore *core, const LinphoneAddress *resource, const char *event) |
Create a publish context for a one-shot publish. More... | |
LinphoneStatus | linphone_event_send_subscribe (LinphoneEvent *linphone_event, const LinphoneContent *body) |
Send a subscription previously created by linphone_core_create_subscribe(). More... | |
LinphoneStatus | linphone_event_update_subscribe (LinphoneEvent *linphone_event, const LinphoneContent *body) |
Update (refresh) an outgoing subscription, changing the body. More... | |
LinphoneStatus | linphone_event_refresh_subscribe (LinphoneEvent *linphone_event) |
Refresh an outgoing subscription keeping the same body. More... | |
LinphoneStatus | linphone_event_accept_subscription (LinphoneEvent *linphone_event) |
Accept an incoming subcription. More... | |
LinphoneStatus | linphone_event_deny_subscription (LinphoneEvent *linphone_event, LinphoneReason reason) |
Deny an incoming subscription with given reason. More... | |
LinphoneStatus | linphone_event_notify (LinphoneEvent *linphone_event, const LinphoneContent *body) |
Send a notification. More... | |
LinphoneStatus | linphone_event_send_publish (LinphoneEvent *linphone_event, const LinphoneContent *body) |
Send a publish created by linphone_core_create_publish(). More... | |
LinphoneStatus | linphone_event_update_publish (LinphoneEvent *linphone_event, const LinphoneContent *body) |
Update (refresh) a publish. More... | |
LinphoneStatus | linphone_event_refresh_publish (LinphoneEvent *linphone_event) |
Refresh an outgoing publish keeping the same body. More... | |
void | linphone_event_pause_publish (LinphoneEvent *linphone_event) |
Prevent an event from refreshing its publish. More... | |
LinphoneReason | linphone_event_get_reason (const LinphoneEvent *linphone_event) |
Return reason code (in case of error state reached). More... | |
const LinphoneErrorInfo * | linphone_event_get_error_info (const LinphoneEvent *linphone_event) |
Get full details about an error occured. More... | |
LinphoneSubscriptionState | linphone_event_get_subscription_state (const LinphoneEvent *linphone_event) |
Get subscription state. More... | |
LinphonePublishState | linphone_event_get_publish_state (const LinphoneEvent *linphone_event) |
Get publish state. More... | |
LinphoneSubscriptionDir | linphone_event_get_subscription_dir (LinphoneEvent *linphone_event) |
Get subscription direction. More... | |
void | linphone_event_set_user_data (LinphoneEvent *linphone_event, void *user_data) |
Set a user (application) pointer. More... | |
void * | linphone_event_get_user_data (const LinphoneEvent *linphone_event) |
Retrieve user pointer. More... | |
void | linphone_event_add_custom_header (LinphoneEvent *linphone_event, const char *name, const char *value) |
Add a custom header to an outgoing susbscription or publish. More... | |
void | linphone_event_remove_custom_header (LinphoneEvent *ev, const char *name) |
Remove custom header to an outgoing susbscription or publish. More... | |
const char * | linphone_event_get_custom_header (LinphoneEvent *linphone_event, const char *name) |
Obtain the value of a given header for an incoming subscription. More... | |
void | linphone_event_terminate (LinphoneEvent *linphone_event) |
Terminate an incoming or outgoing subscription that was previously acccepted, or a previous publication. More... | |
LinphoneEvent * | linphone_event_ref (LinphoneEvent *linphone_event) |
Increase reference count of LinphoneEvent. More... | |
void | linphone_event_unref (LinphoneEvent *linphone_event) |
Decrease reference count. More... | |
const char * | linphone_event_get_name (const LinphoneEvent *linphone_event) |
Get the name of the event as specified in the event package RFC. More... | |
const LinphoneAddress * | linphone_event_get_from (const LinphoneEvent *linphone_event) |
Get the "from" address of the subscription. More... | |
const LinphoneAddress * | linphone_event_get_to (const LinphoneEvent *lev) |
Get the "to" address of the subscription. More... | |
const LinphoneAddress * | linphone_event_get_resource (const LinphoneEvent *linphone_event) |
Get the resource address of the subscription or publish. More... | |
const LinphoneAddress * | linphone_event_get_remote_contact (const LinphoneEvent *linphone_event) |
Get the "contact" address of the subscription. More... | |
LinphoneCore * | linphone_event_get_core (const LinphoneEvent *linphone_event) |
Returns back pointer to the LinphoneCore that created this LinphoneEvent. More... | |
void | linphone_event_add_callbacks (LinphoneEvent *linphone_event, LinphoneEventCbs *cbs) |
Adds a LinphoneEventCbs object to be associated with a LinphoneEvent. More... | |
void | linphone_event_remove_callbacks (LinphoneEvent *linphone_event, LinphoneEventCbs *cbs) |
Removes a LinphoneEventCbs object associated with a LinphoneEvent. More... | |
LinphoneEventCbs * | linphone_event_get_current_callbacks (const LinphoneEvent *linphone_event) |
Get the current LinphoneEventCbs object associated with a LinphoneEvent. More... | |
LinphoneEventCbs * | linphone_event_cbs_ref (LinphoneEventCbs *cbs) |
Acquire a reference to a LinphoneEventCbs object. More... | |
void | linphone_event_cbs_unref (LinphoneEventCbs *cbs) |
Release a reference to a LinphoneEventCbs object. More... | |
void * | linphone_event_cbs_get_user_data (const LinphoneEventCbs *cbs) |
Retrieve the user pointer associated with a LinphoneEventCbs object. More... | |
void | linphone_event_cbs_set_user_data (LinphoneEventCbs *cbs, void *user_data) |
Assign a user pointer to a LinphoneEventCbs object. More... | |
LinphoneEventCbsNotifyResponseCb | linphone_event_cbs_get_notify_response (const LinphoneEventCbs *cbs) |
Get the notify response callback. More... | |
void | linphone_event_cbs_set_notify_response (LinphoneEventCbs *cbs, LinphoneEventCbsNotifyResponseCb cb) |
Set the notify response callback. More... | |
MS2_DEPRECATED LinphoneEventCbs * | linphone_event_get_callbacks (const LinphoneEvent *linphone_event) |
Get the LinphoneEventCbs object associated with a LinphoneEvent. More... | |
Managing generic subscriptions and publishes.
The LinphoneEvent api allows application to control subscriptions, receive notifications and make publish to peers, in a generic manner.
typedef void(* LinphoneCoreCbsNotifyReceivedCb) (LinphoneCore *core, LinphoneEvent *linphone_event, const char *notified_event, const LinphoneContent *body) |
Callback prototype for notifying the application about notification received from the network.
core | LinphoneCore object |
linphone_event | the LinphoneEvent received |
notified_event | The event as string |
body | the LinphoneContent of the event |
typedef void(* LinphoneCoreCbsPublishStateChangedCb) (LinphoneCore *core, LinphoneEvent *linphone_event, LinphonePublishState state) |
Callback prototype for notifying the application about changes of publish states.
core | LinphoneCore object |
linphone_event | the LinphoneEvent |
state | the new LinphonePublishState |
typedef void(* LinphoneCoreCbsSubscribeReceivedCb) (LinphoneCore *core, LinphoneEvent *linphone_event, const char *subscribe_event, const LinphoneContent *body) |
Callback prototype for notifying the application about subscription received from the network.
core | LinphoneCore object |
linphone_event | the LinphoneEvent received |
subscribe_event | The event as string |
body | the LinphoneContent of the event |
typedef void(* LinphoneCoreCbsSubscriptionStateChangedCb) (LinphoneCore *core, LinphoneEvent *linphone_event, LinphoneSubscriptionState state) |
Callback prototype for notifying the application about changes of subscription states, including arrival of new subscriptions.
core | LinphoneCore object |
linphone_event | the LinphoneEvent |
state | the new LinphoneSubscriptionState |
typedef struct _LinphoneEvent LinphoneEvent |
Object representing an event state, which is subcribed or published.
typedef void(* LinphoneEventCbsNotifyResponseCb) (const LinphoneEvent *linphone_event) |
Callback used to notify the response to a sent NOTIFY.
linphone_event | The LinphoneEvent object that has sent the NOTIFY and for which we received a response |
typedef enum _LinphoneSubscriptionState LinphoneSubscriptionState |
Enum for subscription states.
LinphoneSubscriptionTerminated and LinphoneSubscriptionError are final states.
Enum for publish states.
Enumerator | |
---|---|
LinphonePublishNone | Initial state, do not use. |
LinphonePublishProgress | An outgoing publish was created and submitted. |
LinphonePublishOk | Publish is accepted. |
LinphonePublishError | Publish encoutered an error, linphone_event_get_reason() gives reason code. |
LinphonePublishExpiring | Publish is about to expire, only sent if [sip]->refresh_generic_publish property is set to 0. |
LinphonePublishCleared | Event has been un published. |
Enum for subscription states.
LinphoneSubscriptionTerminated and LinphoneSubscriptionError are final states.
Enumerator | |
---|---|
LinphoneSubscriptionNone | Initial state, should not be used. |
LinphoneSubscriptionOutgoingProgress | An outgoing subcription was sent. |
LinphoneSubscriptionIncomingReceived | An incoming subcription is received. |
LinphoneSubscriptionPending | Subscription is pending, waiting for user approval. |
LinphoneSubscriptionActive | Subscription is accepted. |
LinphoneSubscriptionTerminated | Subscription is terminated normally. |
LinphoneSubscriptionError | Subscription was terminated by an error, indicated by linphone_event_get_reason() |
LinphoneSubscriptionExpiring | Subscription is about to expire, only sent if [sip]->refresh_generic_subscribe property is set to 0. |
LinphoneEvent* linphone_core_create_notify | ( | LinphoneCore * | core, |
const LinphoneAddress * | resource, | ||
const char * | event | ||
) |
Create an out-of-dialog notification, specifying the destination resource, the event name.
The notification can be send with linphone_event_notify().
core | the LinphoneCore |
resource | the destination resource |
event | the event name |
LinphoneEvent* linphone_core_create_one_shot_publish | ( | LinphoneCore * | core, |
const LinphoneAddress * | resource, | ||
const char * | event | ||
) |
Create a publish context for a one-shot publish.
After being created, the publish must be sent using linphone_event_send_publish(). The LinphoneEvent is automatically terminated when the publish transaction is finished, either with success or failure. The application must not call linphone_event_terminate() for such one-shot publish.
core | the LinphoneCore |
resource | the resource uri for the event |
event | the event name |
LinphoneEvent* linphone_core_create_publish | ( | LinphoneCore * | core, |
const LinphoneAddress * | resource, | ||
const char * | event, | ||
int | expires | ||
) |
Create a publish context for an event state.
After being created, the publish must be sent using linphone_event_send_publish(). After expiry, the publication is refreshed unless it is terminated before.
core | the LinphoneCore |
resource | the resource uri for the event |
event | the event name |
expires | the lifetime of event being published, -1 if no associated duration, in which case it will not be refreshed. |
LinphoneEvent* linphone_core_create_subscribe | ( | LinphoneCore * | core, |
const LinphoneAddress * | resource, | ||
const char * | event, | ||
int | expires | ||
) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body.
If accepted, the subscription runs for a finite period, but is automatically renewed if not terminated before. Unlike linphone_core_subscribe() the subscription isn't sent immediately. It will be send when calling linphone_event_send_subscribe().
core | the LinphoneCore |
resource | the destination resource |
event | the event name |
expires | the whished duration of the subscription |
LinphoneEvent* linphone_core_create_subscribe_2 | ( | LinphoneCore * | core, |
const LinphoneAddress * | resource, | ||
LinphoneProxyConfig * | proxy, | ||
const char * | event, | ||
int | expires | ||
) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body.
If accepted, the subscription runs for a finite period, but is automatically renewed if not terminated before. Unlike linphone_core_subscribe() the subscription isn't sent immediately. It will be send when calling linphone_event_send_subscribe().
core | the LinphoneCore |
resource | the destination resource |
proxy | the proxy configuration to use |
event | the event name |
expires | the whished duration of the subscription |
LinphoneEvent* linphone_core_publish | ( | LinphoneCore * | core, |
const LinphoneAddress * | resource, | ||
const char * | event, | ||
int | expires, | ||
const LinphoneContent * | body | ||
) |
Publish an event state.
This first create a LinphoneEvent with linphone_core_create_publish() and calls linphone_event_send_publish() to actually send it. After expiry, the publication is refreshed unless it is terminated before.
core | the LinphoneCore |
resource | the resource uri for the event |
event | the event name |
expires | the lifetime of event being published, -1 if no associated duration, in which case it will not be refreshed. |
body | the actual published data |
LinphoneEvent* linphone_core_subscribe | ( | LinphoneCore * | core, |
const LinphoneAddress * | resource, | ||
const char * | event, | ||
int | expires, | ||
const LinphoneContent * | body | ||
) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body.
If accepted, the subscription runs for a finite period, but is automatically renewed if not terminated before.
core | the LinphoneCore |
resource | the destination resource |
event | the event name |
expires | the whished duration of the subscription |
body | an optional body, may be NULL. |
LinphoneStatus linphone_event_accept_subscription | ( | LinphoneEvent * | linphone_event | ) |
Accept an incoming subcription.
linphone_event | LinphoneEvent object. |
void linphone_event_add_callbacks | ( | LinphoneEvent * | linphone_event, |
LinphoneEventCbs * | cbs | ||
) |
Adds a LinphoneEventCbs object to be associated with a LinphoneEvent.
linphone_event | LinphoneEvent object |
cbs | The LinphoneEventCbs object to add |
void linphone_event_add_custom_header | ( | LinphoneEvent * | linphone_event, |
const char * | name, | ||
const char * | value | ||
) |
Add a custom header to an outgoing susbscription or publish.
linphone_event | the LinphoneEvent |
name | header's name |
value | the header's value. |
LinphoneEventCbsNotifyResponseCb linphone_event_cbs_get_notify_response | ( | const LinphoneEventCbs * | cbs | ) |
Get the notify response callback.
cbs | LinphoneEventCbs object. |
void* linphone_event_cbs_get_user_data | ( | const LinphoneEventCbs * | cbs | ) |
Retrieve the user pointer associated with a LinphoneEventCbs object.
cbs | LinphoneEventCbs object. |
LinphoneEventCbs* linphone_event_cbs_ref | ( | LinphoneEventCbs * | cbs | ) |
Acquire a reference to a LinphoneEventCbs object.
void linphone_event_cbs_set_notify_response | ( | LinphoneEventCbs * | cbs, |
LinphoneEventCbsNotifyResponseCb | cb | ||
) |
Set the notify response callback.
cbs | LinphoneEventCbs object. |
cb | The notify response callback to be used. |
void linphone_event_cbs_set_user_data | ( | LinphoneEventCbs * | cbs, |
void * | user_data | ||
) |
Assign a user pointer to a LinphoneEventCbs object.
cbs | LinphoneEventCbs object. |
user_data | The user pointer to associate with the LinphoneEventCbs object. |
void linphone_event_cbs_unref | ( | LinphoneEventCbs * | cbs | ) |
Release a reference to a LinphoneEventCbs object.
cbs | LinphoneEventCbs object. |
LinphoneStatus linphone_event_deny_subscription | ( | LinphoneEvent * | linphone_event, |
LinphoneReason | reason | ||
) |
Deny an incoming subscription with given reason.
linphone_event | LinphoneEvent object. |
MS2_DEPRECATED LinphoneEventCbs* linphone_event_get_callbacks | ( | const LinphoneEvent * | linphone_event | ) |
Get the LinphoneEventCbs object associated with a LinphoneEvent.
linphone_event | LinphoneEvent object |
LinphoneCore* linphone_event_get_core | ( | const LinphoneEvent * | linphone_event | ) |
Returns back pointer to the LinphoneCore that created this LinphoneEvent.
linphone_event | LinphoneEvent object |
LinphoneEventCbs* linphone_event_get_current_callbacks | ( | const LinphoneEvent * | linphone_event | ) |
Get the current LinphoneEventCbs object associated with a LinphoneEvent.
linphone_event | LinphoneEvent object |
const char* linphone_event_get_custom_header | ( | LinphoneEvent * | linphone_event, |
const char * | name | ||
) |
Obtain the value of a given header for an incoming subscription.
linphone_event | the LinphoneEvent |
name | header's name |
const LinphoneErrorInfo* linphone_event_get_error_info | ( | const LinphoneEvent * | linphone_event | ) |
Get full details about an error occured.
linphone_event | LinphoneEvent object. |
const LinphoneAddress* linphone_event_get_from | ( | const LinphoneEvent * | linphone_event | ) |
Get the "from" address of the subscription.
linphone_event | LinphoneEvent object |
const char* linphone_event_get_name | ( | const LinphoneEvent * | linphone_event | ) |
Get the name of the event as specified in the event package RFC.
linphone_event | LinphoneEvent object |
LinphonePublishState linphone_event_get_publish_state | ( | const LinphoneEvent * | linphone_event | ) |
Get publish state.
If the event object was not created by a publish mechanism, LinphonePublishNone is returned.
linphone_event | LinphoneEvent object. |
LinphoneReason linphone_event_get_reason | ( | const LinphoneEvent * | linphone_event | ) |
Return reason code (in case of error state reached).
linphone_event | LinphoneEvent object. |
const LinphoneAddress* linphone_event_get_remote_contact | ( | const LinphoneEvent * | linphone_event | ) |
Get the "contact" address of the subscription.
linphone_event | LinphoneEvent object |
const LinphoneAddress* linphone_event_get_resource | ( | const LinphoneEvent * | linphone_event | ) |
Get the resource address of the subscription or publish.
linphone_event | LinphoneEvent object |
LinphoneSubscriptionDir linphone_event_get_subscription_dir | ( | LinphoneEvent * | linphone_event | ) |
Get subscription direction.
If the object wasn't created by a subscription mechanism, LinphoneSubscriptionInvalidDir is returned.
linphone_event | LinphoneEvent object. |
LinphoneSubscriptionState linphone_event_get_subscription_state | ( | const LinphoneEvent * | linphone_event | ) |
Get subscription state.
If the event object was not created by a subscription mechanism, LinphoneSubscriptionNone is returned.
linphone_event | LinphoneEvent object. |
const LinphoneAddress* linphone_event_get_to | ( | const LinphoneEvent * | lev | ) |
Get the "to" address of the subscription.
linphone_event | LinphoneEvent object |
void* linphone_event_get_user_data | ( | const LinphoneEvent * | linphone_event | ) |
Retrieve user pointer.
linphone_event | LinphoneEvent object. |
LinphoneStatus linphone_event_notify | ( | LinphoneEvent * | linphone_event, |
const LinphoneContent * | body | ||
) |
Send a notification.
linphone_event | a LinphoneEvent corresponding to an incoming subscription previously received and accepted. |
body | an optional body containing the actual notification data. |
void linphone_event_pause_publish | ( | LinphoneEvent * | linphone_event | ) |
Prevent an event from refreshing its publish.
This is useful to let registrations to expire naturally (or) when the application wants to keep control on when refreshes are sent. The refreshing operations can be resumed with linphone_proxy_config_refresh_register().
linphone_event | LinphoneEvent object. |
LinphoneEvent* linphone_event_ref | ( | LinphoneEvent * | linphone_event | ) |
Increase reference count of LinphoneEvent.
A LinphoneEvent created by the core when receiving an incoming SUBSCRIBE or PUBLISH are owned by the core only. An application that wishes to retain a reference to it must call linphone_event_ref(). When this reference is no longer needed, linphone_event_unref() must be called.
linphone_event | LinphoneEvent object |
LinphoneStatus linphone_event_refresh_publish | ( | LinphoneEvent * | linphone_event | ) |
Refresh an outgoing publish keeping the same body.
linphone_event | LinphoneEvent object. |
LinphoneStatus linphone_event_refresh_subscribe | ( | LinphoneEvent * | linphone_event | ) |
Refresh an outgoing subscription keeping the same body.
linphone_event | LinphoneEvent object. |
void linphone_event_remove_callbacks | ( | LinphoneEvent * | linphone_event, |
LinphoneEventCbs * | cbs | ||
) |
Removes a LinphoneEventCbs object associated with a LinphoneEvent.
linphone_event | LinphoneEvent object |
cbs | The LinphoneEventCbs object to remove |
void linphone_event_remove_custom_header | ( | LinphoneEvent * | ev, |
const char * | name | ||
) |
Remove custom header to an outgoing susbscription or publish.
ev | the LinphoneEvent |
name | header's name |
LinphoneStatus linphone_event_send_publish | ( | LinphoneEvent * | linphone_event, |
const LinphoneContent * | body | ||
) |
Send a publish created by linphone_core_create_publish().
linphone_event | the LinphoneEvent |
body | the new data to be published |
LinphoneStatus linphone_event_send_subscribe | ( | LinphoneEvent * | linphone_event, |
const LinphoneContent * | body | ||
) |
Send a subscription previously created by linphone_core_create_subscribe().
linphone_event | the LinphoneEvent |
body | optional content to attach with the subscription. |
void linphone_event_set_user_data | ( | LinphoneEvent * | linphone_event, |
void * | user_data | ||
) |
Set a user (application) pointer.
linphone_event | LinphoneEvent object. |
user_data | The user data to set. |
void linphone_event_terminate | ( | LinphoneEvent * | linphone_event | ) |
Terminate an incoming or outgoing subscription that was previously acccepted, or a previous publication.
The LinphoneEvent shall not be used anymore after this operation.
linphone_event | LinphoneEvent object |
void linphone_event_unref | ( | LinphoneEvent * | linphone_event | ) |
Decrease reference count.
linphone_event | LinphoneEvent object |
LinphoneStatus linphone_event_update_publish | ( | LinphoneEvent * | linphone_event, |
const LinphoneContent * | body | ||
) |
Update (refresh) a publish.
linphone_event | the LinphoneEvent |
body | the new data to be published |
LinphoneStatus linphone_event_update_subscribe | ( | LinphoneEvent * | linphone_event, |
const LinphoneContent * | body | ||
) |
Update (refresh) an outgoing subscription, changing the body.
linphone_event | a LinphoneEvent |
body | an optional body to include in the subscription update, may be NULL. |