| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 

Go to the source code of this file.
| Functions | |
| int | ast_sip_api_provider_register (const struct ast_sip_api_tech *provider) | 
| Register a SIP API provider. | |
| 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. | |
| Variables | |
| static const struct ast_sip_api_tech * | api_provider | 
| int ast_sip_api_provider_register | ( | const struct ast_sip_api_tech * | provider | ) | 
Register a SIP API provider.
This will fail if a provider has already registered or if the provider is using an incorrect version.
| provider | The provider to register | 
| 0 | Success | 
| -1 | Failure | 
Definition at line 39 of file sip_api.c.
References api_provider, ast_log, AST_SIP_API_VERSION, LOG_WARNING, prometheus_metrics_provider::name, ast_sip_api_tech::name, and provider.
| void ast_sip_api_provider_unregister | ( | void | ) | 
Unregister a SIP API provider.
Definition at line 57 of file sip_api.c.
References api_provider, and NULL.
| 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.
| chan | Channel | 
| headers | The headers to add to the INFO request | 
| content_type | The content type header to add | 
| content | The body of the INFO request | 
| useragent_filter | If non-NULL, only send the INFO if the recipient's User-Agent contains useragent_filter as a substring | 
| 0 | Success | 
| non-zero | Failure | 
Definition at line 25 of file sip_api.c.
References api_provider, ast_log, LOG_WARNING, and ast_sip_api_tech::sipinfo_send.
| 
 | static | 
Definition at line 23 of file sip_api.c.
Referenced by ast_sip_api_provider_register(), ast_sip_api_provider_unregister(), and ast_sipinfo_send().