32static void log_caps(
int level,
const char *
file,
int line,
const char *function,
43 ?
session->endpoint->media.outgoing_call_offer_pref
44 :
session->endpoint->media.incoming_call_offer_pref;
54 ast_log(level,
file, line, function,
"'%s' Caps for %s %s call with pref '%s' - remote: %s local: %s joint: %s\n",
73 if (!joint || !local_filtered || !remote_filtered) {
98 joint = remote_filtered;
99 remote_filtered =
NULL;
138 session->endpoint->media.codecs, media_type,
140 ?
session->endpoint->media.outgoing_call_offer_pref
141 :
session->endpoint->media.incoming_call_offer_pref);
156 session->endpoint->media.codecs, media_type,
158 ?
session->endpoint->media.outgoing_call_offer_pref
159 :
session->endpoint->media.incoming_call_offer_pref);
Asterisk main include file. File version handling, generic pbx functions.
static struct ast_mansession session
#define ao2_ref(o, delta)
Reference/unreference an object and return the old refcount.
General Asterisk PBX channel definitions.
const char * ast_channel_name(const struct ast_channel *chan)
ast_media_type
Types of media.
const char * ast_codec_media_type2str(enum ast_media_type type)
Conversion function to take a media type and turn it into a string.
Support for logging to various files, console and syslog Configuration in file logger....
#define DEBUG_ATLEAST(level)
struct ast_format_cap * ast_sip_create_joint_call_cap(const struct ast_format_cap *remote, struct ast_format_cap *local, enum ast_media_type media_type, struct ast_flags codec_pref)
Create joint capabilities.
static void log_caps(int level, const char *file, int line, const char *function, const struct ast_sip_session *session, enum ast_media_type media_type, const struct ast_format_cap *local, const struct ast_format_cap *remote, const struct ast_format_cap *joint)
struct ast_format_cap * ast_sip_session_create_joint_call_cap(const struct ast_sip_session *session, enum ast_media_type media_type, const struct ast_format_cap *remote)
Create joint capabilities.
struct ast_stream * ast_sip_session_create_joint_call_stream(const struct ast_sip_session *session, struct ast_stream *remote_stream)
Create a new stream of joint capabilities.
#define ast_sip_call_codec_pref_test(__param, __codec_pref)
Returns true if the preference is set in the parameter.
const char * ast_sip_call_codec_pref_to_str(struct ast_flags pref)
Convert the call codec preference flags to a string.
@ AST_SIP_SESSION_OUTGOING_CALL
Sorcery Data Access Layer API.
const char * ast_sorcery_object_get_id(const void *object)
Get the unique identifier of a sorcery object.
struct ast_stream * ast_stream_clone(const struct ast_stream *stream, const char *name)
Create a deep clone of an existing stream.
enum ast_media_type ast_stream_get_type(const struct ast_stream *stream)
Get the media type of a stream.
void ast_stream_set_formats(struct ast_stream *stream, struct ast_format_cap *caps)
Set the current negotiated formats of a stream.
const struct ast_format_cap * ast_stream_get_formats(const struct ast_stream *stream)
Get the current negotiated formats of a stream.
#define ast_str_alloca(init_len)
Structure used to handle boolean flags.
A structure describing a SIP session.
Support for dynamic strings.