61{
64
67 }
68
75
76
77 snprintf(id, sizeof(id), "anonymous@%s", domain_name);
79 if (endpoint) {
81 }
82
83
85 domain_name);
86 if (alias) {
87 snprintf(
id,
sizeof(
id),
"anonymous@%s", alias->
domain);
90 if (endpoint) {
92 }
93 }
94
95
100 snprintf(
id,
sizeof(
id),
"anonymous@%s", transport->
domain);
102 }
106 if (endpoint) {
108 }
109 }
110
111
113
115 if (endpoint) {
117 }
118 return endpoint;
119}
#define ao2_callback(c, flags, cb_fn, arg)
ao2_callback() is a generic function that applies cb_fn() to all objects in a container,...
#define ao2_ref(o, delta)
Reference/unreference an object and return the old refcount.
static struct ao2_container * transport_states
#define ast_debug(level,...)
Log a DEBUG message.
struct ao2_container * ast_sip_get_transport_states(void)
Retrieves all transport states.
unsigned int ast_sip_get_disable_multi_domain(void)
Retrieve the system setting 'disable multi domain'.
struct ast_sorcery * ast_sip_get_sorcery(void)
Get a pointer to the SIP sorcery structure.
static int get_endpoint_details(pjsip_rx_data *rdata, char *domain, size_t domain_size)
static int find_transport_state_in_use(void *obj, void *arg, int flags)
const char * ast_sorcery_object_get_id(const void *object)
Get the unique identifier of a sorcery object.
void * ast_sorcery_retrieve_by_id(const struct ast_sorcery *sorcery, const char *type, const char *id)
Retrieve an object using its unique identifier.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
const ast_string_field domain
An entity with which Asterisk communicates.
Structure for SIP transport information.
const ast_string_field domain