features.h
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
00020
00021
00022
00023
00024 #ifndef _AST_FEATURES_H
00025 #define _AST_FEATURES_H
00026
00027 #define FEATURE_MAX_LEN 11
00028 #define FEATURE_APP_LEN 64
00029 #define FEATURE_APP_ARGS_LEN 256
00030 #define FEATURE_SNAME_LEN 32
00031 #define FEATURE_EXTEN_LEN 32
00032 #define FEATURE_MOH_LEN 80
00033
00034
00035 struct ast_call_feature {
00036 int feature_mask;
00037 char *fname;
00038 char sname[FEATURE_SNAME_LEN];
00039 char exten[FEATURE_MAX_LEN];
00040 char default_exten[FEATURE_MAX_LEN];
00041 int (*operation)(struct ast_channel *chan, struct ast_channel *peer, struct ast_bridge_config *config, char *code, int sense, void *data);
00042 unsigned int flags;
00043 char app[FEATURE_APP_LEN];
00044 char app_args[FEATURE_APP_ARGS_LEN];
00045 char moh_class[FEATURE_MOH_LEN];
00046 AST_LIST_ENTRY(ast_call_feature) feature_entry;
00047 };
00048
00049
00050 extern int ast_autoanswer_login(struct ast_channel *chan, void *data);
00051 extern int ast_masq_autoanswer_login(struct ast_channel *rchan, void *data);
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063 int ast_park_call(struct ast_channel *chan, struct ast_channel *host, int timeout, int *extout);
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073 int ast_masq_park_call(struct ast_channel *rchan, struct ast_channel *host, int timeout, int *extout);
00074
00075 extern int ast_hold_call(struct ast_channel *chan, struct ast_channel *host);
00076 extern int ast_masq_hold_call(struct ast_channel *rchan, struct ast_channel *host);
00077 extern int ast_retrieve_call(struct ast_channel *chan, char *uniqueid);
00078 extern int ast_retrieve_call_to_death(char *uniqueid);
00079 extern struct ast_channel *ast_get_holded_call(char *uniqueid);
00080
00081
00082
00083
00084 char *ast_parking_ext(void);
00085
00086
00087 char *ast_pickup_ext(void);
00088
00089
00090 int ast_bridge_call(struct ast_channel *chan, struct ast_channel *peer,struct ast_bridge_config *config);
00091
00092
00093 int ast_pickup_call(struct ast_channel *chan);
00094
00095
00096
00097
00098
00099 void ast_register_feature(struct ast_call_feature *feature);
00100
00101
00102
00103 void ast_unregister_feature(struct ast_call_feature *feature);
00104
00105 #endif