AST_STRING_FIELD(incoming_mwi_mailbox);
/*! STIR/SHAKEN profile to use */
AST_STRING_FIELD(stir_shaken_profile);
- /*! Tenant ID for the endpoint */
- AST_STRING_FIELD(tenantid);
);
/*! Configuration for extensions */
struct ast_sip_endpoint_extensions extensions;
AST_STRING_FIELD_EXTENDED(geoloc_incoming_call_profile);
/*! The name of the geoloc profile to apply when Asterisk sends a call to this endpoint */
AST_STRING_FIELD_EXTENDED(geoloc_outgoing_call_profile);
+ /*! Tenant ID for the endpoint */
+ AST_STRING_FIELD_EXTENDED(tenantid);
};
/*! URI parameter for symmetric transport */
if (!endpoint) {
return NULL;
}
- if (ast_string_field_init(endpoint, 64)) {
+ if (ast_string_field_init(endpoint, 128)) {
ao2_cleanup(endpoint);
return NULL;
}
ao2_cleanup(endpoint);
return NULL;
}
+ if (ast_string_field_init_extended(endpoint, tenantid)) {
+ ao2_cleanup(endpoint);
+ return NULL;
+ }
if (!(endpoint->media.codecs = ast_format_cap_alloc(AST_FORMAT_CAP_FLAG_DEFAULT))) {
ao2_cleanup(endpoint);