eXosip2_subscribe(3)
eXosip2_subscribe(3) β the libeXosip2 bestie era π
okay so bestie, welcome to the glow-up of the eXosip2_subscribe(3) page from libeXosip2. We are keeping every single detail, just with main-character energy. No cap. π
β¨ NAME β¨
eXosip2_subscribe β eXosip2 SUBSCRIBE and outgoing subscriptions. That's the whole vibe: SUBSCRIBE stuff and outgoing subscriptions, and we're obsessed. π«Ά
β¨ SYNOPSIS β¨
okay so here's the API shape, exactly as it is. Don't let the formatting scare you β it's just the group chat roster. π
Enumerations
enum eXosip_ss { EXOSIP_SUBCRSTATE_UNKNOWN, EXOSIP_SUBCRSTATE_PENDING,
EXOSIP_SUBCRSTATE_ACTIVE, EXOSIP_SUBCRSTATE_TERMINATED }
enum eXosip_ss_reason { DEACTIVATED, PROBATION, REJECTED, TIMEOUT,
GIVEUP, NORESOURCE }
enum eXosip_ss_status { EXOSIP_NOTIFY_UNKNOWN, EXOSIP_NOTIFY_PENDING,
EXOSIP_NOTIFY_ONLINE, EXOSIP_NOTIFY_BUSY, EXOSIP_NOTIFY_BERIGHTBACK,
EXOSIP_NOTIFY_AWAY, EXOSIP_NOTIFY_ONTHEPHONE,
EXOSIP_NOTIFY_OUTTOLUNCH, EXOSIP_NOTIFY_CLOSED }
Functions
int eXosip_subscription_build_initial_subscribe (struct eXosip_t *excontext, osip_message_t **subscribe, const char *to, const char *from, const char *route, const char *event, int expires)
int eXosip_subscription_build_initial_refer (struct eXosip_t *excontext, osip_message_t **refer, const char *to, const char *from, const char *route, const char *refer_to)
int eXosip_subscription_send_initial_request (struct eXosip_t *excontext, osip_message_t *subscribe)
int eXosip_subscription_build_refresh_request (struct eXosip_t *excontext, int did, osip_message_t **sub)
int eXosip_subscription_send_refresh_request (struct eXosip_t *excontext, int did, osip_message_t *sub)
int eXosip_subscription_remove (struct eXosip_t *excontext, int did)
πΈ Detailed Description πΈ
This section is literally the detailed description zone. The original doesn't pile on extra prose here β it's the eXosip2 SUBSCRIBE and outgoing subscriptions page, and the real tea is in the enum details and function docs below. We're keeping all of it. β¨
π¦ Enumeration Type Documentation π¦
enum eXosip_ss
Structure for subscription status. It's giving status-icon energy. π
Enumerator
EXOSIP_SUBCRSTATE_UNKNOWNβ unknown subscription-stateEXOSIP_SUBCRSTATE_PENDINGβ pending subscription-stateEXOSIP_SUBCRSTATE_ACTIVEβ active subscription-stateEXOSIP_SUBCRSTATE_TERMINATEDβ terminated subscription-state
enum eXosip_ss_reason
Structure for subscription reason. Not the reason you're ignoring texts β the subscription-state reason. π
Enumerator
DEACTIVATEDβ deactivated for subscription-statePROBATIONβ probation for subscription-stateREJECTEDβ rejected for subscription-stateTIMEOUTβ timeout for subscription-stateGIVEUPβ giveup for subscription-stateNORESOURCEβ noresource for subscription-state
enum eXosip_ss_status
Structure for notification status. This is the "what's your status rn" enum, and honestly same. π
Enumerator
EXOSIP_NOTIFY_UNKNOWNβ unknown state for subscriptionEXOSIP_NOTIFY_PENDINGβ subscription not yet acceptedEXOSIP_NOTIFY_ONLINEβ online statusEXOSIP_NOTIFY_BUSYβ busy statusEXOSIP_NOTIFY_BERIGHTBACKβ be right back statusEXOSIP_NOTIFY_AWAYβ away statusEXOSIP_NOTIFY_ONTHEPHONEβ on the phone statusEXOSIP_NOTIFY_OUTTOLUNCHβ out to lunch statusEXOSIP_NOTIFY_CLOSEDβ closed status
π Function Documentation π
eXosip_subscription_build_initial_subscribe
int eXosip_subscription_build_initial_subscribe (struct eXosip_t *excontext, osip_message_t **subscribe, const char *to, const char *from, const char *route, const char *event, int expires)
Build a default initial SUBSCRIBE request. Slay. π
Parameters
excontextβ eXosip_t instance.subscribeβ Pointer for the SIP request to build.toβ SIP url for callee.fromβ SIP url for caller.routeβ Route header for SUBSCRIBE. (optional)eventβ Event header for SUBSCRIBE.expiresβ Expires header for SUBSCRIBE.
eXosip_subscription_build_initial_refer
int eXosip_subscription_build_initial_refer (struct eXosip_t *excontext, osip_message_t **refer, const char *to, const char *from, const char *route, const char *refer_to)
Build a default initial REFER request. Referral realness. π
Parameters
excontextβ eXosip_t instance.referβ Pointer for the SIP request to build.toβ SIP url for callee.fromβ SIP url for caller.routeβ Route header for REFER. (optional)refer_toβ SIP url for transfer.
eXosip_subscription_send_initial_request
int eXosip_subscription_send_initial_request (struct eXosip_t *excontext, osip_message_t *subscribe)
Send an initial SUBSCRIBE/REFER request. Send it, bestie. β¨
Parameters
excontextβ eXosip_t instance.subscribeβ SIP SUBSCRIBE message to send.
eXosip_subscription_build_refresh_request
int eXosip_subscription_build_refresh_request (struct eXosip_t *excontext, int did, osip_message_t **sub)
Build a default new SUBSCRIBE/REFER refresh message. Refresh, but make it SIP. π§
Parameters
excontextβ eXosip_t instance.didβ identifier of the subscription.subβ Pointer for the SIP request to build.
eXosip_subscription_send_refresh_request
int eXosip_subscription_send_refresh_request (struct eXosip_t *excontext, int did, osip_message_t *sub)
Send a new SUBSCRIBE/REFER refresh request. Another one, because consistency is iconic. π
Parameters
excontextβ eXosip_t instance.didβ identifier of the subscription.subβ SIP SUBSCRIBE message to send.
eXosip_subscription_remove
int eXosip_subscription_remove (struct eXosip_t *excontext, int did)
Remove outgoing subscription context. It's not ghosting, it's cleanup. π«Ά
Parameters
excontextβ eXosip_t instance.didβ identifier of the subscription.
π Author π
Generated automatically by Doxygen for libeXosip2 from the source code.
Version 5.3.0 β dated Thu May 18 2023 β from libeXosip2, manual eXosip2_subscribe(3). Mwah, bestie πβ¨
π¦ where this page comes from
- epel 9: libeXosip2-devel 5.3.0-2.el9 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms