27 const char *content_type,
29 const char *useragent_filter)
36 return api_provider->
sipinfo_send(chan, headers, content_type, content, useragent_filter);
42 ast_log(
LOG_WARNING,
"SIP provider %s has already registered. Not registering provider %s\n",
48 ast_log(
LOG_WARNING,
"SIP API provider version mismatch: Current version is %d but provider "
Main Channel structure associated with a channel.
Asterisk main include file. File version handling, generic pbx functions.
int(* sipinfo_send)(struct ast_channel *chan, struct ast_variable *headers, const char *content_type, const char *content, const char *useragent_filter)
Structure for variables, used for configurations and for channel variables.
int ast_sip_api_provider_register(const struct ast_sip_api_tech *provider)
Register a SIP API provider.
#define AST_SIP_API_VERSION
Support for logging to various files, console and syslog Configuration in file logger.conf.
void ast_sip_api_provider_unregister(void)
Unregister a SIP API provider.
int ast_sipinfo_send(struct ast_channel *chan, struct ast_variable *headers, const char *content_type, const char *content, const char *useragent_filter)
Send a customized SIP INFO request.
static struct prometheus_metrics_provider provider
static const struct ast_sip_api_tech * api_provider