Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __ASTERISK_SIP_H
00020 #define __ASTERISK_SIP_H
00021
00022 #if defined(__cplusplus) || defined(c_plusplus)
00023 extern "C" {
00024 #endif
00025
00026 #include "asterisk/optional_api.h"
00027 #include "asterisk/config.h"
00028
00029 #define AST_SIP_API_VERSION 1
00030
00031 struct ast_sip_api_tech {
00032 const int version;
00033 const char *name;
00034 int (*sipinfo_send)(struct ast_channel *chan,
00035 struct ast_variable *headers, const char *content_type,
00036 const char *content, const char *useragent_filter);
00037 };
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 int ast_sipinfo_send(struct ast_channel *chan,
00052 struct ast_variable *headers,
00053 const char *content_type,
00054 const char *content,
00055 const char *useragent_filter);
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067 int ast_sip_api_provider_register(const struct ast_sip_api_tech *provider);
00068
00069
00070
00071
00072 void ast_sip_api_provider_unregister(void);
00073
00074 #if defined(__cplusplus) || defined(c_plusplus)
00075 }
00076 #endif
00077
00078 #endif