eXosip2_sdp(3)

πŸ“¦ version 5.3.0, in epel 9

πŸ’… eXosip2_sdp β€” the SDP helper era

okay so bestie, welcome to the eXosip2_sdp(3) page from libeXosip2 β€” this is the SDP helper API, and honestly it's giving "small but mighty" πŸ’–. It's a whole little squad of functions that go grab SDP bodies, connections and media info so you don't have to dig through the raw structures yourself. slay.


✨ SYNOPSIS ✨

🫢 Functions

sdp_message_t * eXosip_get_remote_sdp (struct eXosip_t *excontext, int
    did)
sdp_message_t * eXosip_get_local_sdp (struct eXosip_t *excontext, int
    did)
sdp_message_t * eXosip_get_previous_local_sdp (struct eXosip_t
    *excontext, int did)
sdp_message_t * eXosip_get_remote_sdp_from_tid (struct eXosip_t
    *excontext, int tid)
sdp_message_t * eXosip_get_local_sdp_from_tid (struct eXosip_t
    *excontext, int tid)
sdp_message_t * eXosip_get_sdp_info (osip_message_t *message)
sdp_connection_t * eXosip_get_audio_connection (sdp_message_t *sdp)
sdp_media_t * eXosip_get_audio_media (sdp_message_t *sdp)
sdp_connection_t * eXosip_get_video_connection (sdp_message_t *sdp)
sdp_media_t * eXosip_get_video_media (sdp_message_t *sdp)
sdp_connection_t * eXosip_get_connection (sdp_message_t *sdp, const char
    *media)
sdp_media_t * eXosip_get_media (sdp_message_t *sdp, const char *media)

🌸 Detailed Description 🌸

like, the whole vibe here: these are the helpers that hand you the SDP stuff (remote/local bodies, per-media connections and media entries) without you having to spelunk for it. main character energy only πŸ’….


πŸŽ€ Function Documentation πŸŽ€

sdp_message_t* eXosip_get_remote_sdp (struct eXosip_t * excontext, int did)

Gets you the remote SDP body for the latest INVITE of the call. iconic.

Parameters

  • excontext β€” the eXosip_t instance.
  • did β€” dialog id of the call.

sdp_message_t* eXosip_get_local_sdp (struct eXosip_t * excontext, int did)

Gets you the local SDP body for the latest INVITE of the call. periodt.

Parameters

  • excontext β€” the eXosip_t instance.
  • did β€” dialog id of the call.

sdp_message_t* eXosip_get_previous_local_sdp (struct eXosip_t * excontext, int did)

Gets you the local SDP body for the previous latest INVITE of the call β€” yes, the one before the current one, we love a throwback πŸ™ˆ.

Parameters

  • excontext β€” the eXosip_t instance.
  • did β€” dialog id of the call.

sdp_message_t* eXosip_get_remote_sdp_from_tid (struct eXosip_t * excontext, int tid)

Gets you the remote SDP body for the latest INVITE of the call β€” but by transaction instead of dialog. same energy, different key πŸ”‘.

Parameters

  • excontext β€” the eXosip_t instance.
  • tid β€” transction id of transaction. (yes, that's spelled exactly like that in the source, we're keeping it, no cap πŸ’€)

sdp_message_t* eXosip_get_local_sdp_from_tid (struct eXosip_t * excontext, int tid)

Gets you the local SDP body for the latest INVITE of the call β€” transaction-flavoured πŸ“.

Parameters

  • excontext β€” the eXosip_t instance.
  • tid β€” transction id of transaction.

sdp_message_t* eXosip_get_sdp_info (osip_message_t * message)

Gets you the local SDP body for the message you hand it. one message in, SDP out, we love a clean trade ✨.

Parameters

  • message β€” message containing the SDP.

sdp_connection_t* eXosip_get_audio_connection (sdp_message_t * sdp)

Grabs the audio connection info for the call 🎧.

Parameters

  • sdp β€” sdp information.

sdp_media_t* eXosip_get_audio_media (sdp_message_t * sdp)

Grabs the audio media info for the call πŸ”Š.

Parameters

  • sdp β€” sdp information.

sdp_connection_t* eXosip_get_video_connection (sdp_message_t * sdp)

Grabs the video connection info for the call πŸŽ₯.

Parameters

  • sdp β€” sdp information.

sdp_media_t* eXosip_get_video_media (sdp_message_t * sdp)

Grabs the video media info for the call πŸ“Ή.

Parameters

  • sdp β€” sdp information.

sdp_connection_t* eXosip_get_connection (sdp_message_t * sdp, const char * media)

Grabs the connection info for whichever media you ask for β€” you name it, it fetches it πŸ’«.

Parameters

  • sdp β€” sdp information.
  • media β€” media to search.

sdp_media_t* eXosip_get_media (sdp_message_t * sdp, const char * media)

Grabs the media info for whichever media you ask for. the generic icon πŸ‘‘.

Parameters

  • sdp β€” sdp information.
  • media β€” media to search.

🌈 Author 🌈

Generated automatically by Doxygen for libeXosip2 from the source code. (the robots wrote this one, we're just hyping it up πŸ€–πŸ’–)


bestie reminder: every signature, every parameter name, every typo in transction β€” all preserved exactly. do not come for me, come for the source πŸ’…

and that's the page!! mwah 🫢

Version 5.3.0 Β· Thu May 18 2023 β€” libeXosip2 said "here's your SDP helpers" and honestly? she ate. go build something iconic with them πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from